Quantcast

Jump to content

» «
Photo

GXT custom strings

9 replies to this topic
boncho88
  • boncho88

    Player Hater

  • Members
  • Joined: 26 Jan 2013

#1

Posted 04 April 2013 - 06:19 PM

Hi everyone,

I am doing some missions now and I want to display text. I downloaded GXT Editor 1.3 and edited some text, and put their strings 'M1_RYDER' for example in main.scm but nothing is displayed.

I also tried to change the values of a already existing string and then use it, but then the old text is displayed.

Do you any hints, ideas?

Node
  • Node

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • United-Kingdom

#2

Posted 04 April 2013 - 06:37 PM

In Vice city you couldn't add extra GXT strings, you had to replace them (Credit strings etc.).

I'm not sure if this is the case for Andreas because I haven't modded it in a while.

If you have CLEO installed you can download the GXT hook.
This allows you to add new GXT strings to Andreas without the need to edit the orignal GXT files.

bondlover1313
  • bondlover1313

    KITT2000

  • Members
  • Joined: 30 Nov 2008

#3

Posted 05 April 2013 - 01:40 AM

QUOTE (boncho88 @ Thursday, Apr 4 2013, 18:19)
Hi everyone,

I am doing some missions now and I want to display text. I downloaded GXT Editor 1.3 and edited some text, and put their strings 'M1_RYDER' for example in main.scm but nothing is displayed.

I also tried to change the values of a already existing string and then use it, but then the old text is displayed.

Do you any hints, ideas?

I know you might think I am being a jerk, but did you save the GXT file after you edited it? if so then did you use the right opcode for the actual script? What kind of text do you wanna mod or make, I mean give an example from a scene/part in the game.


Thanks, Bests
Bondlover1313 smile.gif

Sloth-
  • Sloth-

    Being meguca is suffering

  • Members
  • Joined: 01 Aug 2012
  • Venezuela

#4

Posted 07 April 2013 - 12:33 AM Edited by Daniel Carrington, 07 April 2013 - 12:36 AM.

QUOTE (boncho88)
Hi everyone,

I am doing some missions now and I want to display text. I downloaded GXT Editor 1.3 and edited some text, and put their strings 'M1_RYDER' for example in main.scm but nothing is displayed.

I also tried to change the values of a already existing string and then use it, but then the old text is displayed.

Do you any hints, ideas?


Hi.

1. Make sure you are using the opcode 054C: use_GXT_table 'X' before your showtext instruction, where 'X' is the name of the table in your gxt file.
2. In the string name, you cannot exceed the 6 characters (6 or 7, i'm not sure, i always use 6). 'M1_RYDER' has 8 characters.

You don't need to edit the existing strings, you can create new tables and entries into your 'american' or other language gxt.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#5

Posted 07 April 2013 - 12:41 AM

Better to use X-GXT Editor by X-Men as other GXT editor is sometimes a mess..tounge.gif

boncho88
  • boncho88

    Player Hater

  • Members
  • Joined: 26 Jan 2013

#6

Posted 17 April 2013 - 02:51 PM

Thanks for the good advice. Indeed with X GXT editor it is better, but still behaves in a peculiar way. I tried with one string and it worked then I added all my strings that I need and it worked with 3 of them the rest did not show up, and the most interesting part was that the first string that worked stopped working. I used both high and low priority strings


00BC: show_text_highpriority GXT 'M3_KOG' time 4000 flag 1
00BB: show_text_lowpriority GXT 'IE23' time 3000 flag 1

Any ideas? I really do not want to use CLEO's extension for custom strings.

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#7

Posted 17 April 2013 - 03:37 PM

Can u post the whole script..?? Also make sure the strings aren't same..No duplicates..wink.gif

boncho88
  • boncho88

    Player Hater

  • Members
  • Joined: 26 Jan 2013

#8

Posted 17 April 2013 - 07:10 PM

This is what I have. I know that it is not good at all, but I am a beginner:

CODE
thread 'MAIN'
var
$PLAYER_CHAR: Player
end // var

01F0: set_max_wanted_level_to 6

set_wb_check_to 0

00C0: set_current_time 8 0
04E4: unknown_refresh_game_renderer_at 2488.5601 -1666.84

//Camera.SetAtPos(2459.55, -1697.75, 12.56)

$PLAYER_CHAR = Player.Create(#NULL, 2459.55, -1667.75, 12.56)
$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
Camera.SetBehindPlayer
set_weather 0
wait 0 ms
$PLAYER_CHAR.SetClothes("PLAYER_FACE", "HEAD", Head)
$PLAYER_CHAR.SetClothes("JEANSDENIM", "JEANS", Legs)
$PLAYER_CHAR.SetClothes("SNEAKERBINCBLK", "SNEAKER", Shoes)
$PLAYER_CHAR.SetClothes("VEST", "VEST", Torso)
$PLAYER_CHAR.Build
$PLAYER_CHAR.CanMove = True
fade 1 (out) 0 ms
select_interior 0
0629: change_stat 181 (islands unlocked) to 2 //Possibly all islands is 3
016C: restart_if_wasted at 2027.77 -1420.52 15.99 angle 137.0 for_town_number 0
016D: restart_if_busted at 1550.68 -1675.49 14.51 angle 90.0 for_town_number 0
0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here ($ONMISSION)
03E6: remove_text_box

01F0: set_max_wanted_level_to 6


create_thread @MODEL
//create_thread @MISSION_2
// IDLE LOOP
:leeg
wait 500
jump @leeg

end_thread






:MODEL
thread 'MODEL'

wait 1000 ms


$X_RYDER_HOUSE = 2459.55
$Y_RYDER_HOUSE = -1687.75
$Z_RYDER_HOUSE = 12.56

$ICON_RYDER = 34


:CREATE_MISSION_TAKE_POINT
$marker_1 = Marker.CreateIconAndSphere($ICON_RYDER, $X_RYDER_HOUSE, $Y_RYDER_HOUSE, $Z_RYDER_HOUSE)

:CHECK_FOR_MISSION_START
wait 1 ms
if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere $X_RYDER_HOUSE $Y_RYDER_HOUSE $Z_RYDER_HOUSE radius 1.0 1.0 1.0
jf @CHECK_FOR_MISSION_START  
jump @START_MISSION

:START_MISSION
Marker.Disable($marker_1)
023C: load_special_actor 'RYDER2' as 1
Model.Load(#HUSTLER)
Model.Load(#PATRIOT)
Model.Load(#MOLOTOV)
Model.Load(#ROCKETLA)
Model.Load(#FAM3)
Model.Load(#MICRO_UZI)

:CHECK_MODELS_LOADED
wait 1 ms
if or
   823D: not special_actor 1 loaded
   not Model.Available(#HUSTLER)
   not Model.Available(#PATRIOT)
   not Model.Available(#MOLOTOV)
   not Model.Available(#ROCKETLA)
   not Model.Available(#FAM3)
   not Model.Available(#MICRO_UZI)
jf @SPAWN_RYDER
jump @CHECK_MODELS_LOADED

:SPAWN_RYDER
Player.CanMove($PLAYER_CHAR) = False
[email protected] = Actor.Create(Special, #SPECIAL01, 2449.168, -1697.483, 12.5007)
0568: set_actor [email protected] targetable 0
Actor.Health([email protected]) = 2000
//07A1: set_walk_speed 7
//05D3: AS_actor [email protected] goto_point 2459.00 -1688.00 $Z_RYDER_HOUSE mode 7 5500 ms
06A8: AS_actor [email protected] run_to_and_look_at_actor $PLAYER_ACTOR timelimit -1 approach_distance 0.5 approach_angle 90.0

wait 5000 ms

01B2: give_actor $PLAYER_ACTOR weapon 18 ammo 10 //Molotov
01B2: give_actor $PLAYER_ACTOR weapon 35 ammo 10 //RPG
//00BB: show_text_lowpriority GXT 'IE23' time 3000 flag 1  // ~s~This vehicle is not required for export.
054C: use_GXT_table 'MASTER'
00BC: show_text_highpriority GXT 'M1_MR' time 4000 flag 1 //CJ CJ Get this sh*t
wait 4000 ms
00BC: show_text_highpriority GXT 'M3_KOG' time 4000 flag 1 //CJ CJ Get this sh*t
wait 4000 ms

Player.CanMove($PLAYER_CHAR) = True

//[email protected] = Car.Create(#PATRIOT,  2473.464, -1690.702, 13.51416)
//[email protected] = Marker.CreateAboveCar([email protected])
//Marker.SetColor([email protected], 2)
//Car.Health([email protected]) = 4000
//00AD: set_car [email protected] max_speed_to 15.0

//Spawn chasers
[email protected] = Car.Create(#PATRIOT, 2481.146, -1717.98, 13.54504)
[email protected] = Car.Create(#PATRIOT,  2420.18, -1687.792, 13.78882)

0129: [email protected]  = create_actor_pedtype 23 model #FAM3 in_car [email protected] driverseat
0561: [email protected] = create_passenger_in_car [email protected] seat 0
0561: [email protected] = create_passenger_in_car [email protected] seat 1

0129: [email protected] = create_actor_pedtype 23 model #FAM3 in_car [email protected] driverseat
0561: [email protected] = create_passenger_in_car [email protected] seat 0
0561: [email protected] = create_passenger_in_car [email protected] seat 1

01B2: give_actor [email protected] weapon 28 ammo 6000 // Load the weapon model before using this
01B2: give_actor [email protected] weapon 28 ammo 6000 // Load the weapon model before using this
01B2: give_actor [email protected] weapon 28 ammo 6000 // Load the weapon model before using this
01B2: give_actor [email protected] weapon 28 ammo 6000 // Load the weapon model before using this

0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 3000.0 0 0 firing_rate 90
0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 3000.0 0 0 firing_rate 90
0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 3000.0 0 0 firing_rate 90
0713: actor [email protected] driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 3000.0 0 0 firing_rate 90

//05F1: set_car [email protected] follow_car [email protected] keep_9o_clock
//05F2: set_car [email protected] follow_car [email protected] keep_3o_clock

:CJ_IN_CAR
//wait 1 ms
//if
//    Actor.InCar($PLAYER_ACTOR, [email protected])
//else_jump @CJ_IN_CAR
//Marker.Disable([email protected])
//00BB: show_text_lowpriority GXT 'M1_GOTO' time 3000 flag 1                          
[email protected] = Car.Create(#HUSTLER, -59.98454, 110.9703, 3.117188)
[email protected] = Marker.CreateAboveCar([email protected])
[email protected] = Car.Create(#PATRIOT, -63.21355, -41.8044, 2.995607)
[email protected] = Marker.CreateAboveCar([email protected])
00BC: show_text_highpriority GXT 'M1_MR2' time 4000 flag 1 //Go and destroy the 2 cars
wait 4000 ms
jump @CHECK_CARS



:CHECK_CARS
wait 1 ms
if or
    not Car.Wrecked([email protected])
    not Car.Wrecked([email protected])
jf @MISSION_PASSED
jump @CHECK_FIRST_CAR

:CHECK_FIRST_CAR
if
   Car.Wrecked([email protected])
else_jump @CHECK_SECOND_CAR
Marker.Disable([email protected])
jump @CHECK_SECOND_CAR

:CHECK_SECOND_CAR
if
   Car.Wrecked([email protected])
else_jump @CHECK_CARS
Marker.Disable([email protected])
jump @CHECK_CARS

:MISSION_PASSED
Marker.Disable([email protected])
Marker.Disable([email protected])
Player.Money($PLAYER_CHAR) += 20000
0394: play_music 1
01E3: show_text_1number_styled GXT 'M_PASS' number 20000 time 5000 style 1  // MISSION PASSED!~n~~w~$~1~


:MISSION_2              
wait 1 ms
[email protected] = Marker.CreateIconAndSphere(23, -2623.393, 1407.097, 7.101563)
gosub @MISSION_2_CHECK_START

if
wasted_or_busted
jf @MISSION_2_TO_AIRPORT
jump @MISSION_2

:MISSION_2_TO_AIRPORT
gosub @MISSION_2_TO_AIRPORT_LOAD_MODELS

if
wasted_or_busted
jf @MISSION_2_DRIVE_TO_AIRPORT
jump @MISSION_2

:MISSION_2_DRIVE_TO_AIRPORT
gosub @MISSION_2_DRIVE_TO_ARIRPORT_GO_SUB
gosub @M2_JIZZY_FLY_HELLI
jump @m3_mission_take
//----------------------------------MISSION 2 ----------------------------------------------------------
//Check for entereing mission circle
:MISSION_2_CHECK_START
wait 1 ms
if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -2623.393 1407.097 7.101563 radius 1.0 1.0 1.0
jf @MISSION_2_CHECK_START
Marker.Disable([email protected])
return  


//LOAD Special actors and special vehicle
:MISSION_2_TO_AIRPORT_LOAD_MODELS
Model.Load(#POLMAV)
Model.Load(#BROADWAY)
023C: load_special_actor 'JIZZY' as 1

:MISSION_2_LOAD_MODELS
wait 1 ms
if or
   823D: not special_actor 1 loaded
   not Model.Available(#POLMAV)
   not Model.Available(#BROADWAY)
jf @MISSION_2_SPAWN_MODELS
jump @MISSION_2_LOAD_MODELS

:MISSION_2_SPAWN_MODELS
[email protected] = Marker.CreateIconAndSphere(23, -1187.115, 25.8348, 20.14844)
[email protected] = Actor.Create(Special, #SPECIAL01, -2623.393, 1409.097, 7.101563)
[email protected] = Car.Create(#BROADWAY, -2623.393, 1400.097, 7.101563)
gosub @M2_CJ_IN_CAR
return


//JIZZI AND CJ IN THE CAR
:M2_CJ_IN_CAR
[email protected] = Marker.CreateAboveCar([email protected])
Marker.SetColor([email protected], 1)
00BB: show_text_lowpriority GXT 'M2_GIJC' time 4000 flag 1  //Get into Jizzys car
wait 4000 ms

:M2_CHECK_JIZZY
wait 1 ms
if
   80DB: not actor [email protected] in_car [email protected]
jf @M2_CJ_IS_IN_CAR
[email protected] = Marker.CreateAboveActor([email protected])
Marker.SetColor([email protected], 2)
jump @M2_CJ_IS_IN_CAR

:M2_CJ_IS_IN_CAR
wait 1 ms
if
 00DB: actor $PLAYER_ACTOR in_car [email protected]
jf @M2_CJ_IS_IN_CAR
Marker.Disable([email protected])
jump @M2_GET_JIZZY_IN_CAR  

:M2_GET_JIZZY_IN_CAR
wait 1 ms
if and
   0106: actor $PLAYER_ACTOR near_actor [email protected] radius 15.0 15.0 15.0 0 in_car
   00DB: actor $PLAYER_ACTOR in_car [email protected]
jf @M2_GET_JIZZY_IN_CAR

07A1: set_walk_speed 4
05CA: AS_actor [email protected] enter_car [email protected] passenger_seat 0 10000 ms
Marker.Disable([email protected])
00BB: show_text_lowpriority GXT 'M2_DTA' time 4000 flag 1       //Drive to the airport
wait 4000 ms
00BB: show_text_lowpriority GXT 'M2_DNWC' time 4000 flag 1      //Do not wrecj the car
wait 4000 ms
return
//JIZZY AND CJ IN THE CAR


:MISSION_2_DRIVE_TO_ARIRPORT_GO_SUB    
wait 1 ms
if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -1187.115 25.8348 20.14844 radius 200.0 200.0 200.0
jf @MISSION_2_DRIVE_TO_ARIRPORT_GO_SUB
Marker.Disable([email protected])
[email protected] = Car.Create(#POLMAV, -1187.115, 25.8348, 14.14844)
[email protected] = Marker.CreateAboveCar([email protected])
00BB: show_text_lowpriority GXT 'M2_SNTP' time 4000 flag 1 //Stop near the police maverick
wait 4000 ms

:m2_near_chopper
wait 1 ms
if  and
   00EE: actor $PLAYER_ACTOR 0 near_point -1187.115 25.8348 radius 15.0 15.0 in_car
   01C1: car [email protected] stopped
jf @m2_near_chopper
Player.CanMove($PLAYER_CHAR) = False
wait 1000 ms
05CD: AS_actor [email protected] exit_car [email protected]
wait 1000 ms
0633: AS_actor $PLAYER_ACTOR exit_car
wait 1000 ms
05CB: AS_actor [email protected] enter_car [email protected] as_driver 10000 ms
05CA: AS_actor $PLAYER_ACTOR enter_car [email protected] passenger_seat 0 10000 ms
wait 2000 ms
Marker.Disable([email protected])
wait 1000 ms
00BB: show_text_lowpriority GXT 'M2_YHTD' time 4000 flag 1 //You have to destroy the 2 targets
wait 4000 ms
return


:M2_JIZZY_FLY_HELLI
Player.CanMove($PLAYER_CHAR) = True

Model.Load(#HYDRA)
Model.Load(#SKIMMER)
Model.Load(#ROCKETLA)
Model.Load(#GUN_PARA)

:m2_after_in_heli_model_check
wait 1 ms
if or
   not Model.Available(#HYDRA)
   not Model.Available(#SKIMMER)
   not Model.Available(#ROCKETLA)
   not Model.Available(#GUN_PARA)
jf @m2_after_in_heli_model_spawn
jump @m2_after_in_heli_model_check

:m2_after_in_heli_model_spawn
$hydra_x = -1680.046
$hydra_y = 705.53
$hydra_z = 30.602
$hydra_z_above = 200

$nex_to_skimmer_y = 120.0641
$nex_to_skimmer_x = 100.5198
$skimmer_x = 107.5198
$skimmer_y = 152.0641
$skimmer_z = 1.00

0825: set_helicopter [email protected] instant_rotor_start
096A: enable_flying_helis 1
wait 5000 ms

0743: heli [email protected] fly_to $nex_to_skimmer_x $nex_to_skimmer_y $skimmer_z altitude 100.0 100.0

:m2_kill_skimmer
wait 1 ms
if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere $skimmer_x $skimmer_y $hydra_z_above radius 200.0 200.0 200.0
jf @m2_kill_skimmer
01B2: give_actor $PLAYER_ACTOR weapon 35 ammo 5 //RPG
[email protected] = Car.Create(#SKIMMER, $skimmer_x, $skimmer_y, $skimmer_z)
[email protected] = Marker.CreateAboveCar([email protected])
00BB: show_text_lowpriority GXT 'M2_DTS' time 4000 flag 1 //Destroy the skimmer
wait 4000 ms

:m2_check_kill_skimmer
wait 1 ms
if and
   Car.Wrecked([email protected])    
jf @m2_check_kill_skimmer
010D: set_player $PLAYER_CHAR wanted_level_to 0
Marker.Disable([email protected])
Player.CanMove($PLAYER_CHAR) = False
05CA: AS_actor $PLAYER_ACTOR enter_car [email protected] passenger_seat 0 10000 ms
jump @m2_cj_in_chopper

:m2_cj_in_chopper
wait 1 ms
if
   Actor.InCar($PLAYER_ACTOR, [email protected])
jf @m2_cj_in_chopper
01B2: give_actor $PLAYER_ACTOR weapon 46 ammo 1 //Paraschute
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 46
Player.CanMove($PLAYER_CHAR) = True
0743: heli [email protected] fly_to -1691.642 694.8602 30.60156 altitude 100.0 100.0

:m2_kill_hidra
wait 1 ms
if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere $hydra_x $hydra_y $hydra_z radius 100.0 100.0 100.0
jf @m2_kill_hidra
[email protected] = Car.Create(#HYDRA, $hydra_x, $hydra_y, $hydra_z)
[email protected] = Marker.CreateAboveCar([email protected])
00BB: show_text_lowpriority GXT 'M2_DTH' time 4000 flag 1 // Destroy the Hydra
wait 4000 ms

:m2_check_kill_hydra
wait 1 ms
if
   Car.Wrecked([email protected])
jf @m2_check_kill_hydra
Marker.Disable([email protected])
Player.Money($PLAYER_CHAR) += 10000
0394: play_music 1
01E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1  // MISSION PASSED!~n~~w~$~1~
return


:m3_mission_take      
016C: restart_if_wasted at -2653.00 624.1763 14.453 angle 90.0 for_town_number 1
016D: restart_if_busted at -1602.3052 720.846 11.3834 angle 90.0 for_town_number 1
[email protected] = Marker.CreateIconAndSphere(13, -2029.1706, 156.2559, 28.8385)

:m3_check_mission_start
wait 1 ms

if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -2029.1706 156.2559 28.8385 radius 1.0 1.0 1.0
jf @m3_check_mission_start  
jump @m3_mission_start

:m3_mission_start
fade 0 500
wait 1000 ms
fade 1 500
00BB: show_text_lowpriority GXT 'M3_GTMF' time 4000 flag 1
wait 4000 ms
Marker.Disable([email protected])
Model.Load(#VOODOO)
Model.Load(#M4)
023C: load_special_actor 'CESAR' as 1
023C: load_special_actor 'OGLOC' as 2
Model.Load(#FAM2)
Model.Load(#FAM3)
Model.Load(#VLA1)
Model.Load(#SFR3)
Model.Load(#LEVIATHN)


:m3_check_models_available
wait 1 ms
if or
   823D: not special_actor 1 loaded
   823D: not special_actor 2 loaded
   not Model.Available(#VOODOO)
   not Model.Available(#M4)
   not Model.Available(#FAM2)
   not Model.Available(#FAM3)
   not Model.Available(#VLA1)
   not Model.Available(#SFR3)
jf @m3_go_to_army
jump @m3_check_models_available

:m3_go_to_army
[email protected] = Marker.CreateIconAndSphere(13, 2591.00, 2718.00, 10.00)

:m3_check_near_base    
wait 1 ms
if or
 Actor.Dead($PLAYER_ACTOR)
 0741: actor $PLAYER_ACTOR busted
jf @m3_check_near_base_real
Marker.Disable([email protected])
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!
wait 4000 ms
jump @m3_mission_take


:m3_check_near_base_real
if
   80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere 2591.00 2718.00 10.00 radius 100.0 100.0 100.0
jf @m3_spawn_car
jump @m3_check_near_base

:m3_spawn_car
Marker.Disable([email protected])
[email protected] = Car.Create(#VOODOO, 2591.00, 2718.00, 10.00)
Car.Angle([email protected]) = 4
[email protected] = Marker.CreateAboveCar([email protected])
00BB: show_text_lowpriority GXT 'M3_GITC' time 4000 flag 1 //Get in the car
wait 4000 ms
:m3_check_player_in_car
wait 1 ms

if or
 Actor.Dead($PLAYER_ACTOR)
 0741: actor $PLAYER_ACTOR busted
jf @m3_spawn_enemies_real
Marker.Disable([email protected])
Car.Destroy([email protected])
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!
jump @m3_mission_take

:m3_spawn_enemies_real
if
   80DB: not actor $PLAYER_ACTOR in_car [email protected]
jf @m3_spawn_enemies
jump @m3_check_player_in_car

:m3_spawn_enemies
Marker.Disable([email protected])

[email protected] = Actor.Create(CivMale, #FAM2, 2589.4160, 2841.7163, 14.2559)
Actor.Angle([email protected]) = 157
Actor.WeaponAccuracy([email protected]) = 50
01B2: give_actor [email protected] weapon 31 ammo 100
0350: set_actor [email protected] maintain_position_when_attacked 1

[email protected] = Actor.Create(CivMale, #FAM3, 2570.4155, 2842.794, 14.2559)
Actor.Angle([email protected]) = 177
Actor.WeaponAccuracy([email protected]) = 50
0350: set_actor [email protected] maintain_position_when_attacked 1
01B2: give_actor [email protected] weapon 31 ammo 100

[email protected] = Actor.Create(CivMale, #VLA1, 2546.9794, 2827.4643, 14.2559)
Actor.Angle([email protected]) = 282
Actor.WeaponAccuracy([email protected]) = 50
01B2: give_actor [email protected] weapon 31 ammo 100
0350: set_actor [email protected] maintain_position_when_attacked 1

[email protected] = Actor.Create(CivMale, #SFR3, 2547.7763, 2819.00, 14.2559)
Actor.Angle([email protected]) = 288
Actor.WeaponAccuracy([email protected]) = 50
01B2: give_actor [email protected] weapon 31 ammo 100
0350: set_actor [email protected] maintain_position_when_attacked 1

[email protected] = Actor.Create(Special, #SPECIAL01, 2575.4494, 2828.6900, 10.8203)  //Cesar
Actor.Angle([email protected]) = 200
0568: set_actor [email protected] targetable 0
02A9: set_actor [email protected] immune_to_nonplayer 1
[email protected] = Actor.Create(Special, #SPECIAL02, 2576.4091, 2826.9382, 10.8203)  //OGOLOC
Actor.Angle([email protected]) = 7
[email protected] = Marker.CreateAboveActor([email protected])
0350: set_actor [email protected] maintain_position_when_attacked 1
01B2: give_actor [email protected] weapon 31 ammo 100
01B9: set_actor [email protected] armed_weapon_to 31

0A1D: AS_actor [email protected] rotate_to_and_look_at_actor [email protected]
0A1D: AS_actor [email protected] rotate_to_and_look_at_actor [email protected]
0A1D: AS_actor [email protected] rotate_to_and_look_at_actor [email protected]
0A1D: AS_actor [email protected] rotate_to_and_look_at_actor [email protected]
0A1D: AS_actor [email protected] rotate_to_and_look_at_actor [email protected]

00BB: show_text_lowpriority GXT 'M3_KOG' time 4000 flag 1
wait 4000 ms
:m3_ogloc_is_dead
wait 1 ms

if
 Actor.Dead($PLAYER_ACTOR)
jf @m3_check_og_loc_is_dead

Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Car.Destroy([email protected])
Marker.Disable([email protected])
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!
jump @m3_mission_take

:m3_check_og_loc_is_dead
if
   Actor.Dead([email protected])
jf @m3_ogloc_is_dead
Marker.Disable([email protected])
//Actor.DestroyWithFade([email protected])

05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
[email protected] = Marker.CreateAboveActor([email protected])
[email protected] = Marker.CreateAboveActor([email protected])
[email protected] = Marker.CreateAboveActor([email protected])
[email protected] = Marker.CreateAboveActor([email protected])
00BB: show_text_lowpriority GXT 'M3_KT4D' time 4000 flag 1  //Kill the 4 dummies
wait 4000 ms
jump @m3_all_dead

:m3_all_dead
wait 1 ms

if
   Actor.Dead($PLAYER_ACTOR)
jf @m3_check_if_all_dead
Marker.Disable([email protected])
Marker.Disable([email protected])
Marker.Disable([email protected])
Marker.Disable([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Car.Destroy([email protected])
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!
jump @m3_mission_take

:m3_check_if_all_dead
if or
  not Actor.Dead([email protected])
  not Actor.Dead([email protected])
  not Actor.Dead([email protected])
  not Actor.Dead([email protected])
jf @m3_get_choper

:m3_check_dummy_1
if
 Actor.Dead([email protected])
jf @m3_check_dummy_2
Marker.Disable([email protected])
jump @m3_check_dummy_2

:m3_check_dummy_2
if
 Actor.Dead([email protected])
jf @m3_check_dummy_3  
Marker.Disable([email protected])
jump @m3_check_dummy_3

:m3_check_dummy_3
if
 Actor.Dead([email protected])
jf @m3_check_dummy_4
Marker.Disable([email protected])
jump @m3_check_dummy_4

:m3_check_dummy_4
if
 Actor.Dead([email protected])
jf @m3_all_dead
Marker.Disable([email protected])
jump @m3_all_dead


:m3_get_choper
00BB: show_text_lowpriority GXT 'M3_GTCH' time 4000 flag 1 // Get to the chopper
wait 4000 ms
Marker.Disable([email protected])
Marker.Disable([email protected])
Marker.Disable([email protected])
Marker.Disable([email protected])
[email protected] = Car.Create(#LEVIATHN, 2618.5788, 2722.1467, 36.5383)
Car.Angle([email protected]) = 271
0850: AS_Actor [email protected] follow_actor $PLAYER_ACTOR
[email protected] = Marker.CreateAboveCar([email protected])
[email protected] = Marker.CreateAboveActor([email protected])


:m3_both_in_choper
wait 1 ms
Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected]) //CJ's
Actor.StorePos([email protected], [email protected], [email protected], [email protected]) //Cesar

050A: [email protected] = distance_between_XYZ [email protected] [email protected] [email protected] and_XYZ [email protected] [email protected] [email protected]  
if
 [email protected] > 10.0 // (float)
jf @m3_cesar_in_range  
00BB: show_text_lowpriority GXT 'M3W_YLC' time 4000 flag 1
wait 4000 ms
Player.Money($PLAYER_ACTOR) += 1
jump @m3_cesar_in_range

:m3_cesar_in_range
if
   10.0 > [email protected]
jf @m3_check_CJ_in_heli
03D5: remove_text 'M3W_YLC'  // Press ~k~~TOGGLE_SUBMISSIONS~ to toggle taxi missions on or off.
jump @m3_check_CJ_in_heli


:m3_check_CJ_in_heli
wait 1 ms
if
   Actor.InCar($PLAYER_ACTOR, [email protected])
jf @m3_both_in_choper
05CA: AS_actor [email protected] enter_car [email protected] passenger_seat 0 5000 ms
Marker.Disable([email protected])

wait 1 ms
if
   Actor.InCar([email protected], [email protected])
jf @m3_both_in_choper
Marker.Disable([email protected])
jump @m3_escape


:m3_escape
00BB: show_text_lowpriority GXT 'M3W_FTD' time 4000 flag 1 // Fly yo Doherty
wait 4000 ms
[email protected] = Marker.CreateIconAndSphere(13, -2029.1706, 156.2559, 28.8385)

:m3_check_mission_completed
wait 1 ms

if or
   Actor.Dead($PLAYER_ACTOR)
   Actor.Dead([email protected])
jf @m3_arrived_at_finish
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Actor.DestroyInstantly([email protected])
Marker.Disable([email protected])
Car.Destroy([email protected])
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // ~r~MISSION FAILED!
jump @m3_mission_take

:m3_arrived_at_finish
if
   00FE: actor $PLAYER_ACTOR sphere 0 in_sphere -2029.1706 156.2559 28.8385 radius 1.0 1.0 1.0
jf @m3_check_mission_completed  
jump @m3_mission_completed

:m3_mission_completed
Marker.Disable([email protected])
Player.Money($PLAYER_CHAR) += 10000
0394: play_music 1
01E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1  // MISSION PASSED!~n~~w~$~1~

end_thread        





rllyguy
  • rllyguy

    Player Hater

  • Members
  • Joined: 13 Jan 2013

#9

Posted 30 April 2013 - 05:05 AM

I am going to bump this up as I am also having some problems with Custom GXT strings. Who would've thought that making some custom text will be diffcult?

TheGodfather.
  • TheGodfather.

    Nobody likes me here...I think...

  • Members
  • Joined: 19 Jun 2012

#10

Posted 02 May 2013 - 03:21 PM

Well it is pretty strange if you have found error in making custom GXT strings are u guys sure that the GXT was saved correctly..Was it read only option in american.gxt unmarked ???




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users