Page 2 of 2

Re: Problems with mission scripting

Posted: Sun Sep 06, 2009 10:37 pm
by Fierfek
One - Take cp1
Two - Defend cp1 for 6 minutes
Three - Take cp5
Four - Destroy an object called 'panel'
Five - Kill 4 magnaguards (mag_inf_guard)
Six - Go to region 'goto'

Re: Problems with mission scripting

Posted: Thu Sep 10, 2009 4:23 pm
by StarkillerMarek
Okay, I will try to walk you through this first, to see if you did something wrong:

1.Open Mission-Scripter(this step is hardest one :D )

2. Click the button "edit" to the right of starsequence in the top right corner, there will be some options for you to choose from which you should understand.

3. After you are finished with that, hit okay, then click "load" to the right of startsequnce.

4.Then click under the objective tab "new: conquest"

5. type in the localization path e.g. "level.OBJ.campaign.objectives.1"]("ooo" from now on should be this)
and the cp name

6. Then click ok and then "load current objective"

7. Then make a new conquest objective(see number 4)

8. Do it the same way as the last one, but under hear
"Objective1 = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF, text = "ooo", popupText = "ooo", AIGoalWeight = 0}"
change this "teamATT = ATT" and this"teamDEF = DEF" so that it will look like this
"teamATT = DEF" and "teamDEF = ATT"(this swithces the REP team to be on defense)

9. And add this "timeLimit = 360, timeLimitWinningTeam = ATT" after"popupText = ooo"

10. Now do Objective three the same way as before

11. After that, click "new: assault" under "objectives"

12. Type in the localization path

13. Then, in box "objectname" type "panel"

14. Click "ok" and load current objective

15. Now do another Assault Objective, but click in the circle next to
object-class

16. Type in "mag_inf_magnagaurd" and one of their cp name's, and set the kill limit to 4
(also, if you want the objective to end when the player kills 4, not the whole team,
type this "killedByPlayer = true," after "killLimit = 4"

17. After that, make a new objective goto("new: goto" under objectives)

18. Again, type in the localization path and the region name and click ok

19. Load the current objective, then up in the righthand corner to the right of endsequence click edit

20. You should probably be able to just click ok

21. Then left to "edit" click "load"

22. Click on the edit tab up in the left, and click "export script"

23. Follow then onscreen prompts(I love that phrase) and you are done

Let me know if you have problems.

Re: Problems with mission scripting

Posted: Fri Sep 11, 2009 11:08 am
by Fierfek
Okay, I started with just the first objective. When it finishes loading, there are no command posts for some reason. This is a competely unedited Yavin-texture brand-new sealed map (I haven't even opened Zeroeditor).
Help?

Re: Problems with mission scripting

Posted: Fri Sep 11, 2009 12:44 pm
by StarkillerMarek
Is this in Conquest mode(check the box?)?

Re: Problems with mission scripting

Posted: Fri Sep 11, 2009 12:47 pm
by Fierfek
Yes, it is in conquest, and I made the box conquest mode in export script.

Re: Problems with mission scripting

Posted: Fri Sep 11, 2009 1:45 pm
by StarkillerMarek
Try doing the whole tutorial all at once and then seeing if it works.