Two Different Points to Unlock for 1 Unit
Moderator: Moderators
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Two Different Points to Unlock for 1 Unit
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???
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Two Different Points to Unlock for 1 Unit
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
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Two Different Points to Unlock for 1 Unit
You can use the same unit. You just change "PointsToUnlock" with SetClassProperty() in whichever mode needs the new point value.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Two Different Points to Unlock for 1 Unit
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:
Would that work???
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:
what would i write there???Frisbeetarian wrote:You can use the same unit. You just change "PointsToUnlock" with SetClassProperty() in whichever mode needs the new point value.
Code: Select all
SetClassProperty() PointsToUnlock = 12- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Two Different Points to Unlock for 1 Unit
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
This topic is from the FAQ:
http://www.gametoast.com/forums/viewtop ... 27&t=13946
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Two Different Points to Unlock for 1 Unit
Thanks heaps for that Fris......looks alot easier than what i had intended to doFrisbeetarian 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
