• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Variable question

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
594
I was just wondering if i can use the same variables to store a unit that is progressing a quest by for example killing à creep and to use the same variable to store à unit who picks up the quest? You pick up a quest by buying à dummy unit.

Thanks for any help on this :)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
so 1st this unit buying quest then start kill creeps?
why dont use a integer variable?

example:
when u buy a quest then
Pityu=ur unit
PeriodicJob1[custom value of Pityu] = 1
when u activated the quest or started then
PeriodicJob1[custom value of Pityu] = 2
when u are done then
PeriodicJob1[custom value of Pityu] = 3
when u got the reward then
PeriodicJob1[custom value of Pityu] = 0
 
Status
Not open for further replies.
Top