I plan to use troop scripting to make battles feel more like puzzles than straight up fights, but I have some questions about how I can best go about this...
1. I've been using Yanfly's action sequences to aid me in changing the appearance of enemies depending upon their state. For example, an enemy that is standing will not be vulnerable to certain attacks but will become vulnerable when knocked down. I've thus far been able to accomplish this effect by despawning the standing enemy, playing an animation on top of it, and then spawning in its fallen version on the same location, but I can't imagine there isn't a better way than this.
Is there a simpler way to change the appearance of an enemy when changing its state?
2. I'd like very much to be able to have on-use effects depending upon which target the player has chosen.
For example, if the player has decided to use a fireball spell on a fire spirit, I might want the character to shoot down the idea, triggering a dialogue that says, "Fire spells don't work on fire spirits..." and preventing the action from happening.
I found this in Yanfly's docs, but I have no idea which variable the "target" would be:
if $gameSwitches.value(1)
action effect
else if $gameSwitches.value(2)
action effect
action effect
else
action effect
action effect
action effect
end
Does anyone know what I might replace "$gameSwitches.value(1)" with in order to change the action based upon which enemy target is being selected? The exact variable I'm looking for has been hard to track down (I'm guessing it has something to do with the enemy index but still can't find it...).
3. Speaking of target variables, is there a replacement variable we can use in the skill section that will automatically insert the name of the target of the ability? For example, I'd like the battle log to print "Bob uses petrify on bat!". Is there something I can insert that will automatically be replaced with the name of the target? (I've tried "(target)", %t, etc. with no luck).
Thanks in advance to anyone who can help! //rmwforums.s3.amazonaws.com/emoticons/default_smile.gif
1. I've been using Yanfly's action sequences to aid me in changing the appearance of enemies depending upon their state. For example, an enemy that is standing will not be vulnerable to certain attacks but will become vulnerable when knocked down. I've thus far been able to accomplish this effect by despawning the standing enemy, playing an animation on top of it, and then spawning in its fallen version on the same location, but I can't imagine there isn't a better way than this.
Is there a simpler way to change the appearance of an enemy when changing its state?
2. I'd like very much to be able to have on-use effects depending upon which target the player has chosen.
For example, if the player has decided to use a fireball spell on a fire spirit, I might want the character to shoot down the idea, triggering a dialogue that says, "Fire spells don't work on fire spirits..." and preventing the action from happening.
I found this in Yanfly's docs, but I have no idea which variable the "target" would be:
if $gameSwitches.value(1)
action effect
else if $gameSwitches.value(2)
action effect
action effect
else
action effect
action effect
action effect
end
Does anyone know what I might replace "$gameSwitches.value(1)" with in order to change the action based upon which enemy target is being selected? The exact variable I'm looking for has been hard to track down (I'm guessing it has something to do with the enemy index but still can't find it...).
3. Speaking of target variables, is there a replacement variable we can use in the skill section that will automatically insert the name of the target of the ability? For example, I'd like the battle log to print "Bob uses petrify on bat!". Is there something I can insert that will automatically be replaced with the name of the target? (I've tried "(target)", %t, etc. with no luck).
Thanks in advance to anyone who can help! //rmwforums.s3.amazonaws.com/emoticons/default_smile.gif