Locals Tutorial

Started by Snake, April 07, 2011, 10:54:16 AM

Previous topic - Next topic
I don't think I saw one but could someone write a tutorial on how to add locals to a map with more than one unit?
=AaTc= Forever

SALLY....

-Retired Modder

Here you go use it well :)

"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 :D "

Thank you! This will help a lot and I will add this to the Ultimate How-To Thread
=AaTc= Forever

SALLY....

-Retired Modder