HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Varible and Cash triggers HELP!

09-13-2004, 09:20 PM#1
skado
1) not too clear on varibles... i tried to make a cash trigger using it but that just failed horribly... any insight on varibles would be greatly appreciated!

2) how do i make it so for each (lets say a peasant) you get 5 gold per 30 seconds?

3) also can somone help me with a dialogue box? i wanted it like this

Unit Selection

Warrior
Wizard
Ranger
Lord

And when u picked one a unit would appear of that type. Any help would be very needed!
09-13-2004, 10:01 PM#2
duckduck
ok. you need an interger comparison. click the orange x, then the green x, then name it, then click the scroll bar and go to integer, then click ok, then click ok.
thats how u make an integer variable.

These are the triggers

Trigger 1 (you can just add an action to another 1 time trigger)
Code:
 Events:
  Map Initialization

 Actions:
  Set (variable named above) to 0

Trigger 2
Code:
 Events:
  Unit finishes training a unit

 Conditions:
  Trained unit = peasent

 Actions:
  Set (variable named above) to ((variable named above) + (1))

Trigger 3
Code:
 Events:
  Every 30 seconds

 Actions:
  Add ((variable named above) x (30)) gold to player 1

i dont know how to make dialog boxes so im going to find out now
09-13-2004, 10:21 PM#3
duckduck
Just dl the attachment. It is how to create a dialog. Make sure to copy the variables first!! This way you wont have to assign the triggers variables.
Read the trigger comments!!