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

Need help on this!!!!

Status
Not open for further replies.
Level 2
Joined
Dec 29, 2008
Messages
18
I have been trying to trigger this for a long time by i still could not do it.Here's the question.How do you make a trigger that gives your hero stats and minuses your gold if u typed a certain command?And if u do not have enough money it does not work. Thanks :)
 
Last edited:
Level 13
Joined
Sep 29, 2008
Messages
672
  • test
    • Events
      • Player - Player 1 (Red) types a chat message containing <Command String> as An exact match
      • Player - Player 2 (Blue) types a chat message containing <Command String> as An exact match
      • Player - Player 3 (Teal) types a chat message containing <Command String> as An exact match
      • Player - Player 4 (Purple) types a chat message containing <Command String> as An exact match
      • Player - Player 5 (Yellow) types a chat message containing <Command String> as An exact match
      • Player - Player 6 (Orange) types a chat message containing <Command String> as An exact match
      • Player - Player 7 (Green) types a chat message containing <Command String> as An exact match
      • Player - Player 8 (Pink) types a chat message containing <Command String> as An exact match
      • Player - Player 9 (Gray) types a chat message containing <Command String> as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing <Command String> as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing <Command String> as An exact match
      • Player - Player 12 (Brown) types a chat message containing <Command String> as An exact match
    • Conditions
      • ((Triggering player) Current gold) Greater than or equal to <the gold required>
    • Actions
      • Set UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
      • Player - Add <gold must be negative to subtract> to (Triggering player) Current gold
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Hero - Modify Strength of (Picked Unit): Add 10
          • Hero - Modify Agility of (Picked Unit): Add 10
          • Hero - Modify Intelligence of (Picked Unit): Add 10
      • Custom script: call DestroyGroup(udg_UnitGroup)
 
Status
Not open for further replies.
Top