- Joined
- Oct 22, 2016
- Messages
- 91
- Reaction score
- 6
- First Language
- english
- Primarily Uses
I'm using a skill to add different states depending on the actors level ; it'll be a very recuring type of skill, so i'll need to master the syntax.
I looked up some Ruby tutorials, and came up (100% self made, beware) with this :
if (a.level < 4) { a.addState(74); } else if (a.level < 7 and a.level > 3) { b.addState(74); } else if (a.level > 6) { b.addState(74); }
Somehow doen't work, sadly : /
also tried with "Elsif" but since nobody mentionned that here, i assumed it wasn't used
Could you give me a proper "stair like" version of this ? (the nice, much more readable thing, that people use in note boxes) ; it looks like for now, my only option is too leach and learn
What if i wanted to check for multiple conditions ?
Like "If actor is level 3,
if not level 3, do nothing"
Edit : I'd like to apologize for such simpl questions. I could look it up, and would eventually find out, but after an hour, i realized it would take me 50x the time for someone
fluent in ruby to answer it.
Looked for a "basic formulas repository for RMMV", but to no avail
I looked up some Ruby tutorials, and came up (100% self made, beware) with this :
if (a.level < 4) { a.addState(74); } else if (a.level < 7 and a.level > 3) { b.addState(74); } else if (a.level > 6) { b.addState(74); }
Somehow doen't work, sadly : /
also tried with "Elsif" but since nobody mentionned that here, i assumed it wasn't used
Could you give me a proper "stair like" version of this ? (the nice, much more readable thing, that people use in note boxes) ; it looks like for now, my only option is too leach and learn
What if i wanted to check for multiple conditions ?
Like "If actor is level 3,
- If actor is at full health : gain X,
- Else : (not at full heatlh) : Heal,
if not level 3, do nothing"
Edit : I'd like to apologize for such simpl questions. I could look it up, and would eventually find out, but after an hour, i realized it would take me 50x the time for someone
fluent in ruby to answer it.
Looked for a "basic formulas repository for RMMV", but to no avail
Last edited by a moderator:

