[RMVX ACE] A MONSTER DOESN'T CAST A SPELL TO HIS ALLIES.
Posts
Pages:
1
I created a monster who can casts Breath Weapon.
I want him to cast the spell to his allies but he always casts it to himself.
Of course I chose One Ally,not The User.
Does anyone know how to fix the problem?
I want him to cast the spell to his allies but he always casts it to himself.
Of course I chose One Ally,not The User.
Does anyone know how to fix the problem?
EDIT: I saw the problem - the "One Ally" Skills always target the last targetable monster in the troop. You should look for scripts if you want to improve this behavior or work around it (such as placing the tank last if your troop contains healers)
http://rpgmaker.net/scripts/251/ i did this for healing.
if you wanted to have it pick a random ally, with high-ATK being the preference, you could add
change "atk" to whatever of course.
if you wanted to have it pick a random ally, with high-ATK being the preference, you could add
# Recommended notetag:
# <custom target: smart atk buff>
#----------------------------------------------------------------------
when "SMART ATK BUFF"
potential = []; reduce = false
group = friends_unit.alive_members
for member in group
n = member.atk
n = n * (n / 5.0) # n ^ 1.2
n = n.ceil
n.times do potential.push(member) end
end
potential = group if potential.empty?
targets.push( potential[ rand(potential.size) ] )
change "atk" to whatever of course.
Thank you for your answers but I've never used scripts and don't know how to do it...
Please tell me if there's a solution without using scripts.
Please tell me if there's a solution without using scripts.
For this particular issue there is no non-script fix: it's a bug in the way Enterbrain coded enemy AI for choosing own-party targets.
Pages:
1

















