HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help with a waygate system

06-23-2003, 07:35 PM#1
Stormwraith
i want to create a waygate system for the rpg im making that will do something like this.
-units walks on waygate(region)
-display dialog box and ask "where do you want to go"(or something like that. dialog box has like 8-9 choices
-player clicks a button,
-move unit to location corseponding to button clicked.

i've read the dialog box tut, and im still kinda in the blue about how to work dialog boxes. if someone can explain to me how to do this that'd be great. it'd be even better if someone could make it for me, but i dont see that happening:bgrun:
thanks for any help/advice!
06-23-2003, 08:06 PM#2
chemo
okay for each dialog box u need a variable.

Variables:
travel (DIALOG)
travel_btn (DIALOG BUTTON ARRAY)


Dialog show:

E: Unit - Unit enter region xxx
C:
A: Dialog -change tittle of "travel" to xxxxx

Initialization:

E: Map Initialization
C:
A: Dialog - create a dialog button for "travel" labelled Lorderon
set travel_btn[0]=(last created dialog button)
Dialog - create a dialog button for "travel" labelled Azeroth
set travel_btn[1]=(last created dialog button)
Dialog - create a dialog button for "travel" labelled Kalimdor
set travel_btn[2]=(last created dialog button)

Dialog click:

E: Dialog - a dialog button is clicked for travel
C:
A: If ((clicked dialog button) Equal to travel_btn[0] then do (Unit move unit Instanly to regionx)) else do nothing

If ((clicked dialog button) Equal to travel_btn[1] then do (Unit move unit Instanly to regionxx)) else do nothing

If ((clicked dialog button) Equal to travel_btn[2] then do (Unit move unit Instanly to regionxxx)) else do nothing



hope that helped else PM me =)
06-23-2003, 08:25 PM#3
Dead-Inside
You can´t create it on map initial, use elapsed time is 0.1 or something
06-23-2003, 08:28 PM#4
chemo
lol Dead-Inside....

it do work i used this way to make my map !
and if u look at the dialog tutorial it say that to...

sorry but ur wrong....

they are created at map ini... they dont show up...