Add state with variable to death state

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
38
First Language
German
Primarily Uses
Hello there,


i tried to make a death state that adds one new state by removing the death state.


i'm using yanfly's Buffs and State Core


The new state should be one of three states. Here is my "script" xD

Code:
<Custom Remove Effect>					
if(1 === \v[1] && a.isActor()) {				###check if variable 1 is equal 1 and check if the battler is an actor
 a.addState(51);                                 ### if true add state 51
}
  if(2 === \v[1] && a.isActor()) {				###check if variable 1 is equal 2 and check if the battler is an actor
 a.addState(52);                                 ### if true add state 52
}
else {
 a.addState(53);                              ## if variable 0 or something else than 1 or 2 than add state 53
}

</Custom Remove Effect>
The Maker said Ilegal Token <-<


Edit: Mabye someone knows the command to get variable 1 random between 0 and 2?


Than i dont have to create the variable via common event.


Thanks in advance
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

*Buys all the PVGames assets, ends up creating his own ground tiles.* At least I used the other types of graphics? Right? :kaoswt:
If you could fold a sheet of paper 42 times, the stack would reach from the earth to the moon. Do whatever you want with that information.
wishing that everyone stays safe at this time
Ami
4 days im not using my laptop to waiting someone to reinstall (sigh)
Stream will be live shortly with some Donkey Kong 64! Feel free to drop by!

Forum statistics

Threads
95,495
Messages
929,605
Members
125,746
Latest member
jiayuin
Top