| 09-25-2003, 01:17 AM | #1 |
ok i need some help i want a trigger to repeat its self unit till the players food reaches 100, this is how it looks now and it dosent repeat. event- unit enters (region) condition- unit is not equal to a structure action- create 1 unit type of triggering unit at (region) so how do i get this trigger to loop? |
| 09-25-2003, 01:31 AM | #2 |
Well what I would usually do is this: Event: Unit Enters Region. Condition: Unit is a structure equal to [false] Action: Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds Create one type of triggering unit at [region] wait 0.01 seconds And do that again and again and again and again. Im sure theres another way, but since im the first replier in this thread, you might wanna make things quicker and do this!:hammer: |
| 09-25-2003, 01:40 AM | #3 |
wow thats like a lotta actions and that wouldnt actually work cause i want it to stop at 100 food then restart after it gose down so u have 100 u lose 3 food (1 unit) u get that 3 food (1 unit back) if i did it ur way i think i would get an extra not wanted 99 food |
| 09-25-2003, 01:44 AM | #4 |
Oh ok <(>_<)> that's 100% confusing. You might wanna ask someone else about that..:knife: |
| 09-25-2003, 01:45 AM | #5 |
lol i kno i've been working on that trigger for a couple months now i think its impossible wit WE's setup : ( |
| 09-25-2003, 01:48 AM | #6 |
I think this works, if not, tell me; it is off the top of my head var type variables Unit enterUnit Unit-Type unitType unitGenerationEnter Event-Unit enters a region Condition-Entering unit is a structure equal to false player(owner of entering unit) food less than or equal to 99 Actions-set enterUnit = (entering unit) set unitType = unit type of unit (enterUnit) Trigger turnOn(unitGeneration) Trigger turnOn(unitGenerationExit) unitGeneration Event-every <however fast it generates units> Condition Actions- if(food used by player greater than or equal to (100)) { Trigger turnOff(this trigger) Trigger turnOff(unitGenerationExit) } Unit create (<unitType>) for (owner of(enerUnit)) at (<wherever>) unitGenerationExit Event-Unit leaves a region Condition-Leaving unit equal to (enterUnit) Actions-Trigger turnOff(unitGeneration) set enterUnit = (noUnit) set unitType = (noUnit) |
| 09-25-2003, 01:52 AM | #7 |
umm k i will try it in motning to tirrd and cant think straight i dont eveen get half u wht u type but i thinks its just cause im tired i dunno im cinfused ths fpr hlo |
| 09-25-2003, 02:02 AM | #8 | |
Quote:
Umm sweet5? What language do you speak? cuz I certainly cant understand you at ALL.... |
| 09-25-2003, 02:16 AM | #9 |
I think he said "um, k, I will try it in the morning, I am too tired and can't think straight. I don't even get half of what you typed, but I think it is just because I am tired; I dunno, I'm confused, <I can't make out what it says here>" (no offense meant to anyone here) |
| 09-25-2003, 08:15 PM | #10 |
lol hi guys im back and im awake! sorry i typed all messed up it was night time and yea thx mr.ethusain |
| 09-25-2003, 08:32 PM | #11 |
oh ok.... what was that last word again?:knife: |
