(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-02-2008, 08:01 PM   #1 (permalink)
 
Darkhunty's Avatar

Low Map Maker
 
Join Date: Mar 2008
Posts: 89

Darkhunty has little to show at this moment (3)


Peon Power! How can I cut dialog button when clicked

I have at start dialog button, People from it choosing race and I need when somebody chosen Night elf to button night elf dissapear, can somebody help me ? :(
Darkhunty is offline   Reply With Quote
Old 11-02-2008, 08:20 PM   #2 (permalink)

www.ClanMapz.co.nr
 
Join Date: Jun 2008
Posts: 125

TriggerHappy187 has little to show at this moment (4)


Not if you don't post your code.
__________________
www.ClanMapz.co.nr - Map Making Clan
www.FFORPG.co.nr - Final Fantasy Open RPG
TriggerHappy187 is offline   Reply With Quote
Old 11-02-2008, 08:25 PM   #3 (permalink)
 
Squiggy's Avatar

Returned to mapping
 
Join Date: Mar 2008
Posts: 1,657

Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)

PayPal Donor: This user has donated to The Hive. 

Make a boolean with an index for every race (I call it boolean_race[]).
Now, for the dialog, set the buttons like that
Actions
If boolean_race[0] = false then do: Dialog - Create a dialog button for *your dialog* titled *Race*
If boolean_race[1] = false then do: Dialog - Create a dialog button for *your dialog* titled *Race*
If boolean_race[2] = false then do: Dialog - Create a dialog button for *your dialog* titled *Race*
If boolean_race[3] = false then do: Dialog - Create a dialog button for *your dialog* titled *Race*
Now for the buttons, after peforming the actions after a button is clicked set the respective boolean to true
Like:
clicked dialog button == Button 1 -> set race_boolean[0] = true

Now if the boolean is set to true, the engine won't set up the dialogbutton ;)
__________________
MapsWarCraftMaul NextGen 2.4 / Twisty TD 1.0 (takes more time)In remembrance of frostwhisper Oct. 10th 2008
ArtEcchi Gallery (Closed)
SpellsMai sp3lz D:
Help please: Gui spells -> JASS spells
Squiggy is offline   Reply With Quote
Old 11-02-2008, 08:37 PM   #4 (permalink)
 
Darkhunty's Avatar

Low Map Maker
 
Join Date: Mar 2008
Posts: 89

Darkhunty has little to show at this moment (3)


squiggy I think I am idiot or I don´t know .. that doesn´t work :((
can u write me whole the script ? :(

Last edited by Darkhunty; 11-02-2008 at 09:14 PM..
Darkhunty is offline   Reply With Quote
Old 11-02-2008, 09:23 PM   #5 (permalink)
 
graystuff111's Avatar

Happy Peon
 
Join Date: Dec 2007
Posts: 498

graystuff111 has little to show at this moment (52)


Post your script and then we might help you.
__________________
graystuff111 is offline   Reply With Quote
Old 11-02-2008, 09:43 PM   #6 (permalink)
 
Darkhunty's Avatar

Low Map Maker
 
Join Date: Mar 2008
Posts: 89

Darkhunty has little to show at this moment (3)


The Code:

Events
Time - Elapsed game time is 5.00 seconds
Actions
Dialog - Clear DuchyCHoosedialog
Dialog - Change the title of DuchyCHoosedialog to Choose Duchy:
Dialog - Create a dialog button for DuchyCHoosedialog labelled England
Set DialogButton[1] = (Last created dialog Button)
Dialog - Create a dialog button for DuchyCHoosedialog labelled Normandy
Set DialogButton[2] = (Last created dialog Button)
Player Group - Pick every player in (All players) and do (Dialog - Show DuchyCHoosedialog for (Picked player))
variables = duchchoosedialog - dialog
dialigbutton - dialog button
now the trigger with england
Events
Dialog - A dialog button is clicked for DuchyCHoosedialog
Conditions
(Clicked dialog button) equal to DialogButton[1]
Actions
Game - Display to (All players) the text: England was picked
Unit - Create 1 Footman for (Triggering player) at (Center of zone 000 <gen>) facing Standart orientation of building degrees
Darkhunty is offline   Reply With Quote
Old 11-03-2008, 11:10 PM   #7 (permalink)
 
DarkAngelAzazel's Avatar

Envoy of the Apocalypse
 
Join Date: Sep 2008
Posts: 412

DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)


[quote=Darkhunty;899068]
Events
Time - Elapsed game time is 5.00 seconds
Actions
Dialog - Clear DuchyCHoosedialog
Dialog - Change the title of DuchyCHoosedialog to Choose Duchy:
If - EnglandPicked = False
Dialog - Create a dialog button for DuchyCHoosedialog labelled England
Set DialogButton[1] = (Last created dialog Button)
If - NormandyPicked = False
Dialog - Create a dialog button for DuchyCHoosedialog labelled Normandy
Set DialogButton[2] = (Last created dialog Button)
Player Group - Pick every player in (All players) and do (Dialog - Show DuchyCHoosedialog for (Picked player))

I just edited your trigger... you know where to find if...(EnglandPicked and NormandyPicked are booleans)

Then you need another trigger:

Events
Dialog - A dialog button is clicked for DuchyCHoosedialog
Conditions
(Clicked dialog button) equal to DialogButton[1]
Actions
Game - Display to (All players) the text: England was picked
Set - EnglandPicked = True
Run trigger (the upper one, where the buttons are created)
Unit - Create 1 Footman for (Triggering player) at (Center of zone 000 <gen>) facing Standart orientation of building degrees

I think that should work...
Do the last trigger for every race
__________________
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"

Quote from Albert Einstein
DarkAngelAzazel is offline   Reply With Quote
Old 11-04-2008, 12:22 PM   #8 (permalink)

I'm right, you're wrong.
 
Join Date: Aug 2005
Posts: 2,538

Eleandor is just really nice (333)Eleandor is just really nice (333)Eleandor is just really nice (333)


It's possible that you need to add "show" and "hide" dialog actions to the bottom of the first trigger.
__________________
Eleandor is offline   Reply With Quote
Old 11-04-2008, 03:36 PM   #9 (permalink)
 
Darkhunty's Avatar

Low Map Maker
 
Join Date: Mar 2008
Posts: 89

Darkhunty has little to show at this moment (3)


hey ur idea sux, when play two players don´t sux when play one player I gave as attachment my map.. please rewrite buggs
Attached Files
File Type: w3x mapa1.w3x (287.0 KB, 0 views)
Darkhunty is offline   Reply With Quote
Old 11-04-2008, 08:08 PM   #10 (permalink)
 
M0RT's Avatar

User
 
Join Date: Apr 2008
Posts: 190

M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)


DarkAngelsAzalels idea was right, it just need a single fix:
Create initialization trigger, which creates a unit group.
Init Game
Events
Map Init
Actions
Set PlayerGroup = (All Players)
Then just remove players which choose race from the group
Button clicked
Events
Dialog Button Clicked
Actions
as above......
Player Group - Remove (Triggering player) from PlayerGroup
Trigger - run Init Dialog Trigger
And display the newly created dialog only to players that hasn't picked race already.
Init dialog
as above...
Player Group - Pick every player in PlayerGroup and do (Dialog - Show DuchyCHoosedialog for (Picked player))
__________________
Check out my maps if I helped you!
All my resources
My main project:
RuneForce
M0RT is offline   Reply With Quote
Old 11-04-2008, 11:07 PM   #11 (permalink)
 
Darkhunty's Avatar

Low Map Maker
 
Join Date: Mar 2008
Posts: 89

Darkhunty has little to show at this moment (3)


it now does who clicked first make him dialog again but if click on buttons no untis created..it is bug but it not sux... when player 1 picks holy roman empire it will dissapear huge moravia empire ...but not holy ro man empire .. I am attaching map..check it if I wrote it right please

EDIT:
hm can you help me ?
Attached Files
File Type: w3x mapa1(2).w3x (307.5 KB, 2 views)

Last edited by Rui; 11-05-2008 at 04:08 PM.. Reason: Do NOT double-post.
Darkhunty is offline   Reply With Quote
Old 11-06-2008, 06:56 PM   #12 (permalink)
 
M0RT's Avatar

User
 
Join Date: Apr 2008
Posts: 190

M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)


I fixed that, though i can't test it with more players.
Nice terrain btw. :-)

Next time you should make your maps in english, you can't expect someone to help you if your entire map is in czech, and you propably won't be so lucky to run on someone who speaks czech again :-)
Attached Files
File Type: w3x mapa1.w3x (307.0 KB, 0 views)
__________________
Check out my maps if I helped you!
All my resources
My main project:
RuneForce
M0RT is offline   Reply With Quote
Old 11-06-2008, 07:48 PM   #13 (permalink)
 
DarkAngelAzazel's Avatar

Envoy of the Apocalypse
 
Join Date: Sep 2008
Posts: 412

DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)DarkAngelAzazel has little to show at this moment (36)


That was my problem... I also had a look at the map but I didn't understand a word....
__________________
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe"

Quote from Albert Einstein
DarkAngelAzazel is offline   Reply With Quote
Old 11-06-2008, 10:16 PM   #14 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


nope its not possible with dialogues
make it like hero tavern
Need_O2 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Unsolved] Dialog Button Hotkey SILLYbear World Editor Help Zone 1 11-02-2008 10:06 PM
Dialog Button Problem DarkDenizen World Editor Help Zone 5 06-11-2007 12:42 AM
[Trigger] Dialog button choices Merreton Triggers & Scripts 1 05-26-2007 03:33 PM
Dialog Button CrazyBloodyVamp World Editor Help Zone 5 05-09-2007 07:54 AM
Question about the event: Hero Ability Button Clicked Shisho2k Triggers & Scripts 0 01-03-2006 06:37 AM

All times are GMT. The time now is 05:38 AM.






Your link here 
Bankruptcy | Rolex | Loans | Debt Consolidation | Mortgages
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle