I would like some help with my gambling Trigger plz

Synthetics

New Member
Reaction score
7
Hey peeps i have a mini game in my map where you choose one of 3 levers (destructable doodads) but when the lever is hit i can get it to work. i Have something that kind of works but isn't what i want it to do as i want it to be for multi player this is the trigger that works.

Prize set up L1
Events
Destructible - Lever 4521 <gen> dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Player - Add 150 to Player 1 (Red) Current gold <-- [I get the gold] Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: Congratulations, Yo...<--[this doesn't show me anything] Wait 5.00 seconds
Unit Group - Pick every unit in (Units in Unit select <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Gambling Exit <gen>)
Camera - Apply Gambling Exit <gen> for (Owner of (Triggering unit)) over 0.00 seconds
Trigger - Turn on Set up <gen>
Destructible - Resurrect Lever 4521 <gen> with (Max life of (Last created destructible)) life and Show birth animation
Else - Actions<--[This whole section except for resurecting the lever and the camera setting/unit move doesn't work :(] Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: Hard luck pal, mayb...
Wait 5.00 seconds
Unit Group - Pick every unit in (Units in Unit select <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Gambling Exit <gen>)
Camera - Apply Gambling Den <gen> for (Owner of (Triggering unit)) over 0.00 seconds
Destructible - Resurrect Lever 4521 <gen> with (Max life of (Last created destructible)) life and Show birth animation
Trigger - Turn on Set up <gen>

This is the orignal trigger that doesn't work at all

Prize set up L2
Events
Destructible - Lever 4958 <gen> dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Gambling_Lever2 Equal to 1
Then - Actions
Player - Add 150 to (Owner of (Triggering unit)) Current gold
Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: Congratulations, Yo...
Wait 5.00 seconds
Unit Group - Pick every unit in (Units in Unit select <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Gambling Exit <gen>)
Camera - Apply Gambling Exit <gen> for (Triggering player) over 0.00 seconds
Trigger - Turn on Set up <gen>
Destructible - Resurrect Lever 4958 <gen> with (Max life of (Last created destructible)) life and Show birth animation
Else - Actions
Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: Hard luck pal, mayb...
Wait 5.00 seconds
Unit Group - Pick every unit in (Units in Unit select <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Gambling Exit <gen>)
Camera - Apply Gambling Den <gen> for (Owner of (Triggering unit)) over 0.00 seconds
Trigger - Turn on Set up <gen>
Destructible - Resurrect Lever 4958 <gen> with (Max life of (Last created destructible)) life and Show birth animation

The variable set up is correct becuase of the first trigger i showed you so its doething to do with triggering player but i changed it all to triggering pplayer and it doesn't work.

Any help would be very appreciated

Thanks for your time :)
 
lol i know that i was wondering what i would use so that a player would get stuff.messages i changed it to this now and it works perfectly Thanks for your help :D

Code:
Prize set up L1
    Events
        Unit - A unit Is issued an order targeting an object
    Conditions
        (Target destructible of issued order) Equal to Lever 4521 <gen>
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Gambling_Lever1 Equal to 1
            Then - Actions
                Wait 2.50 seconds
                Player - Add 150 to Player 1 (Red) Current gold
                Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: |CFFFFF799Congratul...
                Unit - Pause (Triggering unit)
                Wait 3.00 seconds
                Unit Group - Pick every unit in (Units in Unit select <gen>) and do (Actions)
                    Loop - Actions
                        Unit - Move (Picked unit) instantly to (Center of Gambling Exit <gen>)
                Camera - Apply Gambling Exit <gen> for (Owner of (Triggering unit)) over 0.00 seconds
                Unit - Unpause (Triggering unit)
                Trigger - Turn on Set up <gen>
                Destructible - Resurrect Lever 4521 <gen> with (Max life of (Last created destructible)) life and Show birth animation
            Else - Actions
                Wait 2.50 seconds
                Game - Display to (Player group((Owner of (Triggering unit)))) for 8.00 seconds the text: |CFF949694Hard luck...
                Unit - Pause (Triggering unit)
                Wait 3.00 seconds
                Unit Group - Pick every unit in (Units in Unit select <gen>) and do (Actions)
                    Loop - Actions
                        Unit - Move (Picked unit) instantly to (Center of Gambling Exit <gen>)
                Camera - Apply Gambling Exit <gen> for (Owner of (Triggering unit)) over 0.00 seconds
                Unit - Unpause (Triggering unit)
                Destructible - Resurrect Lever 4521 <gen> with (Max life of (Last created destructible)) life and Show birth animation
                Trigger - Turn on Set up <gen>
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      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