Picking Item Ends Game (was: More Newb help)

1Shredder1

New Member
Reaction score
1
A big mahalos to those that helped me with my previous problem. But, now heres another problem that's driving me crazy! I'm trying to make my firelord pick up an orb of darkness, making that end the game. However, I just can't get it to work! Here's the complete trigger:

Code:
Events
    Map initialization
    Conditions
Actions
    Melee Game - Use melee time of day (for all players)
    Melee Game - Limit Heroes to 1 per Hero-type (for all players)
    Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
    Melee Game - Set starting resources (for all players)
    Melee Game - Remove creeps and critters from used start locations (for all players)
    Melee Game - Run melee AI scripts (for computer players)
    If {All Conditions are True} then do {Then Actions} else do {Else Actions}
       If - Conditions
         And - All {Conditions are true}
           Conditions
              (Firelord 0009 <gen> is A Hero> Equal to True
              (Firelord 0009 <gen> has Orb of Darkness 0010 <gen> Equal to True
      Then - Actions
          Game - Defeat Player 2 (Blue) with the message: Defeat!
          Game - Victory Player 1 (Red) (Show dialogs, Show scores)
      Else - Actions
          Do nothing

Well, that's it, and yes, I'm sure my team is red, I have a firelord, he is a hero, I have placed an orb of darkness, and blue team exists as computer and team 2.... ARGH!!!!!!!!!! :mad:
 

1Shredder1

New Member
Reaction score
1
No, he doesn't have it in his inventory.. I'm trying to make it so that he picks it up, and that gives me victory. I've also tried putting it in his inventory but that doesn't give me victory either...
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Make some new trigger:

Code:
Item Pick Up
    Events
        Unit - A unit Acquires an item
    Conditions
        (Triggering unit) Equal to <Your Unit>
        (Item-type of (Item being manipulated)) Equal to <Your Item>
    Actions
        <Stuff Here>
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top