Page 1 of 1

PointsToUnlock

Posted: Wed Aug 15, 2012 2:02 pm
by Streich3r
Hey gametoast community,

It is possible to scripting somehow that the players for some classes at the assault mode(tat.2) need a few kills for unlock them? like the spec units in the shooter mode?

my first try was that I was searching the ODF file of my hero class and wrote this line: PointsToUnlock = 12
under [Properties]
after munging and paste it doesn't work...

OK second try: i wrote this line in the tat2g_eli.lua: SetClassProperty("all_hero_hansolo_tat", "PointsToUnlock", "12")

in the -- ScriptInit part

but it doesn't work again..
doesn't work it for assault mode?

Re: PointsToUnlock

Posted: Wed Aug 15, 2012 3:14 pm
by AQT
Are you making these changes to the stock game? If so, how exactly are you doing it? Or are you doing a custom map?

Re: PointsToUnlock

Posted: Wed Aug 15, 2012 3:39 pm
by Streich3r
I make changes to the stock game. I change and write a lot of for swbf2 stock-game. And all works fine and doesn't crash. U don't need new files, just join and having fun. I have create a new world,open the tat2.wld with the ZE and saved that as the new created world map. (before i have copy the world folder) now i write in the mission.req
Hidden/Spoiler:
REQN
{
"lvl"
"tat2g_eli"
}
}
and copy the tat folder in the scripts folder. now i can change any files. maybe the luascrpting for the mission.lvl or the stock ODF for ingame.lvl or some SIDES and so on...all works!
but this only one not...

Re: PointsToUnlock

Posted: Thu Aug 16, 2012 2:23 am
by DarthD.U.C.K.
well, the sides are munged to individsual lvl files for each side which can be found in the lvl_pc folder of battlefront. when you edit a side in your custom map and munge it, the lvl file is created in the lvl_pc folder of your map in the addon folder. if you want to edit unitproperties and still retain online compatibility, you have to use the command "setclassproperty" in the mission lua. it can change most of the unit properties. here is a thread linked in the everythingyouneedthread about this.