WHITE_RABBIT'S PROFILE

Search

Filter

Is rpgmaker2k3 unable to understand subtractions?

Here are 2 examples:

I made a Kraken Monster, the idea was, over time (turns elapsed on the Kraken's side), it spawns tentacles (max 3 hidden tentacles, being revealed one after another every 2 turns). For every tentacle, a variable ("tentacle attack") adds +1. Meaning, after 3 spawned tentacles, we have a value of 3. The same value lowers by 1 every time a tentacle gets killed.
The result is a number between 0 and 3. In the end, after a certain time, Kraken casts a skill (or better said, I make an event that shows a battle animation over my team + the planned damage). Skill damage= value of the Variable "tentacle attack" multiplied with 180~200. So, the more tentacles alive at this point, the more damage dealed to my party. Works fine as long as I don't kill a single tentacle. because as soon as I do, rpgmaker2k3 is in front of a math it can't solve - a subtraction. It also doesn't work with using a different variable for the kills and then subtracting the amount of tentacle attack. It also doesn't work if I change subtract 1 into add -1. It also doesn't work if I use Branches. The result stays the same, first the game "freezes" for like 2 seconds (probably desperatedly trying to solve the math) and then no damage is dealed to anyone.


Another example:

A gravity skill supposed to cut HP depending on my current HP.

Branch if Hero A is in the party
Variable "Hero A HP 1" = the actual HP of Hero A
Variable "Hero A HP 2" = the actual HP of Hero A
Variable: "Hero A HP 1" / 4 (it works fine until here, a gravity spell that lowers my HP by 1/4 or 1/2 works perfectly fine because it doesn't ask for substractions)
Variable "Hero A HP 2" - "Hero A HP 1"
Change HP: decrease by "Hero A HP2" (decreasing HP btw is the only subtraction that works for me)

What happens? My character loses the same amount of HP he has left...
Pages: first prev 1234 last