• 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.

How do I Make a -ma trigger?

Status
Not open for further replies.
Level 6
Joined
Apr 22, 2009
Messages
165
I think this particular trigger is called -ma.
It is a common trigger in AoS's (even in dota)
It shows the heroes your opponents has and what levels they are.

For examples:
Red types -ma

Red receives message:
Crystal Keeper(Lvl5)
King(Lvl18)
Dog(Lvl14)

Will someone please send me a map or describe in here EXACTLY on how to make this with GUI.

Important notes:
If red,blue,teal,purple,yellow write it. It will reveal ONLY Orange, green, pink, grey, lightblue.
It shows nothing for players that are not in the game.
the name of the hero is the only thing that is coloured
Hero name coloured to match their team colour (der)
The trigger should only show the message to the triggering palyer.
If this must be in JASS I will nee dit directly uploaded into my map so pm me for it.

Thankyou! I will reward with rep.

Plz set out the trigger details like this:

Variable list
Variable (type(array yes/no))

Trigger(s)

Confuzzling parts explained. Thank you. Rep awarded
 
Level 6
Joined
Jul 24, 2008
Messages
180
You need a unit variable that is set wen the unit is sold so u can identify wich player owns it. For it to work in this way u need array 12.

Player types a message containg -ma

For each variable from 1 to 12 do actions
If player (variable a) is an enemy of triggering player equal to true
Then display to player group(triggering player) the message Hero [1].


It will display the hero strings one at a time.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Here you go:

  • Colours
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set Player_Colours[1] = |cffFF0202
      • Set Player_Colours[2] = |cff0041FF
      • Set Player_Colours[3] = |cff1BE5B8
      • Set Player_Colours[4] = |cff530080
      • Set Player_Colours[5] = |cffFFFC00
      • Set Player_Colours[6] = |cffFE890D
      • Set Player_Colours[7] = |cff1FBF00
      • Set Player_Colours[8] = |cffE45AAF
      • Set Player_Colours[9] = |cff949596
      • Set Player_Colours[10] = |cff7DBEF1
      • Set Player_Colours[11] = |cff0F6145
      • Set Player_Colours[12] = |cff4D2903
  • Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing -ma as An exact match
      • Player - Player 2 (Blue) types a chat message containing -ma as An exact match
      • Player - Player 3 (Teal) types a chat message containing -ma as An exact match
      • Player - Player 4 (Purple) types a chat message containing -ma as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -ma as An exact match
      • Player - Player 6 (Orange) types a chat message containing -ma as An exact match
      • Player - Player 7 (Green) types a chat message containing -ma as An exact match
      • Player - Player 8 (Pink) types a chat message containing -ma as An exact match
      • Player - Player 9 (Gray) types a chat message containing -ma as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -ma as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -ma as An exact match
      • Player - Player 12 (Brown) types a chat message containing -ma as An exact match
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Integer A) Not equal to (Player number of (Triggering player))
            • Then - Actions
              • Set Temp_Group_1 = (Units owned by (Player((Integer A))) matching (((Matching unit) is A Hero) Equal to True))
              • Unit Group - Pick every unit in Temp_Group_1 and do (Actions)
                • Loop - Actions
                  • Game - Display to (Player group((Triggering player))) the text: (Player_Colours[(Integer A)] + ((Proper name of (Picked unit)) + (|r + ( ( + ((String((Level of (Picked unit)))) + ))))))
              • Custom script: call DestroyGroup(udg_Temp_Group_1)
            • Else - Actions
 

Attachments

  • Player_Colours.w3x
    17.9 KB · Views: 25
Status
Not open for further replies.
Top