Can I script a decision as a campaign objective?

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
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Can I script a decision as a campaign objective?

Post by wishihadaname »

Is it possible to script an either/or senario into the campaign? More specifically, I was thinking about either killing a civillian transport or letting it escape. It would be a kill objective with a timer. The attacking team wins if they kill the transport or if they wait the timer out. The problem is that I want the game to show a different message depending on whether you killed the transport or let it go and i'm not sure if thats even possible.
Last edited by wishihadaname on Mon Mar 28, 2011 11:03 pm, edited 1 time in total.
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: Can I script a dicision as a campaign objective?

Post by Firefang »

You can use variables. Have two (event1, event2) and if one event happens (say the transport is destroyed) set it to one. Then use if event1 == 1 then or setting the other to one to control what message pops up.
Post Reply