• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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