• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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