Tutorial - Directive-value SEXP - FreeSpace Wiki.pdf
(
1994 KB
)
Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Tutorial - Directive-value SEXP - FreeSpace Wiki
12-08-14 11:14
Tutorial - Directive-value SEXP
From FreeSpace Wiki
Contents
1 Directive-value SEXP Tutorial
1.1 The Problem
1.2 The OLD and BUSTED way
1.3 The NEW and HOTNESS way
1.4 MORE FUN!
1.4.1 General Destroy/Protect Directives
1.4.2 Countdowns
Directive-value SEXP Tutorial
Note: This tutorial was written for the
directive-is-variable
sexp. Both sexps pretty much do the same thing,
but directive-value lets you directly plug in any number that can be returned. This tutorial still applies and
the writer would like to not have to retake so many pictures!
The Problem
Have you ever had one of those days?
One of those days where you want to disable some beam cannons on a ship, and you want a number by the
directive to show the player how many are left?
http://www.hard-light.net/wiki/index.php?title=Tutorial_-_Directive-value_SEXP&printable=yes
Page 1 of 17
Tutorial - Directive-value SEXP - FreeSpace Wiki
12-08-14 11:14
Yeah, we've all had bad days. Maybe not as bad as this guys. But still bad.
Well never fear, new additions to the SCP will allow you to turn this can-don't, into can-probably-do!
The OLD and BUSTED way
If you wanted to keep track of how many beam cannons are left, you'd probably go about by using the is-
destroyed-delay sexp and a bunch of dummy objects.
http://www.hard-light.net/wiki/index.php?title=Tutorial_-_Directive-value_SEXP&printable=yes
Page 2 of 17
Tutorial - Directive-value SEXP - FreeSpace Wiki
12-08-14 11:14
This is from mission 2 from Vassago's Dirge. Basically I set up these containers what would self destruct if
you destroyed the right turret (or the ship). Then the actual directive is depending if you destroyed the
containers, which you kind of do indirectly.
This can be a little complicated and convoluted at times, but do not fear. There is a better way!
The NEW and HOTNESS way
Oh noes! The Arcadia installation... Smarcadia has fallen under attack by the Ravana-class destroyer the...
Smassago... And only Alpha 1 is on scene with 5 trebs! What will you do?!
Kill the beam turrets of course. Has Blue Planet taught you NOTHING?! First lets set it up.
http://www.hard-light.net/wiki/index.php?title=Tutorial_-_Directive-value_SEXP&printable=yes
Page 3 of 17
Tutorial - Directive-value SEXP - FreeSpace Wiki
12-08-14 11:14
http://www.hard-light.net/wiki/index.php?title=Tutorial_-_Directive-value_SEXP&printable=yes
Page 4 of 17
Tutorial - Directive-value SEXP - FreeSpace Wiki
12-08-14 11:14
Pretty simple initial event setup. Okay, let's make a directive for killing the beam turrets.
http://www.hard-light.net/wiki/index.php?title=Tutorial_-_Directive-value_SEXP&printable=yes
Page 5 of 17
Plik z chomika:
rybosomiczny
Inne pliki z tego folderu:
Tutorial - Conditional Arguments - FreeSpace Wiki.pdf
(2167 KB)
Tutorial - Directive-value SEXP - FreeSpace Wiki.pdf
(1994 KB)
Tutorial - In-Mission Jumps - FreeSpace Wiki.pdf
(2046 KB)
Inne foldery tego chomika:
FreeSpace 2 - wersja instalacyjna
MODs - campaigns
MODs - Media_VPs_3612
wxLauncher
Zgłoś jeśli
naruszono regulamin