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

Help Me!!

Status
Not open for further replies.
Level 6
Joined
Sep 26, 2007
Messages
114
hi well i am new to map makeing so triggers and cinematic are new to me as im not sure what im doing.
i want to add -name command to my map so people can change their name
i aslo want to make it so i can open gates in my map
im not sure how to do this just asking if any one will help me
i aslo would like to add it so hero revive at a place like the area which send them to attack
it would be aslo be nice if i could make it so when i play or one of the tester play it says ace992 is playing or w/e
and i want some units to spwn every 45 like 2 foot men & 1 riflemen for human
and 2 gouls and 1 cypt frend
thanx for any help i get
ace992:grin:
 
Last edited:
Level 5
Joined
Apr 12, 2007
Messages
158
1. Wrong place to post if you're asking about triggers mainly.
2. Here:
and i want some units to spwn every 45 like 2 foot men & 1 riflemen for human
and 2 gouls and 1 cypt frend
Simple AoS
  • Events
    • Time - Every 60.00 seconds of game time
  • Actions
    • For each (Integer A) from 1 to 1, do (Actions)
      • Loop - Actions
        • Unit - Create 2 Footman for (insert player) at (Any Regions that you have) facing 180.00 degrees
        • Unit - Create 1 Rifleman for (insert player) at (Any Regions that you have) facing 180.00 degrees
        • Unit Group - Order (Last created unit group) to Attack-Move To (Any Regions that you have)
    • For each (Integer A) from 2 to 2, do (Actions)
      • Loop - Actions
        • Unit - Create 2 Ghoul for (insert player) at (Any Regions that you have) facing 180.00 degrees
        • Unit - Create 1 Crypt Fiend for (insert player) at (Any Regions that you have) facing 180.00 degrees
        • Unit Group - Order (Last created unit group) to Attack-Move To (Any Regions that you have)
i want to add -name command to my map so people can change their name
Name
  • Events
    • Player - Player 1 (Red) types a chat message containing -name as A substring
  • Conditions
    • (Substring((Entered chat string), 1, 6)) Equal to -name
  • IActions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Length of (Entered chat string)) Greater than 27
      • Then - Actions
        • Set NewName = (Substring((Entered chat string), 7, 27))
      • Else - Actions
        • Set NewName = (Substring((Entered chat string), 7, (Length of (Entered chat string))))
    • Player - Set name of (Triggering player) to NewName
NewName is a string-type variable.
 
Last edited:
Level 6
Joined
Sep 26, 2007
Messages
114
i cant find this IActions

If (All Conditions are True) then do (Then Actions) else do (Else Actions)

If - Conditions

(Length of (Entered chat string)) Greater than 27

Then - Actions

Set NewName = (Substring((Entered chat string), 7, 27))

Else - Actions

Set NewName = (Substring((Entered chat string), 7, (Length of (Entered chat string))))
?
 
Level 5
Joined
Apr 12, 2007
Messages
158
If you are talking about If/Then/Else Mulitple Actions, you find it at the top of the list of Actions. The rest should be easy to find.
 
Level 5
Joined
Apr 12, 2007
Messages
158
Everything should be working fine. Does "-name" have a space after the "e", like this -name ?
 
Level 5
Joined
Apr 12, 2007
Messages
158
Everything is good, and like I said on the last post, just make sure the string in the condition is the same as the event.
 
Level 5
Joined
Apr 12, 2007
Messages
158
  • Player - Player 1 (Red) types a chat message containing -name as A substring
-name is the string. BTW, don't double post, just edit.
 
Level 5
Joined
Apr 12, 2007
Messages
158
You didn't set the event to which players can use it.

On the other hand, you messed up the AoS triggers. You didn't make it correctly.

i aslo want to make it so i can open gates in my mapQUOTE]

The open gate action is located on the Destructible part of the Actions list.
 
Level 5
Joined
Apr 12, 2007
Messages
158
ok so how do i fix it?
If you're referring to the AoS then:
Here's what I see -->
  • Time - Every 30.00 seconds of game timeActions
    • For each (Integer A) from 1 to 1, do (Unit - Create 5 Footman for Player 5 (Yellow) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 2 Rifleman for Player 5 (Yellow) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 1 Priest for Player 5 (Yellow) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
  • Events
    • Time - Every 30.00 seconds of game time
  • Actions
    • For each (Integer A) from 1 to 1, do (Unit - Create 5 Ghoul for Player 10 (Light Blue) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 2 Crypt Fiend for Player 10 (Light Blue) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 1 Necromancer for Player 10 (Light Blue) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))

Here's a simple AoS I made.
  • Events
    • Time - Every 60.00 seconds of game time
  • Actions
    • For each (Integer A) from 1 to 1, do (Actions)
      • Loop - Actions
        • Unit - Create 2 Footman for (insert player) at (Any Regions that you have) facing (insert) degrees
        • Unit - Create 1 Rifleman for (insert player) at (Any Regions that you have) facing (insert) degrees
        • Unit Group - Order (Last created unit group) to Attack-Move To (Any Regions that you have)
    • For each (Integer A) from 2 to 2, do (Actions)
      • Loop - Actions
        • Unit - Create 2 Ghoul for (insert player) at (Any Regions that you have) facing (insert) degrees
        • Unit - Create 1 Crypt Fiend for (insert player) at (Any Regions that you have) facing (insert) degrees
        • Unit Group - Order (Last created unit group) to Attack-Move To (Any Regions that you have)
 
Level 5
Joined
Apr 12, 2007
Messages
158
  • Player - Player 1 (Red)types a chat message containing -name as A substring
Just like this, except change the player 1 to any players that are playable by a user. Then, copy and paste to the number of playable slots and do the same thing.
 
Level 5
Joined
Apr 12, 2007
Messages
158
I do not even know what you're doing with that trigger. It works fine for me, even on your map when I configure the event to a playable slot.
 
Status
Not open for further replies.
Top