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

No Idea! -->Units enter Region->VARIABLE +1 and that S

Status
Not open for further replies.
Level 2
Joined
Jul 28, 2006
Messages
18
Hello,
i got a problem with a trigger... i have no idea how to do that :) ..

If a Unit enters a Region "YELLOW" and if the Unit got the Item "POOL", then a Variable "POOLCOUNT" should get +1
My problem is, some conditon does not exist :) ... Have a look at my idea ...
i hope u got a sullution for my trigger .

###1###
Event:
Unit enters region "YELLOW"


CONDITION:
Unit has got the ITEM "ITEM TYPE of POOL"


ACTION:
Remove Item "POOL" from the game. (it has to be removed ! , it has to be out of playable area)

Set Variable "POOLCOUNT"(Numbe - Starting by "0") = +1 (Arithmetic i think)

###1###

---

###2###
EVENT:
Every 5 Seconds of the game

CONDITION:
Number of Variable "POLLCOUNT" > 6

ACTION:
Victory Player 1,2,3 ... and so on
Defeat 6,7,8 and so on

ELSE ACTION:
do nothing :) .

###2###

Thank you for taking care of my problems :) .
 
Level 5
Joined
Jun 17, 2006
Messages
114
looks like it should work, though i could be misunderstanding some of your code. you might change your condition to the boolean condition "triggering unit has item POOL equal to true". then make sure you do POOLCOUNT = POOLCOUNT + 1.

if this doesn't work then have the game display text messages like what the variable POOLCOUNT is at or whether the triggering hero actually has item POOL so that you can figure out what the problem is. it's a pretty standard debugging technique and you'll find it extremely useful.
 
Status
Not open for further replies.
Top