Page 1 of 1

Two Different Points to Unlock for 1 Unit

Posted: Tue Aug 04, 2009 6:14 am
by lucasfart
I'm using a republic commando in both hero assault and conquest but i want the unit to have unlock points in conquest but not in assault. is this possible without making two totally different units with different names???

Re: Two Different Points to Unlock for 1 Unit

Posted: Tue Aug 04, 2009 6:19 am
by DarthD.U.C.K.
no, but you can simply create a new "unit" with nothing in the odf but the unlockable points ad make it parent of the unit without unlock points, for assault you load the normal unit, for conquest the unlockable parent

Re: Two Different Points to Unlock for 1 Unit

Posted: Tue Aug 04, 2009 6:26 am
by Frisbeetarian
You can use the same unit. You just change "PointsToUnlock" with SetClassProperty() in whichever mode needs the new point value.

Re: Two Different Points to Unlock for 1 Unit

Posted: Tue Aug 04, 2009 6:32 am
by lucasfart
so all i need is an odf and no reqs, msh's or tga files?????
say the original odf is rep_inf_scorch_commando, i could just create another one could rep_inf_scorch_points, or somethin like that. seeing as i'm not to experienced with odf editing and modding in general, would the odf go like this???:
[GameObjectClass]
ClassParent = "rep_inf_scorch_commando"

[Properties]
PointsToUnlock =12
this is all based on the default commando odf....

EDIT:
Frisbeetarian wrote:You can use the same unit. You just change "PointsToUnlock" with SetClassProperty() in whichever mode needs the new point value.
what would i write there???

Code: Select all

SetClassProperty() PointsToUnlock      = 12
Would that work???

Re: Two Different Points to Unlock for 1 Unit

Posted: Tue Aug 04, 2009 7:03 am
by Frisbeetarian
I'm assuming that the ODF already has PointsToUnlock in it, so in this case, you can just set it equal to 0 in the assault Lua script.
This topic is from the FAQ:
http://www.gametoast.com/forums/viewtop ... 27&t=13946

Re: Two Different Points to Unlock for 1 Unit

Posted: Tue Aug 04, 2009 7:19 am
by lucasfart
Frisbeetarian wrote:I'm assuming that the ODF already has PointsToUnlock in it, so in this case, you can just set it equal to 0 in the assault Lua script.
This topic is from the FAQ:
http://www.gametoast.com/forums/viewtop ... 27&t=13946
Thanks heaps for that Fris......looks alot easier than what i had intended to do :bowdown: