Wing Commander CIC

Hi:

Since you guys have done quite a bit of scripting, thought I'd ask for suggestions. I've done a bit of brainstorming on adding some scripting to flight commander, so here are some notes. I'd like to hear your thoughts more on the semantics, not so much on the syntax. Whether there are any critical conditions or actions missing. Just wanted to see if you can come up with any interesting mission concepts which would not be expressible in this scripting language. Ignoring cutscenes, for sake of discussion. Note I'm trying to get away without runtime variables (with the exception of timers), arithmetic operators, and loops.

Scripting

Conditions
has n objects been destroyed at nav(int n)
has n objects been inspected at nav(int n)
has specific ship been destroyed(int shipid)
has specific ship been inspected(int shipid)
has wave started(int waveid)
or
and
not
has n components destroyed(int shipid, int n)
has n turrets destroyed(int shipid, int n)
hasdocked(int shipid)
nav entered(int nav)
timer expired(string timerid)
missiontimegreaterthan(int time)
wave done(int nav, int wavenumber)
nav done(int nav) // all waves done
mission_successful
mission_failed

Actions
Change alignment(int shipid, int alignment)
Set Mission failure()
Set Mission won()
startnextwave()
play comm video(string wavname, string videoname, string name, int alignemnt)
set will autopilot(shipid)
dock to( meship, docktarget)
create timer( timerid)
aiflee( shipid)
aisettarget(meshipid, targetid)
destroy( shipid)
eject( shipid)
displaytext(string text)
jumpout(shipid)
setobjectivestatus(String objective, int status)

actual syntax:

<script>
<if>
<or>
<haswavestarted wave="0" />
<navdone nav="0" />
</or>
</if>
<actions>
<changealignment ship="moray1" alignment="enemy" />
</actions>
<script>
Back
Top