1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  4. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  5. The Secrets of Warcraft 3 have revealed interesting works. The RESULTS for Abelhawk's Mini-Mapping Contest #15 have come out!
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Night Rider gained several songs for his journey. The poll for the 12th Music Contest has started. Check it out!
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Help with build a Sharing Bounty System

Discussion in 'Requests' started by (Battleships) Speed, Jul 2, 2019.

  1. (Battleships) Speed

    (Battleships) Speed

    Joined:
    Jun 26, 2019
    Messages:
    16
    Resources:
    0
    Resources:
    0
    How do you build the sharing bounty system like this in tiggers…?
    ************************
    Example:

    Player Names: Speed, Warcraft, Fast, Slow


    [ Ally Hero killing Enemy Hero - Looted 100 golds ]
    • 1. "Speed killed Warcraft"
    • 2. Floating text "100+" golds on top of Warcraft's hero corpse shown to Speed only
    • 3. Speed get 100 golds

    [ 2 Ally Heros killing 1 Enemy Hero - Share Loot ]
    • 1. "Speed killed Warcraft with assist by Fast"
    • 2. Floating text "50+" golds on top of Warcraft's hero corpse shown to Speed & Fast only
    • 3. Speed & Fast get 50 golds each

    [ Ally Hero killing 2 Enemy Heros - Looted 250 golds ]
    • 1. "Speed killed Warcraft
      Speed killed Slow
      Double Kill!"
    • 2. Floating text "100+" golds on top of each hero corpses shown to Speed only
    • 3. Floating text "Double Kill 50+" golds on top of Speed's hero shown to all players
    • 4. Speed get 250 golds total

    [ Ally suicides ]
    • 1. "Speed suicided"
    • 2. Floating text "Suicided!" on top of Speed's hero corpse shown to all players
    • 3. Get nothing

    [ Ally killed 5 enemy heros without dying ]
    • 1. "Kill Speed for 500 golds bounty!"
    • 2. Floating text "500+" golds on top of Speed's hero corpse
    • 3. All Ally Heros who have killing Speed get 500 golds each
     
  2. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    304
    Resources:
    0
    Resources:
    0
    Here's the second version. Added some more stuff.
     
  3. (Battleships) Speed

    (Battleships) Speed

    Joined:
    Jun 26, 2019
    Messages:
    16
    Resources:
    0
    Resources:
    0
    Here the one of Battleships maps that I want you to check it out. Play it. Have 2 computers added in enemy team and use greedisgood 10000, go to base and kill enemy players, and you can see the assist system in game. But, you will need other player to come play with you to see how the assist system go. Also, when you accident kill one of your own teammates, you can see the assist system prevents that but also saying "Player 1 teamkilled Player 2" and get nothing. That's what I am trying to tell you about the teammates.
     
  4. (Battleships) Speed

    (Battleships) Speed

    Joined:
    Jun 26, 2019
    Messages:
    16
    Resources:
    0
    Resources:
    0
    This is Battleships Crossfire.
     

    Attached Files:

  5. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    304
    Resources:
    0
    Resources:
    0
    Third version. I added the teamkilling/suicide stuff and made the code more efficient.
     

    Attached Files:

  6. (Battleships) Speed

    (Battleships) Speed

    Joined:
    Jun 26, 2019
    Messages:
    16
    Resources:
    0
    Resources:
    0
    I just tested it. It is... Perfect!!!!! Thank you! Now I am editing it and loading it into my map and will let you know how it's go. :)
     
  7. (Battleships) Speed

    (Battleships) Speed

    Joined:
    Jun 26, 2019
    Messages:
    16
    Resources:
    0
    Resources:
    0
    Here the other Battleships map that you can access to go in and check it out the tigger system of buying new hero ship. See it?
     

    Attached Files:

  8. Uncle

    Uncle

    Joined:
    Aug 10, 2018
    Messages:
    304
    Resources:
    0
    Resources:
    0
    Can you have more than 1 Ship at a time in this game? Not counting the Item Combiner/Stash thingy.

    If you cannot, add this trigger:

    • Set Your Boat
      • Events
        • Unit - A unit enters (Entire map)
      • Conditions
        • ((Triggering unit) is A Hero) Equal to True
        • (Unit-type of (Triggering unit)) Not equal to Gear Stash & Item Combiner
        • (Owner of (Triggering unit)) Not equal to Player 1 (Red)
        • (Owner of (Triggering unit)) Not equal to Player 2 (Blue)
        • ((Triggering unit) is an illusion) Equal to False
      • Actions
        • Set AS_PlayerHero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)


    There might be some more conditions you need to add depending on how the map works. I don't have the time to test through the entire game to find any weird interactions.

    OR, you can go into the Change Ship trigger and set the AS_PlayerHero variable there. This is the trigger used for buying ships. In the trigger below I added my AS_PlayerHero variable. I simply set "AS_PlayerHero[]" to "PlayerBoat[]" so they will always be the same unit. You need to do this AFTER PlayerBoat has been set.

    • Change Ship
      • Events
        • Unit - A unit Sells a unit
      • Conditions
      • Actions
        • Wait 0.10 seconds
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
          • Then - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Or - Any (Conditions) are true
                  • Conditions
                    • And - All (Conditions) are true
                      • Conditions
                        • ((Owner of PlayerBoat[(Player number of (Owner of (Sold unit)))]) is an ally of Player 1 (Red)) Equal to True
                    • And - All (Conditions) are true
                      • Conditions
                        • ((Owner of PlayerBoat[(Player number of (Owner of (Sold unit)))]) is an ally of Player 2 (Blue)) Equal to True
                    • (Selling unit) Equal to Pirate Ships 0124 <gen>
                    • (Selling unit) Equal to Pirate Ships 0158 <gen>
                    • (Selling unit) Equal to Main Harbour 0131 <gen>
                    • (Selling unit) Equal to Main Harbour 0018 <gen>
                    • (Selling unit) Equal to Main Harbour 0020 <gen>
                    • (Selling unit) Equal to Pirate Ships 0081 <gen>
              • Then - Actions
                • -------- Change Ship --------
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Unit-type of PlayerBoat[(Player number of (Owner of (Sold unit)))]) Not equal to Captain
                  • Then - Actions
                  • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Or - Any (Conditions) are true
                      • Conditions
                        • (Unit-type of (Sold unit)) Equal to Support DPS
                        • (Unit-type of (Sold unit)) Equal to DPS Carry
                        • (Unit-type of (Sold unit)) Equal to Support Tank Healer
                        • (Unit-type of (Sold unit)) Equal to Mobile DPS Carry
                        • (Unit-type of (Sold unit)) Equal to DPS
                        • (Unit-type of (Sold unit)) Equal to Forgotten
                        • (Unit-type of (Sold unit)) Equal to Forgotten
                        • (Unit-type of (Sold unit)) Equal to Eliminator
                        • (Unit-type of (Sold unit)) Equal to DPS
                        • (Unit-type of (Sold unit)) Equal to Support Healer
                        • (Unit-type of (Sold unit)) Equal to Eliminator
                        • (Unit-type of (Sold unit)) Equal to Scorpion
                        • (Unit-type of (Sold unit)) Equal to Forgotten
                        • (Unit-type of (Sold unit)) Equal to DPS Carry
                        • (Unit-type of (Sold unit)) Equal to Tank
                        • (Unit-type of (Sold unit)) Equal to Support Tank
                        • (Unit-type of (Sold unit)) Equal to DPS Carry
                        • (Unit-type of (Sold unit)) Equal to Ruler
                        • (Unit-type of (Sold unit)) Equal to Ruler
                        • (Unit-type of (Sold unit)) Equal to Ruler
                        • (Unit-type of (Sold unit)) Equal to Emperor
                        • (Unit-type of (Sold unit)) Equal to Tank Carry
                        • (Unit-type of (Sold unit)) Equal to Tank Support
                        • (Unit-type of (Sold unit)) Equal to Trade Boat
                        • (Unit-type of (Sold unit)) Equal to Support Tank
                  • Then - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • (Unit-type of (Sold unit)) Equal to Trade Boat
                      • Then - Actions
                      • Else - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • (Unit-type of (Sold unit)) Equal to Hardcore Trade Boat
                      • Then - Actions
                      • Else - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • ((Owner of (Sold unit)) is an ally of Player 1 (Red)) Equal to True
                      • Then - Actions
                        • Game - Display to (All allies of (Owner of (Sold unit))) the text: (|cffFF6666 + ((Name of (Owner of (Sold unit))) + (|r has changed ship to a |cffffcc00 + ((Proper name of (Sold unit)) + (|r. (|cffffcc00 + ((Name of (Sold unit)) + |r)))))))
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • gameon Equal to False
                          • Then - Actions
                            • Unit - Move (Buying unit) instantly to (Center of SouthRespawn <gen>)
                          • Else - Actions
                            • Unit - Move (Buying unit) instantly to (Center of Region 055 <gen>)
                        • Player - Add 1 to (Owner of (Sold unit)) Current gold
                      • Else - Actions
                        • Player - Add 1 to (Owner of (Sold unit)) Current gold
                        • Game - Display to (All allies of (Owner of (Sold unit))) the text: (|cff6666FF + ((Name of (Owner of (Sold unit))) + (|r has changed ship to a |cffffcc00 + ((Proper name of (Sold unit)) + (|r. (|cffffcc00 + ((Name of (Sold unit)) + |r)))))))
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • gameon Equal to False
                          • Then - Actions
                            • Unit - Move (Buying unit) instantly to (Center of NorthRespawn <gen>)
                          • Else - Actions
                            • Unit - Move (Buying unit) instantly to (Center of Region 056 <gen>)
                  • Else - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Or - Any (Conditions) are true
                      • Conditions
                  • Then - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • ((Owner of (Sold unit)) is an ally of Player 1 (Red)) Equal to True
                      • Then - Actions
                        • Game - Display to (All allies of (Owner of (Sold unit))) the text: (|cffFF6666 + ((Name of (Owner of (Sold unit))) + (|r has changed ship to an |cffffcc00 + ((Proper name of (Sold unit)) + (|r. (|cffffcc00 + ((Name of (Sold unit)) + |r)))))))
                      • Else - Actions
                        • Game - Display to (All allies of (Owner of (Sold unit))) the text: (|cff6666FF + ((Name of (Owner of (Sold unit))) + (|r has changed ship to an |cffffcc00 + ((Proper name of (Sold unit)) + (|r. (|cffffcc00 + ((Name of (Sold unit)) + |r)))))))
                  • Else - Actions
                • -------- No Ship To Sell --------
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Unit-type of (Sold unit)) Equal to (Unit-type of PlayerBoat[(Player number of (Owner of (Sold unit)))])
                    • (Unit-type of (Sold unit)) Equal to Captain
                  • Then - Actions
                    • Game - Display to (Player group((Owner of PlayerBoat[(Player number of (Owner of (Sold unit)))]))) the text: |cffFF3333You don't...
                  • Else - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • (Unit-type of (Sold unit)) Not equal to Captain
                      • Then - Actions
                        • Unit - Replace PlayerBoat[(Player number of (Owner of (Sold unit)))] with a (Unit-type of (Sold unit)) using The new unit's max life and mana
                        • Unit - Change ownership of PlayerHandyMan[(Player number of (Owner of (Sold unit)))] to (Owner of (Sold unit)) and Change color
                        • Set PlayerBoat[(Player number of (Owner of (Sold unit)))] = (Last replaced unit)
                        • Unit - Set life of (Sold unit) to 1.00
                        • Unit - Set life of (Last replaced unit) to 1.00
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • ShipChange Equal to False
                          • Then - Actions
                          • Else - Actions
                      • Else - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • (Unit-type of (Sold unit)) Equal to Captain
                      • Then - Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • NOBUG[(Player number of (Owner of (Sold unit)))] Not equal to False
                          • Then - Actions
                            • Set LumberPieces[(Player number of (Owner of (Triggering unit)))] = 0
                            • For each (Integer A) from 1 to 6, do (Actions)
                              • Loop - Actions
                                • Hero - Give (Item carried by PlayerBoat[(Player number of (Owner of (Sold unit)))] in slot (Integer A)) to PlayerHandyMan[(Player number of (Owner of (Sold unit)))]
                                • Item - Move (Item carried by PlayerBoat[(Player number of (Owner of (Sold unit)))] in slot (Integer A)) to (Position of PlayerHandyMan[(Player number of (Owner of (Sold unit)))])
                            • Unit - Remove PlayerBoat[(Player number of (Owner of (Sold unit)))] from the game
                            • Set PlayerBoat[(Player number of (Owner of (Sold unit)))] = PlayerHandyMan[(Player number of (Owner of (Sold unit)))]
                            • Unit - Replace PlayerBoat[(Player number of (Owner of (Sold unit)))] with a (Unit-type of PlayerHandyMan[(Player number of (Owner of (Sold unit)))]) using The new unit's max life and mana
                            • Unit - Change ownership of PlayerHandyMan[(Player number of (Owner of (Sold unit)))] to (Owner of (Sold unit)) and Change color
                            • Unit - Remove Get Onboard from PlayerHandyMan[(Player number of (Owner of (Sold unit)))]
                            • Unit - Set life of (Last replaced unit) to 1.00
                            • Unit - Set life of (Sold unit) to 1.00
                            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • If - Conditions
                                • ShipChange Equal to False
                              • Then - Actions
                              • Else - Actions
                          • Else - Actions
                            • Unit - Replace PlayerBoat[(Player number of (Owner of (Sold unit)))] with a (Unit-type of PlayerHandyMan[(Player number of (Owner of (Sold unit)))]) using The new unit's max life and mana
                            • Unit - Change ownership of PlayerHandyMan[(Player number of (Owner of (Sold unit)))] to (Owner of (Sold unit)) and Change color
                            • Set PlayerBoat[(Player number of (Owner of (Sold unit)))] = (Last replaced unit)
                            • Unit - Set life of (Last replaced unit) to 1.00
                            • Unit - Set life of (Sold unit) to 1.00
                            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • If - Conditions
                                • ShipChange Equal to False
                              • Then - Actions
                              • Else - Actions
                      • Else - Actions
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • Or - Any (Conditions) are true
                          • Conditions
                            • (South Main <gen> contains PlayerBoat[(Player number of (Owner of (Sold unit)))]) Equal to True
                            • (North Main <gen> contains PlayerBoat[(Player number of (Owner of (Sold unit)))]) Equal to True
                      • Then - Actions
                        • Do nothing
                      • Else - Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • ((Owner of (Last replaced unit)) is an ally of Player 1 (Red)) Equal to True
                          • Then - Actions
                            • Camera - Pan camera for (Owner of (Buying unit)) to (Position of (Last replaced unit)) over 1.00 seconds
                          • Else - Actions
                        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                          • If - Conditions
                            • ((Owner of (Last replaced unit)) is an ally of Player 2 (Blue)) Equal to True
                          • Then - Actions
                            • Camera - Pan camera for (Owner of (Buying unit)) to (Position of (Last replaced unit)) over 1.00 seconds
                          • Else - Actions
                            • -------- Kill Pirate Harbour - Black Pearl --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • Set AS_PlayerHero[(Player number of (Owner of (Sold unit)))] = PlayerBoat[(Player number of (Owner of (Sold unit)))]
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • -------- ASSIST SYSTEM VARIABLE --------
                • Unit - Remove (Sold unit) from the game
                • Wait 0.20 seconds
              • Else - Actions
          • Else - Actions
        • Unit Group - Pick every unit in (Units owned by (Owner of (Buying unit)) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • ((Picked unit) is hidden) Equal to True
              • Then - Actions
                • Unit - Remove (Picked unit) from the game
              • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Number of units in (Units owned by (Owner of (Buying unit)) matching (((Matching unit) is A Hero) Equal to True))) Greater than 2
          • Then - Actions
            • Unit Group - Pick every unit in (Units owned by (Owner of (Buying unit)) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
              • Loop - Actions
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Picked unit) Not equal to PlayerBoat[(Player number of (Owner of (Picked unit)))]
                  • Then - Actions
                    • Unit - Remove (Picked unit) from the game
                  • Else - Actions
            • Unit - Make PlayerBoat[(Player number of (Owner of (Buying unit)))] Vulnerable
            • Unit - Unpause PlayerBoat[(Player number of (Owner of (Buying unit)))]
            • Unit - Unpause PlayerBoat[(Player number of (Owner of (Buying unit)))]
            • Unit - Make (Last replaced unit) Vulnerable
            • Selection - Select PlayerBoat[(Player number of (Owner of (Buying unit)))] for (Owner of (Buying unit))
            • Camera - Pan camera for (Owner of (Buying unit)) to (Position of (Last replaced unit)) over 1.00 seconds
          • Else - Actions
        • Player Group - Pick every player in (All players) and do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • clearon[(Player number of (Picked player))] Equal to True
              • Then - Actions
                • Cinematic - Clear the screen of text messages for (Player group((Picked player)))
              • Else - Actions
     
    Last edited: Jul 5, 2019