HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger/ Integer help

01-14-2003, 01:29 AM#1
EarlNock
Aight, i want it to create a unit for each integer, like say if the integer varialbe name "frost" is at ten, i want it to create 10 frost whyms, or say if frost =x, create x frost whyms.

What actions and events n conditions should i use?
01-14-2003, 01:35 AM#2
mikedogdude
Just do: create X number of (unit type) If it wants a real number then put create (convert integer to real[X])
01-14-2003, 04:11 PM#3
EarlNock
But how do i go about that because i never done that before, i've done many other things in the editor, ju st not this, so if you can i need a little bit more detail/ what exactly to do.
01-14-2003, 04:24 PM#4
mikititan
quick step-by-step!

1. Create an integer variable (xx).
2. Create a trigger -> Set xx = 10 (in example).
3. Create a trigger -> For Each (Integer A) from 1 to xx Do ----(trigg actions: unit-create 1 wyvern at location)----
01-14-2003, 04:53 PM#5
Krakou
You don't need the for each integer, do what mikedogdude said : unit create xx unit at location.
01-14-2003, 05:35 PM#6
EarlNock
But the way he said it sounded confusing and i didnt quite know where to go and what to click, but the other guy said to do for each integer A, which sounds good, for now
01-14-2003, 05:56 PM#7
EarlNock
i just tried the for each integer A, but the trigger didnt work,
so if some one could kind of give me a mimi walk through that would help, like
create new actions, select creae unit and from there is where i need help.
01-14-2003, 06:42 PM#8
DKSlayer
You say it didn't work, did you specify a location to pu the units? I mean have you looked over the map to make sure they were not placed somewhere else. I have had this happen to me sometimes.
DKSlayer
01-15-2003, 03:35 PM#9
EarlNock
i got it to work, but i had to tink a around with it because when i had it in a lone trigger it didnt work, so i put it with my other triggers and it worked.