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

Few trigger questions.

Status
Not open for further replies.
Level 5
Joined
Apr 26, 2009
Messages
92
First off i would like this to all be possible on a RoC editor.
Thing i would like help with:
-Setting names on RoC.
-Imputting numbers from chat, like -agi 5 would give you 5 agilty
-Be able to make certain spell un-castable on a cetrain unit (again RoC)

Thanks for your help!
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
1. I can't understand you.

2. Use this:
  • Add Agility
    • Events
      • Player - Player 1 (Red) types a chat message containing -agi as A Substring
      • Player - Player 2 (Blue) types a chat message containing -agi as A Substring
      • Player - Player 3 (Teal) types a chat message containing -agi as A Substring
      • Player - Player 4 (Purple) types a chat message containing -agi as A Substring
      • Player - Player 5 (Yellow) types a chat message containing -agi as A Substring
      • Player - Player 6 (Orange) types a chat message containing -agi as A Substring
      • Player - Player 7 (Green) types a chat message containing -agi as A Substring
      • Player - Player 8 (Pink) types a chat message containing -agi as A Substring
      • Player - Player 9 (Gray) types a chat message containing -agi as A Substring
      • Player - Player 10 (Light Blue) types a chat message containing -agi as A Substring
      • Player - Player 11 (Dark Green) types a chat message containing -agi as A Substring
      • Player - Player 12 (Brown) types a chat message containing -agi as A Substring
    • Conditions
    • Actions
      • Set Group = (Units currently selected by (Triggering player))
      • Unit Group - Pick every unit in Group and do (Actions)
        • Loop - Actions
          • Hero - Modify Agility of (Picked unit): Add (Integer((Substring((Entered chat string), 5, 10))))
      • Custom script: call DestroyGroup (udg_Group)
3. Use upgrades (techtrees).
 
Level 5
Joined
Apr 26, 2009
Messages
92
Thank for second one. For first i mean is there a way to use the "Player->Set Name" in a RoC editor. Like is it possible in JASS
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
If you mean this:
  • Set Name
    • Events
      • Player - Player 1 (Red) types a chat message containing -name as A Substring
    • Conditions
    • Actions
      • Set String_Name = (Substring((Entered chat string), 6, 20))
      • Player - Set name of (Triggering player) to String_Name
Edit: Sorry, I was on a hurry to while making the -agi trigger, the player event must be "A Substring" not "An exact match", take a look.
 
Level 5
Joined
Apr 26, 2009
Messages
92
Code:
Untitled Trigger 013
    Events
        Map initialization
    Conditions
    Actions
        Player - Set name of Player 1 (Red) to (|cffFF0202 + (Name of Player 1 (Red)))

(i dont know how to put the tigger in post) i would repeat for other players...the purpose of this is to set the players' name with the color.

This would make my map the frozen throne...is there a way to make this still be a rain of chaos map trigger.
 
Level 5
Joined
Apr 26, 2009
Messages
92
Never Mind. I can just use the trigger i have and convert it to JASS. This should allow it to be RoC.
 
Status
Not open for further replies.
Top