• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] 3 triggers... 3 problems

Status
Not open for further replies.
Level 7
Joined
Apr 13, 2008
Messages
183
Can someone help me with the creation of 3 triggers?
1. When a player kills a player this message comes out: (Killer's name) made (killed name)'s head a strawberry pie. He deserves 300 gold.
2. When hekills him he gets 300 gold
3. I need help with a score board like dota - only players name, kills and deaths.
THANK YOU VERY MUCH! I WILL REALLY BE HAPPY IF SOMEONE HELPS ME! :thumbs_up:
 
The answer of all three questions there:
  • Multiboard Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Wait 0.00 seconds
      • Multiboard - Create a multiboard with 3 columns and 3 rows, titled Info Board
      • Set Multiboard_Itself = (Last created multiboard)
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loops - Actions
          • Multiboard - Set the display style for Multiboard_Itself item in column 1, row (Integer A) to Zeigen text and Verbergen icons
          • Multiboard - Set the display style for Multiboard_Itself item in column 2, row (Integer A) to Zeigen text and Verbergen icons
          • Multiboard - Set the display style for Multiboard_Itself item in column 3, row (Integer A) to Zeigen text and Verbergen icons
          • Multiboard - Set the width for Multiboard_Itself item in column 1, row (Integer A) to 9.00% of the total screen width
          • Multiboard - Set the width for Multiboard_Itself item in column 2, row (Integer A) to 4.00% of the total screen width
          • Multiboard - Set the width for Multiboard_Itself item in column 3, row (Integer A) to 4.00% of the total screen width
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loops - Actions
          • Multiboard - Set the text for Multiboard_Itself item in column 1, row ((Integer A) + 1) to (Name of (Player((Integer A))))
      • Multiboard - Set the text for Multiboard_Itself item in column 1, row 1 to Player
      • Multiboard - Set the text for Multiboard_Itself item in column 2, row 1 to Kills
      • Multiboard - Set the text for Multiboard_Itself item in column 3, row 1 to Deaths
      • Trigger - Run Update Board <gen> (ignoring conditions)
      • Multiboard - Show Multiboard_Itself
  • Update Board
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 2, do (Actions)
        • Loops - Actions
          • Multiboard - Set the text for Multiboard_Itself item in column ((Integer A) + 1), row 2 to (String(Multiboard_Kills[(Integer A)]))
          • Multiboard - Set the text for Multiboard_Itself item in column ((Integer A) + 1), row 3 to (String(Multiboard_Deaths[(Integer A)]))
  • Register Dead
    • Events
      • Unit - A unit dies
    • Conditions
    • Actions
      • Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + ( made + ((Name of (Owner of (Triggering unit))) + 's head a strawberry pie. He deserves 300 gold.)))
      • Player - Add 300 to (Owner of (Killing unit)) Current Gold
      • Set Multiboard_Kills[(Player number of (Owner of (Killing unit)))] = (Multiboard_Kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Set Multiboard_Deaths[(Player number of (Owner of (Triggering unit)))] = (Multiboard_Deaths[(Player number of (Owner of (Triggering unit)))] + 1)
      • Trigger - Run Update Board <gen> (ignoring conditions)
You need 3 variables:
- Kills,Deaths array of the type integer
- Itself of the type multiboard

At the first trigger the multiboard gonna be created. The second trigger is a simple update trigger and the third trigger is the kill trigger with your wanted message and action.
 
does it work? didnt for me. If it did work, there should also be a condition at the last trigger (killed units equal to hero.) In the topic starters case. Woops, it does work.
 
im not the the topic starter lol. Anyways, thats what i thought because his map was a AoS and the topic creator seems to be a noob.
 
OMG!!! I messed it up again! I am so stupid! I am such a noob. Hanky can you please upload or give me a map with those trigger so I can just copy them in my map cuz I have so much problems :( If you do not upload it just send it to me at skype : monkaa1 or lil_g_mafia_reatek TNX FOR EVERYTHING, BUT SORRY THAT I AM SUCH A DORKY FACE :( :( :(
 
Status
Not open for further replies.
Back
Top