• 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 can i ,,,

Status
Not open for further replies.

Lord_Duke

L

Lord_Duke

now do you want to model it on? so its ther for ever? because u canm do it using triggers....
 
Level 13
Joined
May 5, 2004
Messages
1,330
There's the event "Player - Chat Message" in the event-list. Then, as action, SetVariable and an If/Then/Else-Function (if: string comparison)

Example:
(we think player 1 types "-duel arena1)

Event: Player 1 (red) types a chat message containing -duel as A Substring

Action: Set Region1 = (Substring((Entered chat string),7,12))

<here the trigger refers to the word "arena1", region1 is a simple string variable>

2. Action: If (region1 Equal To arena1) Then (Move Unit To Region) Else (Do Nothing)

Hope you understand that, else I'll type it more detailed.
 
Status
Not open for further replies.
Top