- Joined
- Jul 18, 2014
- Messages
- 222
- Reaction score
- 13
- First Language
- English
- Primarily Uses
- RMMV
So I understand the following can be done to obtain a user's resistance to the death state:
The above code is used to check if important enemies are resistant to the death state. What if I wanted to check a user's resistance to another state? Say it was ID 9. What would it be?
user. ???
Code:
var deathState = user.deathStateId();
if (user.stateRate(deathState) > 0.01 && !user.isStateResist(deathState)) {
user.setHp(0);
if (user.isDead()) {
user.performCollapse();
}
}
user. ???
