Page 1 of 1

How To Add Locals To Maps(Properly)

Posted: Fri Apr 08, 2011 3:45 am
by SleepKiller
A note. This is something I made in a hurry at the request of someone so it may be rough.

Okay so you maps nearing completion it's awesome but wait were are my Wookies. Never fear I'll show you how to add them

First off if we want them to have any Command Posts set that command post to team 3 in Zero Edit. Done it great now we want to show up in game so we add this into our mission lua.
ReadDataFile("SIDE\\wok.lvl",
"wok_inf_basic");

this will let the game know you wish to load the Wookie Data files now we want them to spawn so now we type out.

SetTeamName(3, "locals")
SetTeamIcon(3, "all_icon")
AddUnitClass(3, "wok_inf_mechanic", 2)
AddUnitClass(3, "wok_inf_rocketeer", 2)
AddUnitClass(3, "wok_inf_warrior", 3)
SetUnitCount(3, 7)

If we want them to have an Ally we do this.

SetTeamAsEnemy(3,ATT)
SetTeamAsFriend(3,DEF)
SetTeamAsFriend(DEF,3)
SetTeamAsEnemy(ATT,3)

Now we want to localize them so it says Wookie killed [YOU] or Wookies Captured [CP] so we go to our mod folder
and click edit_pc_addon_localize.bat once it load go to level and for anyone who is a total newbie click the plus beside it
now go to [YOURMAP] and make a new string called local and type in the name you want in the boxes on the right of the screen
and then make another string called locals and name it what you want again.

And now hit munge and go play your map and if it doesn't work I'll remove this tutorial as that will mean I'm a newbie myself.

Re: How To Add Locals To Maps(Properly)

Posted: Fri Apr 08, 2011 3:58 am
by THEWULFMAN
I am not attacking your tutorial, but yeah, its a bit incomplete and, there is already a tutorial in the FAQ.

http://www.gametoast.com/forums/viewtop ... =27&t=6088

Re: How To Add Locals To Maps(Properly)

Posted: Fri Apr 08, 2011 7:28 am
by SleepKiller
Well yes I did not know there was one here otherwise I never would have posted my breif unexplanatory one. And if an admins reads this can they update the sticky in All Things Battlefront 1 to show links to tutoriols in the SWBF II modding forum that will work for BF1.