• 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.

[Trigger] Problem with global variables

Status
Not open for further replies.
Level 1
Joined
Dec 27, 2008
Messages
1
First of all - hello everyone! ;)

Right - I have a problem.
I work on a simple project based on CTF-like games and I created some global variables of types 'unit' and 'player'. I used them in some triggers, everything works perfect, but whenever I make a trigger and want to post there such a line: '<specific unit variable> dies', it keeps telling me that i don't have variables of proper type.

Do I make any logical mistake or don't use these variables in proper way? I've tried making new variables, even let my PC sleep with that, but neither of them worked.

Isn't that strange, that I can't use the same variable of 'unit' in 'Specific Unit Event', when I want to make a line: '<variable> dies'?

Waiting for any solution.
Thanks, bagiet.

Edit: Actually realised that this stuff can be done using Generic Unit Event and some conditions, but it just looks a bit... unelegant. Wondering if there is any other way.
 
Last edited:
Status
Not open for further replies.
Top