- Joined
- Feb 11, 2014
- Messages
- 26
- Reaction score
- 1
- First Language
- English
- Primarily Uses
I want to make the system differentiate between buffs and debuffs so that I'm not stuck with -X*buffcount% and +X*buffcount%. I decided to use the object param_id as the case identifier. Here is my code:
def param_buff_rate(param_id) if param_id < 0 @buffs[param_id] * 0.15 + 1.0 if param_id > 0 @buffs[param_id] * 0.5 + 1.0 if param_id == 0 @buffs[param_id] * 0 + 1.0 endSince the error message pointed to line 738 as an unexpected "end," I'm guessing my syntax is off instead of referencing the wrong object/function. I am a complete newb at RGSSx, so bear that in mind with any details given.
def param_buff_rate(param_id) if param_id < 0 @buffs[param_id] * 0.15 + 1.0 if param_id > 0 @buffs[param_id] * 0.5 + 1.0 if param_id == 0 @buffs[param_id] * 0 + 1.0 endSince the error message pointed to line 738 as an unexpected "end," I'm guessing my syntax is off instead of referencing the wrong object/function. I am a complete newb at RGSSx, so bear that in mind with any details given.

