• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Variable question

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
609
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