Warcraft III resources & community, 2003–2006 · archived

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

2 posts
#1

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

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 :) .
#2
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.