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

dialogue help

Status
Not open for further replies.
Level 3
Joined
Oct 28, 2004
Messages
48
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...
 
Level 9
Joined
Sep 8, 2004
Messages
633
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.
 
Level 9
Joined
Nov 27, 2004
Messages
465
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
 
Status
Not open for further replies.
Top