I would like a way to increment a variable of the player...but no such function seems to exist.
Code: Select all
(objSetData gPlayerShip "foo" "1")
I want something like this:
Code: Select all
(objAddToData gPlayerShip "foo" "1")
If it helps to think outside the box, what I want is this (for Hell's Trinity):
When the player destroys an Ares Outpost in the Lincoln System, a variable gets added to - I want to use this later in a dockscreen to direct the player to a screen based on how many outposts he has killed.
I cannot use this (taken from Eridani.xml which has a similar thing to what I want)
Code: Select all
(setq centauriStations (sysFindObject gSource "T +centauriWarlords; +populated; -occupation; -uncharted;"))
(setq centauriStationsDestroyed (filter centauriStations theStation (objIsAbandoned theStation)))
I already have this:
Code: Select all
<Events>
<OnDestroy>
(block Nil
(if (eq(sysGetNode) "Lincoln")
(objSetData gPlayerShip "AresOutpostDestroyedLincoln" "1")
)
)
</OnDestroy>
</Events>
Thanks!
