I'm trying to build a system in which a spell's effect depends on variables :
User A selects a spell, a window pops up and asks if he wants to overcharge the spell (Ie : pay more to get a better effect/damage)
Depending on his answer Variable Overcharge is set to say +2
I'd like a way to input in my note box a way to check for that variable (long way would be with Ifs) and process a different damage formula depending on it's value
If you could give me an exemple with such a formula, it would be swell !
Bonus points if it's on multiple lines so i'm sure i understand where the colons and such go
TLDR : What syntax to check a variable in the damage formula
Cheers !
Secondary question : Do you think it would slow the game too much to add such a choice to the spells ?
What if i made it into a slidebar using common event ?
User A selects a spell, a window pops up and asks if he wants to overcharge the spell (Ie : pay more to get a better effect/damage)
Depending on his answer Variable Overcharge is set to say +2
I'd like a way to input in my note box a way to check for that variable (long way would be with Ifs) and process a different damage formula depending on it's value
If you could give me an exemple with such a formula, it would be swell !
Bonus points if it's on multiple lines so i'm sure i understand where the colons and such go
TLDR : What syntax to check a variable in the damage formula
Cheers !
Secondary question : Do you think it would slow the game too much to add such a choice to the spells ?
What if i made it into a slidebar using common event ?