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
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
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