Retrieving Lost Integer

RedRage

New Member
Reaction score
7
Is their a way to retrieve a integer, after you changed it???
And plz if their is a way in jass can you post?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
891
I don't think that's possible.
You changed the integer.
Unless it's an array, it can't store multiple values.
So, it's now a new number.
 

waaaks!

Zinctified
Reaction score
256
i think theres a way

maybe you need the local handle variable system to store an integer, and after using the integer again

but i remembered that local handle vars are just for handles
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Well I don't know JASS (Lazy me) but what I would do is make two integers. The one i'm going to use, and a second one to save the previous integer.
So
Set FirstIntVar = 1
Set SecIntVar = 1

Set FirstIntVar = 2
Do actions
Set FirstIntVar = SecIntVar

or not? >_<
 

Waaaaagh

I lost all my rep and my title being a jerk
Reaction score
70
Why the hell do you need to know what an integer was?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top