Hi there!
I'm messing with the default battle system of VX and I'm trying to give a more interactive approach to boss fights.
In this fight I'm designing right now, the boss points a gun at you. He shoots you in every turn and if nothing is done about that it will kill you in a couple of them..
To prevent that, you need to put him in into a state I called [shivers] by using some skill. If the boss is affected by [shivers] he won't do anything but scream.
I drew a picture of the boss pointing a gun at you and a picture of the boss covering his face with his hands.
So, my questions are:
· How can I change the Graphic of the battler when this boss is OK (pointing a gun) and when he is in [shivers] state (with his hands covering his face)?
· How can I change the patterns of action when he is affected in that state so he displays a message?
Hey.
I have an idea on how to do this, but in VX you can't set a switch upon activation of a state, so I'm at a loss. If that turns out to be possible, however, I do have a solution to this.
Edit: Ah, Shaz got it! That's what it was, activating a switch when the state was active, then have the troop event page conditioned with a switch . . I totally forgot common events could be tied with skills! (Wow, what a thing to forget). Thanks Shaz!
Does the skill ALWAYS place the enemy in that state, or is there a % chance that it will succeed/fail?
Attach a common event to the skill. In the common event, do an enemy transform (I don't have the engine open at the moment, so I'm not sure that's exactly what the command's called - but it changes one enemy into a different kind of enemy). You can set the battler and attack patterns for the second enemy.
If the state can wear off after a certain number of turns and you then want them to change back, I'd probably look at a troop event page that runs after each turn, and checks if the enemy is the certain kind of enemy (after the state has been inflicted - you might be able to use a switch for this if there's no event command to check the enemy type - turn the switch on in the common event and have the troop event page conditioned by the switch). Then, if the state is no longer applied, do the reverse - change the battler sprite back and do a transform enemy again (and turn the switch off if you used one).
I'm not sure if the HP is restored on enemy transform - you'll need to check that. If it is, just get the enemy's HP into a variable before the transform and set it again after the transform so it's never replenished.
Yes, Shaz, I though of swapping between two enemies.
The problem that I have now is that I can store the HP value in a variable but i don't know how to replace it because the settings which VX offers with HP values for enemies are based on increments and decrements.
Is there a script call or something similar to set the HP value?
Oh, and thank you guys for your replies
Two steps. Subtract 9999 from your enemy's HP after the transform (to set it to 0, so use a greater number if you've given your enemy more than that), then add back whatever you've got stored in the variable.
If that happens to make the enemy die after you deduct the 9999 HP, do it a different way ...
Store the "old" enemy's HP into a variable before the transform
Store the "new" enemy's HP into a second variable after the transform
Add the first variable's value to the HP
Deduct the second variable's value from the HP
That'll leave them with the same HP the previous enemy had before the transform.