Warcraft III resources & community, 2003–2006 · archived

dialogue help

5 posts
#1

dialogue help

i have two variables: hero[1] and hero[2]

event: dialogue button pressed
if dialogue = hero[1]
then do xxxx
else do yyyy



problem is that when hero[1] is pressed, else gets used
if hero[2] is pressed, else still gets used. so my trigger only half doesnt work...
#2
Make two 'if/then/else' strings.

1-
Conditions:
If pressed dialog button is equal to 'xxxx'
Then:
Set (hero thing number one.)

2-
Conditions:
If pressed dialog button is equal to 'yyyy'
Then:
Set (hero thing number two.)


So you use two different if/then/else's withing the same trigger. That works.
#3
so is there an else?
#4
if you have only 1 dialog and several buttons for al players you may make any type of actions with "triggering player"

example
button of dialog "I" clicked
condition
none
Action
IF
BUTTON CLICKED = 1
then
IF
TRIGGERING PLAYER = red
THEN
.....
ELSE
IF
TRIGGERING PLAYER = blue
THEN
.....
and etc...
good but long script
#5
k thanks
i should have thought of that.