Staredit Network > Forums > SC2 Assistance > Topic: Using math in variables
Using math in variables
Dec 28 2010, 3:05 pm
By: Deev  

Dec 28 2010, 3:05 pm Deev Post #1



I had an advanced simluator program for starcraft II, and I used a lot of math equations to constantly update it, but at the time it was simple f(x)=n/x and I found that I could set/mod a variable to be amount divided with another amount, but how do I extend this if I want to do some further math on it?

- In the end I want to set/mod a variable with n/x+c so the mathmatic function I found wont work, since it only had place for 1 point, now I need to add a constant to it also? Of course I could calculate the variable first, then in another variable set that + the constant, but there must be a way to call multible math argumentations in a single line so I can set variable to "n divided x plus c" in same line-



None.

Dec 28 2010, 6:58 pm Roy Post #2

An artist's depiction of an Extended Unit Death

Under the Math section there is a function called Arithmetic, which would be what you want. There's also Arithmetic Multiple, but I don't really see it being faster or more useful.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:25 pm]
Ultraviolet -- in EE2 you just open DatEdit, go to the flingy tab, and make whatever changes you want. Though if you want to do dynamic shit, you have to use the trigger editor with the setdatfile action. And of course you have to inject your changes when done. Can give more specific troubleshooting advice if you provide more details
[05:20 pm]
Ultraviolet -- Symmetry
Symmetry shouted: why can't I seem to make eud editor change flingy.dat D:
Are you using EE2 or EE3?
[04:57 pm]
Symmetry -- wdym
[02:24 pm]
Apos -- :wob:
[04:16 am]
NudeRaider -- files in c:\program files\ are protected
[08:11 pm]
Symmetry -- why can't I seem to make eud editor change flingy.dat D:
[2026-7-11. : 4:33 pm]
Ultraviolet -- :wob:
[2026-7-10. : 11:00 pm]
Vrael -- :wob:
[2026-7-10. : 5:18 pm]
IskatuMesk -- :wob:
[2026-7-10. : 7:29 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: Ultraviolet