Hey there, I'm not much of a scripter or anything, just trying to get my event to work.
Basically, it's a common event that takes care of rewards my dungeons yield after triggering the "exit". A timer is running when entering the dungeon
and is stored in a variable when triggering the dungeon exit. Timer value equals seconds left to 0. So, when I'm finishing a dungeon with 2min left, I have 120 stored in that variable.
My problem is I can't figure out how to use this variable to multiply the set rewards to multiply by variable / 100. I want the variable to be a multiplier, so 120 would be 1.2x the rewards.
I've been trying to get that to work for a few hours now :/
TL;DR: How can I bypass number rounding to use a variable as a small multiplier (e.g 2.5; 1.4; etc.). ( timer / 100 = multiplier)
I'm super tired, please forgive me poor wording/phrasing.. I hope I got my point across.
Thanks in advance.
--------------
Got it to work by reversing the order.
(Reward / 100) * timer
Uff..Math. Would be nice to know if there is a different way though.
Basically, it's a common event that takes care of rewards my dungeons yield after triggering the "exit". A timer is running when entering the dungeon
and is stored in a variable when triggering the dungeon exit. Timer value equals seconds left to 0. So, when I'm finishing a dungeon with 2min left, I have 120 stored in that variable.
My problem is I can't figure out how to use this variable to multiply the set rewards to multiply by variable / 100. I want the variable to be a multiplier, so 120 would be 1.2x the rewards.
I've been trying to get that to work for a few hours now :/
TL;DR: How can I bypass number rounding to use a variable as a small multiplier (e.g 2.5; 1.4; etc.). ( timer / 100 = multiplier)
I'm super tired, please forgive me poor wording/phrasing.. I hope I got my point across.
Thanks in advance.
--------------
Got it to work by reversing the order.
(Reward / 100) * timer
Uff..Math. Would be nice to know if there is a different way though.