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

Show Dialog for what Unit?

Status
Not open for further replies.
Level 4
Joined
May 8, 2007
Messages
70
Sers

I have one more Question

I want something do like this:

There is a Dialog name: What you want.
Than there are to buttons name
1: Do Water
2: Do Foot

So when a player type something like: -open Menu
than the dialog "What you want" open.

So look this trigger:

E: A Unit type: -open Menu
A: Chance name of Dialog: Menu to What you want
Create Button: Foot
Show Dialog for ...... Unit

So my Question what Unit must i take?
I try it with TARGET Unit or TRIGGERIN Unit, but this dont work :cry:

I hope you understand what i meen and try to help me .... and sry for my nooby english =X
 
Level 4
Joined
May 8, 2007
Messages
70
Ahh ok thx i try it =)

I have one more question:

So in my map there are a mage, a warrior and so on

I want something do like that:

ONLY THE MAGE can type: -open Menu

Than the Dialog open and there are know 2 Buttons

One: Create foot
Two: Create Portal to town X

So create foot i can handle it alone but what is with port.

Trigger like this:

E: A Player Type: open menu
C: Player own Hero: Mage
A: wait 10 sec
Port Hero and Units in radius 600 to town X

But what is the right trigger? =X
 
  • Event: Player[x] writes -open menue
  • Condition: Number of Units of type MAGE owned by Triggering player bigger or equal to 1
  • Action: General - Wait 10.00 seconds
  • Set Tmp_Unit = Random units from all units owned by Triggering player of type MAGE
  • Set Tmp_Loc = Position of Tmp_Unit
  • Unit - Create 1 Portal for Triggering Player at Tmp_Loc
  • Custom Script: call RemoveLocation(udg_Tmp_Loc)
  • Custom SCritp: set Tmp_Unit = null
Thats what you want to have I thiNK! :grin:
 
Level 4
Joined
May 8, 2007
Messages
70
Set Tmp_Unit = Random units from all units owned by Triggering player of type MAGE

Hmm but whehn.

Player Red = Mage
Player Blue: Warrior
Player Teal: Shamane

So and they must be ported to BUT only when they are in the near of the mage

So whats that? ^^ :grin:
 
Add this!
  • Action: For Loop Index A from 1 to *PlayerMaxCount*
  • If then Else ( Do multiple actions )
  • If Player[IntegerA] Slot Status equal to is playing
  • Player[IntegerA] is an ally with Triggering Player
  • Set Tmp_Unit2 = Random Unit from Player[IntegerA] matching (Matching unit is a hero equal to true)
  • Set Tmp_Loc2 = Position of Tmp_Unit
  • Unit - Move Tmp_Unit2 instantly into Tmp_Loc2
  • Custom Script: call RemoveLocation(udg_Tmp_Loc2)
Hope you understood what I meant! =)
 
Level 4
Joined
May 8, 2007
Messages
70
Ok its difficult.... iam not the best in mapping and i try something like that...

But i try it next day i must sleep know. When its works i write it here when not... jeah that i write it here too^^
BB

SO EDIT:

I have try it a lot of time but i dont get it... i dont know what i do wrong sry!
 
Last edited:
Status
Not open for further replies.
Top