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

Name Specific Triggers

Status
Not open for further replies.
Level 5
Joined
Aug 2, 2004
Messages
65
I wonder if anyone could help me,im in the process of making a rpg based on the diablo world and i would lkie to know how to make it so that if a player's name is something, an event happens. Sort of like this...

Tester
Events
Unit - A unit enters Region 007 <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Name of (Triggering player)) Equal to Chao-K.O-
(Unit-type of (Triggering unit)) Equal to Hero Chooser
Then - Actions
Unit - Remove (Triggering unit) from the game
Unit - Create 1 Gryphon Rider for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
Else - Actions
Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the text: |c00C5C3C6Im sorry ...

Thats the triggering that i used but it doesnt work but i dont see why. Can someone clear this up for me.
 
Level 13
Joined
May 5, 2004
Messages
1,330
Chaoticalism said:
I wonder if anyone could help me,im in the process of making a rpg based on the diablo world and i would lkie to know how to make it so that if a player's name is something, an event happens. Sort of like this...

Tester
Events
Unit - A unit enters Region 007 <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Name of (Triggering player)) Equal to Chao-K.O-
(Unit-type of (Triggering unit)) Equal to Hero Chooser
Then - Actions
Unit - Remove (Triggering unit) from the game
Unit - Create 1 Gryphon Rider for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
Else - Actions
Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the text: |c00C5C3C6Im sorry ...

There's no triggering player, so use (owner of (entering unit)). And yeah, you should replace all (triggering unit) with (entering unit), it's more specific.
 
Status
Not open for further replies.
Top