#Mission Info $Version: 0.10 $Name: XSTR("String Variables Test", -1) $Author: Hassan "Karajorma" Kazmi $Created: 08/01/04 at 13:50:50 $Modified: 04/24/05 at 14:48:19 $Notes: $End Notes: $Mission Desc: XSTR("Q : Can you assign a string variable to equal the contents of another one? A: No. ", -1) $end_multi_text +Game Type Flags: 1 +Flags: 0 +Red Alert: 0 +Scramble: 0 +Disallow Support: 0 +Hull Repair Ceiling: 0.000000 +Subsystem Repair Ceiling: 0.000000 +Viewer pos: 10.966422, 22.258743, -29.029228 +Viewer orient: 1.000000, 0.000001, 0.000319, -0.000127, 0.918245, 0.396013, -0.000293, -0.396013, 0.918245 #Plot Info $Tour: XSTR("Blah", -1) $Pre-Briefing Cutscene: Blah $Pre-Mission Cutscene: Blah $Next Mission Success: Blah $Next Mission Partial: Blah $Next Mission Failure: Blah #Sexp_variables $Variables: ( 0 "ArgToVar" "null" "string" 1 "CopyThisVar" "SomeValue" "string" 2 "EquivTest1" "Equal" "string" 3 "EquivTest2" "Equal" "string" 4 "OverwriteThisVar" "Null" "string" ) #Command Briefing #Briefing $start_briefing $num_stages: 1 $start_stage $multi_text XSTR("Press V to M to activate different features.", -1) $end_multi_text $voice: none.wav $camera_pos: 0.008208, 11.094095, -25.724133 $camera_orient: 1.000000, 0.000001, 0.000319, -0.000127, 0.918245, 0.396013, -0.000293, -0.396013, 0.918245 $camera_time: 500 $num_lines: 0 $num_icons: 0 $Flags: 0 $Formula: ( true ) $end_stage $end_briefing #Debriefing_info $Num stages: 0 #Players ;! 1 total $Starting Shipname: Alpha 1 $Ship Choices: ( "GTF Ulysses" 5 "GTF Hercules Mark II" 5 "GTF Ares" 5 "GTF Erinyes" 5 "GTF Pegasus" 5 "GTF Perseus" 5 "GTF Myrmidon" 5 "GTB Artemis D.H." 5 "GTB Medusa" 5 "GTB Ursa" 5 "GTB Zeus" 5 "GTB Boanerges" 5 ) +Weaponry Pool: ( "Subach HL-7" 17 "Subach HL-D" 16 "Mekhu HL-7" 16 "Mekhu HL-7D" 16 "Akheton SDG" 16 "Morning Star" 16 "MorningStar D" 16 "Prometheus R" 17 "Prometheus S" 16 "Prometheus D" 16 "Maxim" 16 "Maxim D" 16 "UD-8 Kayser" 16 "UD-D Kayser" 16 "Circe" 16 "Lamprey" 16 "Rockeye" 500 "Rockeye D" 500 "Tempest" 500 "Tempest D" 500 "Hornet" 500 "Tornado" 500 "Harpoon" 516 "Trebuchet" 500 "Piranha" 500 "Stiletto II" 500 "Infyrno" 500 "Infyrno D" 500 "Cyclops" 500 "Cyclops#short" 500 "Helios" 500 "EMP Adv." 500 ) #Objects ;! 4 total $Name: Alpha 1 ;! Object #0 $Class: GTF Ulysses $Team: Friendly $Location: 0.000000, 0.000000, 0.000000 $Orientation: 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 $IFF: IFF 1 $AI Behavior: None $Cargo 1: XSTR("Nothing", -1) +Initial Velocity: 33 +Initial Hull: 100 +Subsystem: Pilot $Arrival Location: Hyperspace $Arrival Cue: ( false ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Determination: 10 +Flags: ( "cargo-known" "player-start" ) +Flags2: ( ) +Respawn priority: 0 +Group: 0 +Score: 8 $Name: Beta 1 ;! Object #1 $Class: GTF Hercules $Team: Friendly $Location: 21.899906, 0.000000, 45.165329 $Orientation: 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 $IFF: IFF 1 $AI Behavior: None $Cargo 1: XSTR("Nothing", -1) +Initial Velocity: 33 +Initial Hull: 100 +Subsystem: Pilot $Arrival Location: Hyperspace $Arrival Cue: ( false ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Determination: 10 +Flags: ( "cargo-known" ) +Flags2: ( ) +Respawn priority: 0 +Group: 0 +Score: 10 $Name: Gamma 1 ;! Object #2 $Class: GTF Hercules $Team: Friendly $Location: -15.189530, -0.000003, 90.521126 $Orientation: 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 $IFF: IFF 1 $AI Behavior: None $Cargo 1: XSTR("Nothing", -1) +Initial Velocity: 33 +Initial Hull: 100 +Subsystem: Pilot $Arrival Location: Hyperspace $Arrival Cue: ( false ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Determination: 10 +Flags: ( "cargo-known" ) +Flags2: ( ) +Respawn priority: 0 +Group: 0 +Score: 10 $Name: Gamma 2 ;! Object #3 $Class: GTF Hercules $Team: Friendly $Location: 15.628647, 0.000008, 125.048126 $Orientation: 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 $IFF: IFF 1 $AI Behavior: None $Cargo 1: XSTR("Nothing", -1) +Initial Velocity: 33 +Initial Hull: 100 +Subsystem: Pilot $Arrival Location: Hyperspace $Arrival Cue: ( false ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Determination: 10 +Flags: ( "cargo-known" ) +Flags2: ( ) +Respawn priority: 0 +Group: 0 +Score: 10 #Wings ;! 3 total $Name: Alpha $Waves: 1 $Wave Threshold: 0 $Special Ship: 0 ;! Alpha 1 $Arrival Location: Hyperspace $Arrival Cue: ( true ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Ships: ( ;! 1 total "Alpha 1" ) +Hotkey: 0 +Flags:( ) $Name: Beta $Waves: 1 $Wave Threshold: 0 $Special Ship: 0 ;! Beta 1 $Arrival Location: Hyperspace $Arrival Cue: ( true ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Ships: ( ;! 1 total "Beta 1" ) +Hotkey: 1 +Flags:( ) $Name: Gamma $Waves: 1 $Wave Threshold: 0 $Special Ship: 0 ;! Gamma 1 $Arrival Location: Hyperspace $Arrival Cue: ( true ) $Departure Location: Hyperspace $Departure Cue: ( false ) $Ships: ( ;! 2 total "Gamma 1" "Gamma 2" ) +Hotkey: 2 +Flags:( ) #Events ;! 6 total $Formula: ( when ( key-pressed "V" ) ( modify-variable "@OverwriteThisVar[Null]" "@CopyThisVar[SomeValue]" ) ( send-message "#Command" "High" "Beta 1 Gone" ) ) +Name: Modify Variable +Repeat Count: 1 +Interval: 1 +Team: 0 $Formula: ( when-argument ( random-of "Gamma 1" "Gamma 2" ) ( key-pressed "B" ) ( modify-variable "@ArgToVar[null]" "" ) ( send-message "" "High" "Writing argument to variable" ) ) +Name: Write Argument To Variable +Repeat Count: 1 +Interval: 1 +Team: 0 $Formula: ( when ( and ( key-pressed "N" ) ( string-equals "@EquivTest1[Equal]" "@EquivTest2[Equal]" ) ) ( send-message "#Command" "High" "Equivalence Testing 1" ) ( modify-variable "@EquivTest2[Equal]" "Not Equal" ) ) +Name: Equivalence Testing +Repeat Count: 1 +Interval: 1 +Team: 0 $Formula: ( when ( string-less-than "@EquivTest1[Equal]" "@EquivTest2[Equal]" ) ( send-message "#Command" "High" "Equivalence Testing 2" ) ) +Name: Repeat Message Test +Repeat Count: 1 +Interval: 1 +Chained: 3 +Team: 0 $Formula: ( when ( true ) ( send-message "#Command" "High" "Equivalence Testing 1" ) ) +Name: Event name +Repeat Count: 1 +Interval: 1 +Chained: 3 +Team: 0 $Formula: ( every-time-argument ( random-of "m1" "m2" "m3" ) ( key-pressed "M" ) ( send-message "#Command" "High" "" ) ( key-reset "M" ) ( invalidate-argument "" ) ) +Name: Using an argument as message +Repeat Count: 1 +Interval: 1 +Team: 0 #Goals ;! 0 total #Waypoints ;! 0 lists total #Messages ;! 214 total $Name: Beta 1 Gone $Team: -1 $MessageNew: XSTR("Attempting to copy the value of a String variable to another string variable. Variable now equals $OverwriteThisVar", -1) $end_multi_text $Name: Writing argument to variable $Team: -1 $MessageNew: XSTR("Attempting to write the value of argument to a variable. Variable now equals $ArgToVar", -1) $end_multi_text $Name: Equivalence Testing 1 $Team: -1 $MessageNew: XSTR("Variable 1 = $EquivTest1 Variable 2 = $EquivTest2", -1) $end_multi_text $Name: Equivalence Testing 2 $Team: -1 $MessageNew: XSTR("Variable 1 = $EquivTest1 Variable 2 = $EquivTest2", -1) $end_multi_text $Name: m1 $Team: -1 $MessageNew: XSTR("Message 1", -1) $end_multi_text $Name: m2 $Team: -1 $MessageNew: XSTR("Message 2", -1) $end_multi_text $Name: m3 $Team: -1 $MessageNew: XSTR("Message 3", -1) $end_multi_text #Reinforcements ;! 0 total #Background bitmaps ;! 11 total $Num stars: 1494 $Ambient light level: 0 $Sun: SunBlue +Angles: 0.000000 0.000000 1.745328 +Scale: 1.000000 $Sun: SunGreen +Angles: 1.745328 0.000000 0.000000 +Scale: 3.000000 $Starbitmap: nebulC1-main +Angles: 0.872664 0.000000 1.047197 +ScaleX: 6.000000 +ScaleY: 6.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC2-main +Angles: 4.852012 0.000000 0.000000 +ScaleX: 5.000000 +ScaleY: 5.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC9-whisp +Angles: 1.518435 2.722712 3.124137 +ScaleX: 3.000000 +ScaleY: 4.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC8-whisp +Angles: 2.251473 1.623155 4.276053 +ScaleX: 2.000000 +ScaleY: 2.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC7-whisp +Angles: 5.585049 1.658062 0.593412 +ScaleX: 6.000000 +ScaleY: 6.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC6-whisp +Angles: 0.000000 0.000000 0.000000 +ScaleX: 6.000000 +ScaleY: 6.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC5-whisp +Angles: 0.000000 0.000000 0.000000 +ScaleX: 1.000000 +ScaleY: 1.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC4-whisp +Angles: 2.722712 0.209439 5.235984 +ScaleX: 3.000000 +ScaleY: 2.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC3-whisp +Angles: 0.174533 0.174533 0.593412 +ScaleX: 5.000000 +ScaleY: 4.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC11-whisp +Angles: 4.293507 1.483529 2.303833 +ScaleX: 5.000000 +ScaleY: 3.000000 +DivX: 1 +DivY: 1 $Starbitmap: nebulC14-whisp +Angles: 0.785398 0.418879 1.675515 +ScaleX: 2.000000 +ScaleY: 2.000000 +DivX: 1 +DivY: 1 #Asteroid Fields #Music $Event Music: None $Briefing Music: None #End