| 10-13-2004, 05:50 AM | #1 |
Greetings. Does anyone have any proven way to get a unit via an action that's just been transformed by Chaos? It doesn't seem to qualify as (Last Created Unit), and neither does it count as the same Unit as it was before being Chaos'd. Also, it doesn't cause any Entering Region events to fire, and it doesn't fit (Summoned Unit). |
| 10-13-2004, 02:33 PM | #2 |
Hmm....im not sure but I think its damage soruce or casting unit?? |
| 10-13-2004, 03:12 PM | #3 | |
Quote:
|
| 10-13-2004, 09:05 PM | #4 |
Mmm. I'll try constructing it with the unit set to a local unit variable. |
| 10-13-2004, 09:09 PM | #5 |
Chaos is an ability. The ability actually changes the unit. So therefore it isn't the same unit. ![]() EDIT: Just looked in World Editor and the units can be found under orc->campaign->special |
| 10-13-2004, 09:27 PM | #6 |
The magic behind Chaos is that, for all intents and purposes, the unit is the same. It keeps the same unit group assignments, health and mana, and even buffs from the unit it was before. The trick here is to figure out how to catch that unit in a trigger. None of the methods I listed above seem to work. |
| 10-13-2004, 09:34 PM | #7 |
where is this abilitiy chaos? i know theres the chaos orc units, but i just assumed they were different skins, not ability-result units? |
| 10-13-2004, 09:38 PM | #8 |
It is under Orc->Units in the abilities tab. There is an ability for each of the chaos units. |
| 10-13-2004, 09:42 PM | #9 |
oh ic. hmmm ill look into that for you panto (dont expect much from me >.<) |
| 10-13-2004, 09:55 PM | #10 |
You can probably have an event that says a unit gains an ability. It might work, but I'm not too sure. I'll check in world editor. |
| 10-13-2004, 10:26 PM | #11 | |
Quote:
I get the impression I'm missing something obvious, but this seems to detect it fine: Code:
Chaos Order
Events
Unit - A unit Is issued an order targeting a point
Conditions
Actions
Custom script: if (GetIssuedOrderId() == 851973) then
Custom script: call BJDebugMsg("Chaos: " + GetUnitName(GetOrderedUnit()))
Custom script: endif |
| 10-14-2004, 01:04 AM | #12 |
Interesting that your trigger works, because Chaos doesn't target a point. However, even though that trigger may run, it does not give a way to get the unit after the chaos ability has happened. |
| 10-14-2004, 01:51 AM | #13 |
Just set a golbal unit variable to the unit that the order was given to (it's an event response) before endif. |
| 10-14-2004, 03:12 AM | #14 |
Guest | GetTriggerUnit() does work. Just use that. Maybe the "targets a point" event means it is really a "continue this order" command?... If the unit currently has an order targetting a point, the target of this 891573 order id is that point. If the unit is just standing around, the target is the center of the map... I don't think you can get orderId raw values in the GUI, just the converted string values. And this order doesn't have any string conversion >.> |
| 10-15-2004, 07:26 PM | #15 |
misaki, which Event are you using that GetTriggeringUnit() works for? |
