HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

trigger help

09-26-2002, 12:12 PM#1
311
hey every1 my 1st post :) need some help here im kinda new to the editor but so far ive figured my way around it pretty good, its harder then the starcraft one, I made alot 4 that. Anyway on to my problem this is my 2nd map btw. K im trying to make a game where computer allied units spawn near me every so and so secends, then have those units stop producing then make some other random units apear and spawn every so and so seconds. but i cant get it wo work there all spawning at the same time and I dont get it I have elaslped time this is what i have k

event- elaspd time is 10game seconds
event- every 10seconds

action - create 10 ORC UNITS for palyer 10
action - highlight all and attack to player 2

now my next trigger

event - elasped time is 30game seconds
event- every 10seconds

action - create 10 NE UNITS for player 10
action - highlight all attack player 2
action- disable orc trigger (ths 1 i mentiond above)

Anyone tell my why it wont work? Whn i start the game all the units will be spawnd right away, I dnt get it they wont wait the 30secnds or whatever I put, there just all there right away ( and theres many many many) this map took me awile to make and I think so far this is the only trigger that dont work so I really wanna finish it.
Also 1 last question the last map I made was an rpg and I wantd it so when you turn lvl10 you mophd into a new hero a lvl 1 of the same this as u where whn u where lvl 10 ( so basicly your getting to go to lvl 20) but I have no idea how as i cant find any hero basd trigers but a few and nothing to do with lvling. But that maps done and i took it out :( since i couldnt figure it out but be glad if you could help as I may make another cause I did enjoy it :) . I would post it on battle net, but people cant join my games, dunno why heard its my quest dsl :( , so you guys will never see my maps :(, most are 2player anyway 4 me and my brother since hes the only 1 that can join my games
09-26-2002, 02:48 PM#2
Mr.Safety
Ok, only one event needs to be true to activate a trigger. You could have 10 Events but as soon as one of them happens the Trigger will activate. What happens next is it checks the Conditions. ALL conditions must be true for the trigger to happen. So since all of your triggers have the "every 10 seconds" event, they all initialize after 10 seconds, check your conditions (which are nothing) and so run the actions.

Unfortunately there is no condition of "elapsed game time". So try this. Make an integer variable and use it like a counter. Set the value of the integer to 0 when you make it.

Event - Every 10 seconds

Action - Create 10 Orc Units for player 10
Action - Highlight all and attack to player 2
Action - <Integer Name> = <Integer Name> + 1

Now your next trigger can look like this.


Event - Every 10 seconds

Condition - <Integer Name> Greater than or Equal to 3

Action - Creat 10 Ne Units for player 10
Action - Highlight all and attack to player 2
Action - <Integer Name> = <Integer Name> + 1
Action - Diable Orc Trigger

Now, you can add further triggers and it should all work.

Event - Every 10 seconds

Condition - <Integer Name> Greater than or Equal to 6

Action - Creat 10 Uber Units for player 10
Action - Highlight all and attack to player 2
Action - <Integer Name> = <Integer Name> + 1
Action - Disable Ne Trigger


I hope this helps.
09-26-2002, 08:56 PM#3
311
well thanks so so so much for trying to help me. I have no idea how this integer thing works tho :( I cant even find interger triggers under actions, except 2 and there not (integer= integer +1) I think i have a new way of doing it tho kinda have to change the idea of my map s tiny bit but i guess ts the only way, unless you wanna try to help me again :) also its not really 10secs I just usd that as an example, but I dnt think that will change anything. heres how it is (my broken trigger

event- every 9 secs
action - create footman for player 3 (my allied computer)
action - highlight all units in region send to player 2 (my enemy)


now my newt trigger

event- elasd game time is 20secs
event- every 12seconds
action- create rifleman for player 3
action - highlight all send to player 2

though now that you told me once 1 event has been done the triiger will start no matter how many events you have, it should help me. Though i think im going to scrap this idea and make it a bit more like golems (starcraft ums) sure all you have playd that. Though nothing beats MARINE SPECIAL FORCES!!! Some1 make 1 like that on wc please!!!
09-26-2002, 09:13 PM#4
Guest
Quote:
I have no idea how this integer thing works tho I cant even find interger triggers under actions

It's not an integer action, it's just using Set Variable (you have to create a variable of type integer and then just set it up 1 every time the trigger runs).

Quote:
though now that you told me once 1 event has been done the triiger will start no matter how many events you have

I think you're still confused. A trigger will run every time any of the events happen. So in your current example it will create the riflemen at 12 seconds, 20 seconds, 24 seconds, 36 seconds etc.

If you just want to have a delay before the trigger starts, turn the trigger off initially.

Then create another trigger to turn it on

Event: Game elapsed time is 20Secs
Actions: Turn on [creation trigger]

Then use your other trigger with JUST the every 12 seconds event.
09-27-2002, 01:27 AM#5
311
k well I changd the whole map around Im kinda glad though its comming along great, however i ran into a problem again. I seem to always run into a problem right at the end :( . K im trying to make it so it takes gold away as i get new units spawnd however if im at 0 gold I will still get these units but at no cost. I lookd through the in/then/false under the actions tab but they have nothing about gold. heres how i have it set

event -unit enters region

action- create 10people
action - -10gold from player


The problem is that it takes my gold away as it should but even if im at 0gold I will get the units but not pay 10gold since I have none Please help so close to finishing it and i love it already I cant quit it now (i already have cahngd the idea like 3times cuz of trigger probs and I wanna keep it as it is now thanks in advance
09-27-2002, 03:35 AM#6
Guest
Gold is an integer comparison under player property.
09-27-2002, 03:56 AM#7
Wakeman
Quote:
Originally posted by 311
k well I changd the whole map around Im kinda glad though its comming along great, however i ran into a problem again. I seem to always run into a problem right at the end :( . K im trying to make it so it takes gold away as i get new units spawnd however if im at 0 gold I will still get these units but at no cost. I lookd through the in/then/false under the actions tab but they have nothing about gold. heres how i have it set

event -unit enters region

action- create 10people
action - -10gold from player


The problem is that it takes my gold away as it should but even if im at 0gold I will get the units but not pay 10gold since I have none Please help so close to finishing it and i love it already I cant quit it now (i already have cahngd the idea like 3times cuz of trigger probs and I wanna keep it as it is now thanks in advance


Add this line to the condition:

C: Player's gold >= 10