Events

This is the place for all questions related to modding Starshatter.
Post Reply
User avatar
wdboyd
Posts: 628
Joined: Tue Jun 14, 2005 9:52 pm
Location: Ohio U.S.A

Events

Post by wdboyd »

Salutations,

Desire: Mission Event to call upon a .wav file to play when a ship is destroyed.

How should it be done in the games mission event editor? Please be precise. Thanks. [:)]
"Time is a great teacher, but unfortunately it kills all its pupils!"
xanthos
Posts: 12
Joined: Thu Mar 24, 2005 10:39 am
Location: NH

RE: Events

Post by xanthos »

event: {
id: 130,
time: 0.0,
delay: 3.0,
event: Jump
event_ship: "Whitestar"
event_target: "Nerasil"
event_sound: "Ss/exiting_the_system.wav"
event_chance: 100
trigger: "Event"
trigger_param: 129
}

The event parm looks like this...

You need a file containing your wav file and specify it as above, (my folder is called Ss and resides in the Starshatter\Mods folder.

The "trigger-ship" parm is defined as the target, (your ship) of the trigger condition, then select "destroyed" as the trigger condition.

For the sound to play in the game you'll need to create a dat of the mission or start SS using the - sys shortcut

User avatar
wdboyd
Posts: 628
Joined: Tue Jun 14, 2005 9:52 pm
Location: Ohio U.S.A

RE: Events

Post by wdboyd »

Thanks.... I'll give it try. [:D]
"Time is a great teacher, but unfortunately it kills all its pupils!"
User avatar
wdboyd
Posts: 628
Joined: Tue Jun 14, 2005 9:52 pm
Location: Ohio U.S.A

RE: Events

Post by wdboyd »

I have been able to get my files to play as I like.

Thanks for all of the help. [:)]





"Time is a great teacher, but unfortunately it kills all its pupils!"
Post Reply

Return to “Starshatter Modding Forum”