Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Happy Holidays from the GTANet team!

@jump THREAD causing confusion


deleted account
 Share

Recommended Posts

deleted account

Before you say anything yes I know how @Jump THREAD works.

 

The problem stands with my Alpha Omega mod, I'm finding it very hard to have Alpha Omega go to Phase 2.

 

 

This here is how I've got the game to still loop the clock but also check to see if Alpha Omega's health has gone down enough to enter Phase 2

:ALPHAOMEGA_THREAD_1200
wait 500
00BF: $PHASE11 = current_time_hours, $PHASE12 = current_time_minutes
if and
not $PHASE11 = 12
not $PHASE12 = 0
wait 2000
00C0: set_current_time 12 1
jump @ALPHAOMEGA_THREAD_2095
:ALPHAOMEGA_THREAD_2095
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @ALPHAOMEGA_THREAD_2095
wait 0
if
not [email protected] >= 500
jump @ALPHAOMEGA_THREAD_2095
Right here is where the problems begin, I have no clue how to have THREAD_2095 to repeat to have the clock stay looped to 12:00 for the phase 1 fight, but still have phase 2 working properly, anyone have a solution?
:ALPHAOMEGA_THREAD_2096
wait 0
Actor.Health([email protected]) = 10000
00C0: set_current_time 21 5
020C: create_explosion_with_radius 0 at [email protected] [email protected] [email protected]
0812: AS_actor [email protected] perform_animation "BBALL_DEF_LOOP" IFP "BSKTBALL" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1 // versionB
00BB: show_text_lowpriority GXT 'TYR4' time 3000 flag 1
Actor.SetImmunities([email protected], 0, 1, 1, 1, 1)
wait 3000
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
jump @ALPHAOMEGA_THREAD_2106
:ALPHAOMEGA_THREAD_2106
wait 500
00BF: $PHASE21 = current_time_hours, $PHASE22 = current_time_minutes
if and
not $PHASE21 = 21
not $PHASE22 = 6
else_jump @ALPHAOMEGA_THREAD_2106
wait 2000
00C0: set_current_time 21 8
jump @ALPHAOMEGA_THREAD_2106
Link to comment
Share on other sites

this is invalid code

if andnot $PHASE11 = 12not $PHASE12 = 0wait 200000C0: set_current_time 12 1jump @ALPHAOMEGA_THREAD_2095


it should be that

if andnot $PHASE11 == 12not $PHASE12 == 0else_jump @ALPHAOMEGA_THREAD_2095wait 200000C0: set_current_time 12 1jump @ALPHAOMEGA_THREAD_2095
  • Like 1
Link to comment
Share on other sites

Another GTA Fan

I'm assuming the phase 2 thing is when he gets to a certain amount of health? Forgive me if I'm not understanding this right (A bit vague on exactly what you're trying to do here). But if you want the phase thing to work depending on his health (When it drops to a certain point), use this:

 

 

 

:ALPHAOMEGA_THREAD_2096 wait 0 Actor.Health([email protected]) = 1000000C0: set_current_time 21 5Actor.StorePos([email protected], [email protected], [email protected], [email protected])020C: create_explosion_with_radius 0 at [email protected] [email protected] [email protected]: AS_actor [email protected] perform_animation "BBALL_DEF_LOOP" IFP "BSKTBALL" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1 // versionB 00BB: show_text_lowpriority GXT 'TYR4' time 3000 flag 1Actor.SetImmunities([email protected], 0, 1, 1, 1, 1)  wait 300005E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR   jump @ALPHAOMEGA_THREAD_2100:ALPHAOMEGA_THREAD_2100    //actor health checkwait [email protected] = Actor.Health([email protected])if [email protected] > 5000else_jump @ALPHAOMEGA_THREAD_2135  //jump to phase 2 if not above 5000 healthjump @ALPHAOMEGA_THREAD_2106 //jumps to time code if still above 5000 health :ALPHAOMEGA_THREAD_2106wait 50000BF: $PHASE21 = current_time_hours, $PHASE22 = current_time_minutesif andnot $PHASE21 = 21not $PHASE22 = 6else_jump @ALPHAOMEGA_THREAD_2100   //loop back to health checkwait 200000C0: set_current_time 21 8jump @ALPHAOMEGA_THREAD_2100  //loop back to health check:ALPHAOMEGA_THREAD_2135//This is where phase 2 coding goes for what you want to do
Edit: Fixed the code. It should work now when he gets below the stated value. Edited by Recommended
  • Like 1
Link to comment
Share on other sites

1 change to local variables
$ PHASE11
$ PHASE12

2 error
not $ PHASE11 = 12
not $ PHASE12 = 0

so it has to be
$ PHASE11> = 12
$ PHASE12> 0

= ---> you set the value

== ---> you check the value

3 tip
if not actor.Dead (6 @)
then
11 @ = Actor.Health (6 @)
if not 11 @> = 500
then

end
end

  • Like 1
Link to comment
Share on other sites

deleted account

I'm assuming the phase 2 thing is when he gets to a certain amount of health? Forgive me if I'm not understanding this right (A bit vague on exactly what you're trying to do here). But if you want the phase thing to work depending on his health (When it drops to a certain point), use this:

 

 

Thank you, but THREAD_2096 was the Phase 2 code

Link to comment
Share on other sites

Dude ,you don't have to lock the clock using a sh*tty loop.You can easily enable and disable at anytime using this.

 

 

:disableClockUpdate   0A8C: write_memory 0x53BFBD size 5 value 0x90 virtual_protect 1 return:enableClockUpdate   0A8C: write_memory 0x53BFBD size 4 value 0xFF0F4EE8 virtual_protect 1 //  4 bytes   0A8C: write_memory 0x53BFC1 size 1 value 0xFF virtual_protect 1 //  5th bytereturn
Just add this at the end of your code.

 

To give the feeling of freezing time...

 

 

00BF: @31 = current_time_hours, @30 = current_time_minutesgosub @disableClockUpdate// Do sh*tgosub @enableClockUpdate00C0: set_current_time @31 @30
Edited by guru_guru
Link to comment
Share on other sites

deleted account

Well believe it or not the loop works just fine and I prefer it over messing with the memory.

 

Either way I have a new problem, I have got Phase 1 to work and Alpha Omega enters Phase 2 without any problems, but for some reason right after the game is done with the Phase 2 script the script thats supposed to happen when Alpha Omega is DEAD happens, why?

 

:ALPHAOMEGA_THREAD_2096 PHASE 2 SCRIPT
wait 0
Actor.Health([email protected]) = 10000
00C0: set_current_time 21 5
020C: create_explosion_with_radius 0 at [email protected] [email protected] [email protected]
0812: AS_actor [email protected] perform_animation "BBALL_DEF_LOOP" IFP "BSKTBALL" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1 // versionB
00BB: show_text_lowpriority GXT 'TYR4' time 3000 flag 1
Actor.SetImmunities([email protected], 0, 1, 1, 1, 1)
wait 3000
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
jump @ALPHAOMEGA_THREAD_3534
:ALPHAOMEGA_THREAD_3534 CHECKING IF ALPHA OMEGA IS DEAD
wait 0
if
Actor.Dead([email protected])
else_jump @ALPHAOMEGA_THREAD_469 //DO
jump @ALPHAOMEGA_THREAD_2106 //DO NOT
:ALPHAOMEGA_THREAD_2106 TIME LOOP
wait 500
00BF: $PHASE21 = current_time_hours, $PHASE22 = current_time_minutes
if and
not $PHASE21 = 21
not $PHASE22 = 6
wait 2000
00C0: set_current_time 21 8
jump @ALPHAOMEGA_THREAD_3534
:ALPHAOMEGA_THREAD_469 DEATH
00BB: show_text_lowpriority GXT 'TYR5' time 3000 flag 1
[email protected] = Audiostream.Load("CLEO\cleo_audio\omega death.MP3")
Audiostream.PerformAction([email protected], PLAY)
set_weather 8
01B7: release_weather
wait 5000
020C: create_explosion_with_radius 900 at [email protected] [email protected] [email protected]
Link to comment
Share on other sites

Another GTA Fan

hmmm, could you post the entire script (In spoiler tag), and explain a bit more indepth what you're trying to do, or where you want the script to go?

 

oh, I re-read. I believe these jumps are mixed up. Just swap their jump labels around:

 

 

else_jump @ALPHAOMEGA_THREAD_469  //DOjump @ALPHAOMEGA_THREAD_2106 //DO NOT
Edited by Recommended
Link to comment
Share on other sites

 

Well believe it or not the loop works just fine and I prefer it over messing with the memory.

 

Either way I have a new problem, I have got Phase 1 to work and Alpha Omega enters Phase 2 without any problems, but for some reason right after the game is done with the Phase 2 script the script thats supposed to happen when Alpha Omega is DEAD happens, why?

 

:ALPHAOMEGA_THREAD_2096 PHASE 2 SCRIPT
wait 0
Actor.Health([email protected]) = 10000
00C0: set_current_time 21 5
020C: create_explosion_with_radius 0 at [email protected] [email protected] [email protected]
0812: AS_actor [email protected] perform_animation "BBALL_DEF_LOOP" IFP "BSKTBALL" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1 // versionB
00BB: show_text_lowpriority GXT 'TYR4' time 3000 flag 1
Actor.SetImmunities([email protected], 0, 1, 1, 1, 1)
wait 3000
05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR
jump @ALPHAOMEGA_THREAD_3534
:ALPHAOMEGA_THREAD_3534 CHECKING IF ALPHA OMEGA IS DEAD
wait 0
if
Actor.Dead([email protected])
else_jump @ALPHAOMEGA_THREAD_469 //DO
jump @ALPHAOMEGA_THREAD_2106 //DO NOT
:ALPHAOMEGA_THREAD_2106 TIME LOOP
wait 500
00BF: $PHASE21 = current_time_hours, $PHASE22 = current_time_minutes
if and
not $PHASE21 = 21
not $PHASE22 = 6
wait 2000
00C0: set_current_time 21 8
jump @ALPHAOMEGA_THREAD_3534
:ALPHAOMEGA_THREAD_469 DEATH
00BB: show_text_lowpriority GXT 'TYR5' time 3000 flag 1
[email protected] = Audiostream.Load("CLEO\cleo_audio\omega death.MP3")
Audiostream.PerformAction([email protected], PLAY)
set_weather 8
01B7: release_weather
wait 5000
020C: create_explosion_with_radius 900 at [email protected] [email protected] [email protected]

 

:ALPHAOMEGA_THREAD_2096 //PHASE 2 SCRIPTwait 0 Actor.Health([email protected]) = 1000000C0: set_current_time 21 5Actor.StorePos([email protected], [email protected], [email protected], [email protected])020C: create_explosion_with_radius 0 at [email protected] [email protected] [email protected]: AS_actor [email protected] perform_animation "BBALL_DEF_LOOP" IFP "BSKTBALL" framedelta 4.0 loopA 1 lockX 0 lockY 0 lockF 1 time -1 // versionB 00BB: show_text_lowpriority GXT 'TYR4' time 3000 flag 1Actor.SetImmunities([email protected], 0, 1, 1, 1, 1)  wait 300005E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR   :loop wait 0if Actor.Dead([email protected])else_jump @nextjump @actor_dead:next00BF: $PHASE21 = current_time_hours, $PHASE22 = current_time_minutesif and $PHASE21 >= 21 $PHASE22 > 6jf @next_200C0: set_current_time 21 8:next_2jump @loop :actor_dead00BB: show_text_lowpriority GXT 'TYR5' time 3000 flag [email protected] = Audiostream.Load("CLEO\cleo_audio\omega death.MP3")Audiostream.PerformAction([email protected], PLAY) set_weather 801B7: release_weather wait 5000 020C: create_explosion_with_radius 900 at [email protected] [email protected] [email protected]
  • Like 1
Link to comment
Share on other sites

deleted account

I'd like to give a big thanks to everyone that helped me with the mod.

 

Alpha Omega and its cultists all work perfectly https://imgur.com/a/eEJCU

 

Now that all of the mods planned for the Cleo Myths series are fully implemented I can soon get to work on it, so stay tuned for that I guess.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.