Variable help. -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 12 years ago

HI, I could work with variables before but have forgotten..:( I am trying to do so when you kill a hero variable herokilled += 1 how to:confused: Any help would be great:)




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#2 12 years ago

events: a unit dies conditions: (boolean) dieing unit is a hero = true actions: set variable - herokilled = (arithmetic) herokilled + 1

the action is called "set variable"

okay?




Guest

I didn't make it!

0 XP

 
#3 12 years ago

I am at that point my but it says 1 + 1 and when i say 0 + 1 it still doesn't work if you understand what i mean if not add [email]kim_teigen2@hotmail.com[/email] to msn i send screen shot and stuff.




Guest

I didn't make it!

0 XP

 
#4 12 years ago

I did it forget it;) but you were helpfull without you this wouldn't be possible for me;)




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#5 12 years ago

feels good to hear that ;)




mswolfe

I hear voices in my head.....

50 XP

21st July 2006

0 Uploads

12 Posts

0 Threads

#6 12 years ago

Okay, I have a question similar to this, and this seems as good a place as any to post it.

My question is, when the hero dies, how do you get the game to set a variable that would remember which Hero had died, and from which player?

Thanks if you've got any ideas




beier

TFT

50 XP

15th October 2004

0 Uploads

41 Posts

0 Threads

#7 12 years ago

hmm.. depends.. what u wanna use it for?




Eleandor

No User title

50 XP

27th July 2004

0 Uploads

548 Posts

0 Threads

#8 12 years ago

do you mean what hero type? or the exact hero (including all items, stats (bonusses), ...?

should this data be reloaded later in the game, or, like beier said, what will this be used for