User avatar
McNaughton
Posts: 2766
Joined: Wed Mar 21, 2007 8:47 pm
Location: Toronto, Canada

RemoveCuSubUnit vs. RemoveUnit

Sat Sep 29, 2007 10:48 pm

I have been toying with some events, and notice that there are two different ways to remove 'leaders' (amongst other units) in the event files.

One...

RemoveUnit

Removes the named unit in question, but also any other unit attached (i.e., if you remove a general, you also remove all of their subordinate attached forces in his division).

Two...

RemoveCuSubUnit

Removes the named unit in question, but, leaves everything else (tried this with an army HQ, and it removed the commander, but left the HQ!).

Now, there were some problems in some events before that had a leader removed, and so too were all of their brigades (if in a division). These events were 'blocked' from the game. However, they all use the "RemoveUnit" command instead of "RemoveCuSubUnit" command.

I figure that these events would actually work as designed, if the tags were changed to the correct designation (leave the brigades, remove the leader).

Therefore, those historic deaths via natural causes, jelous husbands, etc., could possibly be re-integrated.

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Sun Sep 30, 2007 7:39 am

Good catch!
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 10 guests