item equipped = victory for allies, how?!

spextro

New Member
Reaction score
0
I want to achive victory when a item is equipped at the end of the map, I tried different triggers I found here but somehow it does not seem to work. Could someone post a working trigger, please? :)
 
I try to write the trigger as how it would look, while i dont have an editor in front of me.

Code:
[I]Event[/I]
Unit acquires an Item
[I]Condition[/I]
Hero manipulating item equal to [B]your item[/B].
[I]Actions[/I]
Player Group - Pick every player in players matching condition, matching player is an ally of owner of hero manipulating item equal to true.
Loop
Game - Victory picked player

Leaks player group
 
Code:
Event
 A unit acquires an item
Condition
 Item-type of (Item being manipulated) Equal to YourItemType
Actions
 Player Group - Pick every player in (All players) and do (Actions)
    Loop - Actions
       If then else
          If - Conditions
             (Picked player) Equal to (Owner of (Triggering unit))
          Then - Actions
             Game - Victory (Owner of (Triggering unit))
          Else - Actions
             Game - Defeat (Picked player)

Not tested though.

> I tried different triggers I found here but somehow it does not seem to work
You should at least post your trigger. :rolleyes:
 
uhm, I can't seem to find the conditions you posted.. Could you explain more precis what to choose? :pP
 
Multiple winning/defeat triggers: HALP! :(

I need to figure out how to make this work: When Force 1 brings an item back to base they win, which works allready (will the other force automatically be defeated?) .
I also want to trigger that if their Town Hall is destroyed they loose and the other force wins.

Thanks in advance :)

This is the trigger thingy I use now:
Code:
Events
    Map initialization
    Unit - Item Collector 0669 <gen> Acquires an itemConditions
Conditions
    Wo0tz iTemZ oF ulTiMatE GG 0120 <gen> Equal to (Item carried by Item Collector 0669 <gen> in slot 1)
Actions
    Melee Game - Use melee time of day (for all players)
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Picked player) Equal to (Owner of Wo0tz iTemZ oF ulTiMatE GG 0120 <gen>)
                Then - Actions
                    Game - Defeat Player 1 (Red) with the message: Defeat!
                Else - Actions
                    Game - Victory (Picked player) (Show dialogs, Show scores)
    Game - Display to (All players) for 35.00 seconds the text: (GL & HF + <Empty String>)
    Game - Display to (All players) for 35.00 seconds the text: (<Empty String> + Be careful not to die early!)
    Melee Game - Limit Heroes to 1 per Hero-type (for all players)
    Melee Game - Run melee AI scripts (for computer players)
    Hero - Make Player 1 (Red) Heroes gain 250.00% experience from future kills
    Hero - Make Player 2 (Blue) Heroes gain 250.00% experience from future kills
    Hero - Make Player 3 (Teal) Heroes gain 250.00% experience from future kills
    Hero - Make Player 5 (Yellow) Heroes gain 250.00% experience from future kills
    Hero - Make Player 6 (Orange) Heroes gain 250.00% experience from future kills
    Hero - Make Player 7 (Green) Heroes gain 250.00% experience from future kills

What should the trigger look like to fit my description?
 
You need to put the defeat trigger into a separate trigger. Make a new trigger with your Unit Aquires item event. Then make all players in that team win and the players in the other team lose. Do the same for a building being destroyed except use the Unit Dies event.
 
multiple winning/loosing triggers

I need to figure out how to make this work: When Force 1 brings an item back to base they win, which works allready (will the other force automatically be defeated?) .
I also want to trigger that if their Town Hall is destroyed they loose and the other force wins. Could someone post the code for how this trigger actually should be?


This is the trigger thingy I use now:
Code:
Events
    Map initialization
    Unit - Item Collector 0669 <gen> Acquires an itemConditions
Conditions
    Wo0tz iTemZ oF ulTiMatE GG 0120 <gen> Equal to (Item carried by Item Collector 0669 <gen> in slot 1)
Actions
    Melee Game - Use melee time of day (for all players)
    Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Picked player) Equal to (Owner of Wo0tz iTemZ oF ulTiMatE GG 0120 <gen>)
                Then - Actions
                    Game - Defeat Player 1 (Red) with the message: Defeat!
                Else - Actions
                    Game - Victory (Picked player) (Show dialogs, Show scores)
    Game - Display to (All players) for 35.00 seconds the text: (GL & HF + <Empty String>)
    Game - Display to (All players) for 35.00 seconds the text: (<Empty String> + Be careful not to die early!)
    Melee Game - Limit Heroes to 1 per Hero-type (for all players)
    Melee Game - Run melee AI scripts (for computer players)
    Hero - Make Player 1 (Red) Heroes gain 250.00% experience from future kills
    Hero - Make Player 2 (Blue) Heroes gain 250.00% experience from future kills
    Hero - Make Player 3 (Teal) Heroes gain 250.00% experience from future kills
    Hero - Make Player 5 (Yellow) Heroes gain 250.00% experience from future kills
    Hero - Make Player 6 (Orange) Heroes gain 250.00% experience from future kills
    Hero - Make Player 7 (Green) Heroes gain 250.00% experience from future kills

What should the trigger look like to fit my description?
thx in advance =)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:

      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