;core variables
#var clientversion 13
#var loadtask {soundpack|keys|aliases|updator|misc|gagcreator|pathupdator}
#var settings {rawpass|miscgags|shipgags|vehiclegags|activitygags|intromusic|vol|commandsinoutput|devmode|decchar|numpadon}
#var speech "disabled"
#if {%volume<100} {#pc 0 volume 100}
;Initialising the script files
#ForAll @loadtask {#load {@scpath/%i.set}}
;Reading and writing Settings.
#File 6 {settings.set} 1
#var num 1
#ForAll @settings {
#read 6 {%i} @num;
#math num {@num + 1}};
#close 6

#trigger {Welcome to: cosmic rage!} {
#if {@intromusic = "enabled"} {
#if {@IntroPlaying = 1} {#pc @introhandle stop;#var IntroPlaying 0};
#playloop {@sppath/music/IntroMusic/DefaultIntro.wav} @vol; #var introhandle %playhandle; #var IntroPlaying 1}}  {} AnyCase
#TRIGGER {synaptic signal verified. Sleep mode disengaged. Welcome back to Cosmic Rage!} {#if {@IntroPlaying = 1} {#pc @introhandle stop; #var IntroPlaying 0}; ~@sp-register vip;~@sp-version}
#trigger {Your synaptic signal wavers for a moment, then returns with a snap!} {#if {@IntroPlaying = 1} {#pc @introhandle stop; #var IntroPlaying 0}; ~@sp-register vip;~@sp-version}
#if {@rawpass = "enabled"} {makebetter}
#if {@activitygags = "enabled"} {#load {gags/activitygags.set}}
#if {@vehiclegags = "enabled"} {#load {gags/vehiclegags.set}}
#if {@shipgags = "enabled"} {#load {gags/shipgags.set}}
#if {@miscgags = "enabled"} {#load {gags/miscgags.set}}
#if {@devmode="enabled"} {#load {@scpath/dev.set}}
#if {%defined(decchar)=0 or %length(@decchar)<1} {#var decchar .}
#If {@numpadon="enabled"} {#load @scpath/numpad.set}