Pim_gd
Content Creator
- Joined
- Jan 25, 2013
I have a question involving Variable Arithmetic. Currently I'm working on a dialogue, and my hopes and dreams for it is easily outclassing my skill (Which is good because it forces me to LEARN!), but anywho, I developed some algorithms to handle all my stat growth and decay, HOWEVER, I just realized that the "^" operator doesn't work.. ie... 5^2=25 I have very limited knowledge in how these mods actually interact with the main game and flash in general, so with that being said is it impossible to implement powers into Variable Arithmetic? I totally nutted my code so it would work but the lack of exponential growth and decay kinda makes me a little sad. :) I appreciate all the hard work you guys are doing to make the game so much more fun to tinker with! Thanks for reading!!
EDIT: Ok maybe I'm just math illiterate. NEW QUESTION! I'm trying to multiple with the [SETVAR..] trigger but getting weird results. Examples...
[SETVAR_stamina_-=*( 2 x 5 )*] returns a "not a number" error... so I tapped into 20 year old highschool math know how and did this..
[SETVAR_stamina_-=*( 2 ( 5 ) )*] where "stamina" originally was 100... and it returned 75. So for grins and also trying to find an explaination I tried ( 2 ( 3 ) ) and it returned 77...so somehow it seems its is ignoring the parentheses and LITERALLY subtracting 25 and 23... which means there is no way I can do multiplication, however when I look at other dialogues for examples they can clearly use "x" as an operator...
For not being a mathmatically inclined person, this just makes me face hurt lol. Can someone explain this to me please? And why does it seem the "x" operator isn't working? Using DialogueActions 4.06. Any help would be appreciated, this is very frustrating. Math is supposed to be logical not magical. :)
Code:
initial_settings:{"x":"*","var1":10,"var2":20}
start:"*var1 x var2*"
Result will be 200.
The "x" doesn't work, because, the X isn't used for multiplication. A special symbol is used, but people tend to write it as x. ... There's a tendency to use asterisks, but you can't do that because, well, * is already used for variable insertions for SDT. It's quite a pain.