Haha, this got interesting. I tested the trigger and it doesn't activate at all..
I read your EDIT: but now I think that needs to re-edit.. I'm really confused of why.. but
(Number of living Wisp units owned by (Triggering player)) Greater than or equal to 2
makes the following actions not to activate.
wisp
Events
Unit - A unit enters Wisp <gen> works
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp works
Actions
Game - Display to (All players) the text: hej works
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of living Wisp units owned by (Triggering player)) Greater than or equal to 2 doesn't work?
Then - Actions
Unit - Remove (Triggering unit) from the game doesn't work
Game - Display to (All players) the text: hej 2 doesn't work
Else - Actions
Do nothing
I'm still looking up on why.. rather funny how this little trigger doesn't seem to work. it should be possible, thanks for the continuing of this post. It's interesting
(Tell me if you figure out why ^^)
delete problems
Moderator: Cheaters
-
- Newcomer
- Posts: 6
- Joined: April 19th, 2009, 10:54 am
Re: delete problems
Found it, please wait 1 minute for the reply to be written
OK here it is:
wisp
Events
Unit - A unit enters Wisp <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of living Wisp units owned by (Owner of (Triggering unit))) Greater than 6
Then - Actions
Unit - Remove (Triggering unit) from the game
Else - Actions
Do nothing
The problem was a sloppy mistake xD I'm sorry (Number of living Wisp units owned by (Owner of (Triggering unit))) Greater than 6 ______ I had Triggering Player, but that's not the case here. so I changed to the owner of the triggering unit.
Now about what you wrote before: The trigger only works for a wisp who enters.. and ofcourse that's what we (or I) wanted, cuz why would we have a hero killing wisps? the basic meaning of this trigger is to have a player not able to have more then 6 wisps. atleast that what I understood it like
thanks for the effort
OK here it is:
wisp
Events
Unit - A unit enters Wisp <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of living Wisp units owned by (Owner of (Triggering unit))) Greater than 6
Then - Actions
Unit - Remove (Triggering unit) from the game
Else - Actions
Do nothing
The problem was a sloppy mistake xD I'm sorry (Number of living Wisp units owned by (Owner of (Triggering unit))) Greater than 6 ______ I had Triggering Player, but that's not the case here. so I changed to the owner of the triggering unit.
Now about what you wrote before: The trigger only works for a wisp who enters.. and ofcourse that's what we (or I) wanted, cuz why would we have a hero killing wisps? the basic meaning of this trigger is to have a player not able to have more then 6 wisps. atleast that what I understood it like
thanks for the effort
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: delete problems
Ah..it just hit me that i was thinking of an entirely different way than you. Lol please disregard all my previous comments..lol. I had in my mind that it was a trigger that a unit enters (anyone), and then it would check the players wisp count and remove accordianly. Anyways i see what ya ment now.
-
- Newcomer
- Posts: 6
- Joined: April 19th, 2009, 10:54 am
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm