Warcraft III resources & community, 2003–2006 · archived

Trigger Helper

5 posts
#1

Trigger Helper

If you need help with triggers just port here and I will probably help u or my friend Zach3D.
------------------------------------------------------
*RULEZ*

You must be very specific and not like
*EX* "I need help with cinematics"
I need to know which part of cinematics u need to know otherwise I will be able to help u to my fullest extent.

------------------------------------------------------

Thank You,
lorothrigs
#2
i could use some trigger help with WEU... or with some kind of trigger that can help me randomize things (eg. when a unit dies it creates 1 of 3 random units) but i dont know exactly what triggers to use for that,

for the WEU one if u use it, i need help with the saving and restoring triggers. i got it so when u say -save it gives u the code and all but when u say -load ####-#####-### it ALWAYS says something like wrong player profile, (using player types (entered chat string, 6, length of entered chat string)) as what it uses as the load code...

also i need help creating dialog buttons, ive been helped but it wasnt clear enough... in my case the guards say 'u must pay 10 gold to pass this gate' then 2 buttons pop up saying 'pay 10 gold' and 'keep your gold' and then it does actionswhen u click them... i know how to do the rest just i cant get the buttons to work
#3
Radi could use some trigger help with WEU... or with some kind of trigger that can help me randomize things (eg. when a unit dies it creates 1 of 3 random units) but i dont know exactly what triggers to use for that,

also i need help creating dialog buttons, ive been helped but it wasnt clear enough... in my case the guards say 'u must pay 10 gold to pass this gate' then 2 buttons pop up saying 'pay 10 gold' and 'keep your gold' and then it does actionswhen u click them... i know how to do the rest just i cant get the buttons to work


didn't i already explain these 2 things? u don't need WEU either

event - a unit dies
conditions - whatever u want (unit conditions, bool conditions, whatever)
actions - set nRandomNumber = random integer between 1 and 3
if nRandomNumber == 1 then create item1 at position of dying unit
if nRandomNumber == 2 then create item2 at position of dying unit
if nRandomNumber == 3 then create item3 at position of dying unit

//

event - map init
actions - create dialog dialogMenu
create a dialog button for dialogMenu
set dbButton1 = last created button
create a dialog button for dialogMenu
set dbButton2 = last created button

event - a dialog button is pressed
actions - if (pressed dialog button) == dbButton1 then do stuff A
if (pressed dialog button) == dbButton2 then do stuff B
#4
uhh the variable thing wont come to me for a few weeks but ill try the other :lol:
#5
If anyone has a question about anything, post it in a clear and well-labelled individual thread. Lumping up everything in an abstract thread is not a good way to keep the forum organized and accessible.