1st
Define your mission
Go and Find
DEFINE MISSIONS (in the decompiled script)
Eg:DEFINE MISSION ### AT @Zero2
2nd
Insert your trigger
Go and Find
create_thread (in the decompiled script)
Eg:004F: create_thread @MissionTrigger
Then Find the mission state/session
[//-------------Mission 0---------------]
:MissionTrigger
0001: wait 0 ms
00D6: if
0256: player $PLAYER_CHAR defined
004D: jump_if_false @MissionTriggerEnd
00D6: if
0038: $ONMISSION == 0
004D: jump_if_false @MissionTriggerEnd
00D6: if
// Place your condition to start your mission
004D: jump_if_false @MissionTriggerEnd
0417: start_mission ###
0004: $ONMISSION = 1
:MissionTriggerEnd
0002: jump @MissionTrigger
Insert your mission
:MissionStart
03A4: name_thread 'NAME'
0050: gosub @MissionBegin
00D6: if
0112: wasted_or_busted
004D: jump_if_false @MissionEnd
0050: gosub @MissionFailed
:MissionEnd
0050: gosub @MissionCleanup
004E: end_thread
:MissionBegin
// This section is where you place the contents of your mission
0051: return
:MissionFailed
// This section is what happens after you died or got busted during your mission
0051: return
:MissionCleanup
// This section is where you clean up the contents of your mission so you can end it
0004: $ONMISSION = 0
00D8: mission_cleanup
0051: return
*This is just an example
you can do much more
thanx gtamodding
Labels
Twitter Updates
Saturday, May 9, 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment