HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Chaos'd Unit is?

10-13-2004, 05:50 AM#1
Panto
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
rtm2
Hmm....im not sure but I think its damage soruce or casting unit??
10-13-2004, 03:12 PM#3
Vexorian
Quote:
Originally Posted by Panto
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).
Well it is weird, cause It should be the same unit.
10-13-2004, 09:05 PM#4
Panto
Mmm.
I'll try constructing it with the unit set to a local unit variable.
10-13-2004, 09:09 PM#5
Kishe
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
Panto
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
Mech-AG05
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
Kishe
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
Mech-AG05
oh ic. hmmm ill look into that for you panto (dont expect much from me >.<)
10-13-2004, 09:55 PM#10
Kishe
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
Psychatog
Quote:
Originally Posted by Panto
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).

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
Apologies for the hacked condition, I dunno much about orders or how to do GetIssuedOrderId in GUI.
10-14-2004, 01:04 AM#12
Panto
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
a thing
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
Panto
misaki, which Event are you using that GetTriggeringUnit() works for?