Two Different Points to Unlock for 1 Unit

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Two Different Points to Unlock for 1 Unit

Post 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???
User avatar
DarthD.U.C.K.
Master of the Force
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

Post 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
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Two Different Points to Unlock for 1 Unit

Post by Frisbeetarian »

You can use the same unit. You just change "PointsToUnlock" with SetClassProperty() in whichever mode needs the new point value.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Two Different Points to Unlock for 1 Unit

Post 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???
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Two Different Points to Unlock for 1 Unit

Post 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
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Two Different Points to Unlock for 1 Unit

Post 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:
Post Reply