| 11-17-2004, 03:13 PM | #1 |
how can this be done.. kind of like wait until condition. |
| 11-17-2004, 03:21 PM | #2 |
have a triggerA with no event. have another triggerB (at map init perhaps?) run this triggerA. In triggerA have this: loop exitwhen (your unit condition here) == whatever value wait (1.00) // or less depending on how often you need it checked endloop all your event actions here endfunction thats 1 possable way, although this will only fire once then you would have to run the trigger a 2nd time for it to be able to fire again |
| 11-17-2004, 03:35 PM | #3 |
Event: Periodic event(every x seconds) Condition: Your conditions Action: Your actions As x use a low value, but 0.01 will cause lag, it will depend on how accurate it has to be. |
| 11-17-2004, 03:56 PM | #4 |
I'm trying do something.. like.. Event - UNit channels an ability. condition - ability = x actions - create units order units to cast spell at location(non stop repeatedly) loop exitwhen casting unit stops channel or casting unit finishes channeling endloop kill created units. i know i could do this with globals, but i want to do it purely locally. |
| 11-17-2004, 05:05 PM | #5 |
ehh? do you know that there is a "Wait for Condition" action? :D edit: this is my hundred post =) |
| 11-17-2004, 08:48 PM | #6 |
wait for condition does exactly what my post says :) |
| 11-17-2004, 09:12 PM | #7 | |
Quote:
yea.. i know there is a waitfor a conidition.. but there is no "unit has stopped channelling" or "unit has finished channelling" or is there? |
| 11-17-2004, 09:18 PM | #8 |
Ohh sorry I didn't know you are looking for an action. Is there a condition for stops casting or only an event? If there is a condition: Are you doing this in GUI? If so, I would just convert the trigger to JASS and insert what DaKaN wrote: loop exitwhen (your unit condition here) == whatever value wait (1.00) // or less depending on how often you need it checked endloop If there is no condition I have no idea sorry |
| 11-17-2004, 11:47 PM | #9 |
you can create your own then, when a unit attempt to channel, you can pick that up, then when the unit is issued an orer to move, attack, patrol, hold postion, stop, you know he isnt channeling anymore, (excpet items) |
| 11-18-2004, 12:02 AM | #10 | |
Quote:
No, Im not using GUI. You guys don't seem to understand the question. When I mean condition. I mean the condition to be EVENT, not a regular condition. Like A UNIT ENTERS A REGION, or A SPECIFIC UNIT STOPS CHANNELING. |
| 11-18-2004, 12:36 AM | #11 |
i understood it, which is why i posted my first comment, that will work as an event in the same respect |
| 11-18-2004, 02:36 AM | #12 |
Guest | Ok, this is simple. Event - A uint enters region. Conditions - Triggering uint is a hero equal to true. (or whatever you want) Actions - Move instantly to center of (Region) Just a modle of a conditional trigger, hope this helps. |
| 11-18-2004, 02:41 AM | #13 |
Cyax, he wasnt talking about how do you do a unit enters a region with a condition. He was stating that as an event example. He wanted to know how can he possable create the same effect as creating a new event SUCH AS unit enters a region or .. so on |
