I want to create a system that increases the basic statistics of the characters,
When an enemy is killed by the user who has just killed him.
One or more attributes in variables are increased.
HP max, MP max, Attack, Defense, Magic, Magic defense, Speed and luck.
Each character will have an eight attribute curve on a different rate of increase.
I would like to add a damage formula that calculates if the user's ID = 2, 3, 4, 5, 6, 7, 8, 9
Which adds a different status to the target.
Then in the monster group.
If monster 1 or 2 is kill and is under status 322, 323, 324, 325, 326, 327, 328, 329 its mounts a variable of + 1 or predefined states on a character.
I created 8 skill with a following formula.
a.id == 2? b.add_state (322)
a.id == 3? b.add_state (323)
a.id == 4? b.add_state (324)
a.id == 5? b.add_state (325)
a.id == 6? b.add_state (326)
a.id == 7? b.add_state (327)
a.id == 8? b.add_state (328)
a.id == 9? b.add_state (329)
Then a skill that connects all eight skills.
I tested this formula but only it does not work well.
How to do that when The enemy is killing his add the variable?
the formula is not good?
Thank you in advance !
[Rpg maker VX ace] Enemy kill Add +1 to one variable.
● ARCHIVED · READ-ONLY
-
-
The branched formula goes by this format
Code:You put together the question mark with condition, it wont works. It needs a space. For example<condition> ? <true> : <false>
Code:It just a simple syntax error.a.id == 2 ? b.add_state(322) : 0 -
Hello
Thank you so much to help me ^^
Finally the system works.
in another way.
Each kill enemy gives a random bonus in a variable for all actor in combat.
And depending on the current class the bonus is different.