Quantcast

Jump to content

» «
Photo

How To make Marker to execute your mission

7 replies to this topic
kiavash2k
  • kiavash2k

    Coder/Modder

  • Members
  • Joined: 30 Apr 2008

#1

Posted 04 May 2008 - 11:57 AM Edited by kiavash2k, 05 May 2008 - 07:04 PM.

Hi,

I've did work on VC so all of my tutorials are tested just in VC Right now. but it's work on SA or 3

Requirements:
BW's Vice Mission Builder v0.22

----------------------------
ok

If you like to make a main.scm without any mission and empty and make your stand-alone mod you can use my code, It's run VC without any mission and any marker and etc

CODE

DEFINE VERSION VICE 0.22

0002: jump ££OBJECT_DEFINATION
DEFINE MEMORY  34329

:OBJECT_DEFINATION
0002: jump ££MISSION_DEFINATION
DEFINE OBJECTS  1
DEFINE OBJECT (no name)                   \\ This is an unused object. You can put anything here.

:MISSION_DEFINATION
0002: jump ££Game_Starter
DEFINE MISSIONS  2
DEFINE MISSION 0 AT ££MISSION_INITIAL
DEFINE MISSION 1 AT ££MISSION_1

;-------------MAIN---------------

:Game_Starter
03A4: name_thread "MAIN"
016A: fade  0? ()  0? ms
04E4: unknown_refresh_game_renderer_at  250.618! -1278.601!
0053: $PLAYER_CHAR = create_player #NULL at  250.6! -1278.6! 9.9!
01F5: $PLAYER_ACTOR = create_emulated_actor_from_player $PLAYER_CHAR
0417: start_mission  0?
0352: set_actor $PLAYER_ACTOR skin_to "PLAYER"
038B: load_requested_models
016A: fade  1? (back)  1000& ms
0353: refresh_actor $PLAYER_ACTOR
04BB: select_interiour  0?  \\ select render area
01B4: set_player $PLAYER_CHAR frozen_state  1? (unfrozen)

;-------------Mission 0---------------
; Originally: Initialization Engine Objects and maps

:MISSION_INITIAL
03A4: name_thread "INITIAL"
0004: $DEFAULT_WAIT_TIME =  250&  \\ integer values

; Waseted And Busted Defination
016C: restart_if_wasted at  493.5!  703.1!  11.1!  90!
016D: restart_if_busted at  508.9!  506.8!  10.3!  174!

; Set Time to 0700 Hours
00C0: set_current_time  7?  00?

; Set Time Cycle and weather
;0 = Automatically change weather and day and night use "data\timecyc.dat"
;1 = Cloudy
;2 = Rainy
;3 = Fog
;4 = Fine
;5 = Rainy
;6 = Black Sky with yellow sun like

01B6: set_weather  0?
0111: set_wasted_busted_check_to  0? (disabled)

004E: end_thread

;-----------------Mission 1----------------------
; Orginally: Your First Mission is coded here

:MISSION_1  



Now you have Empty mission and can start work with your mod Easily. if you compile this code it's work without any problem in VC. and we are not have any mission, marker, parked car, etc on map. smile.gif

Now we need to make marker on our map to everytime player hit this the Mission 1 started.

for make marker we must put our marker code in initial section before line

CODE

004E: end_thread


I've did use this code for this section for make a marker and execute the first mission:
(don't forgot to add it before the end_thread)

we have loop on this code so it's show the marker until the player hit the marker

CODE


:M1_Marker_Creator
0001: wait 1000& ms
02A7:  1@ = create_icon_marker_and_sphere  0? at  257.844! -1319.517! 10.090!

:MARKER_LOOP
0001: wait  0? ms
00D6: if  0?
00FF: actor $PLAYER_ACTOR 0? near_point_3d_on_foot 257.844! -1319.517! 10.090! radius  1.0!  1.0! 2.0!
004D: jump_if_false £MARKER_LOOP
0164: disable_marker  1@
417: start_mission  1?



for change the marker icon on the radar you need to change the marker number ( 0? on this code ):

CODE

02A7:  1@ = create_icon_marker_and_sphere 0? at  257.844! -1319.517! 10.090!


the list of the marker logos available here:

0 – Small purple dot
1 – Large player type icon
2 – Small arrow
3 – The ‘N’ Icon (North on the Map)
4 – The ‘A’ Icon
5 – The ‘B’ Icon
6 – The ‘C’ Icon
7 – The ‘D’ Icon
8 – The ‘K’ Icon
9 – The ‘L’ Icon
10 – The ‘P’ Icon
11 – The Spade Icon
12 – The Anchor Icon
13 – The Tree (Malabu Club) Icon
14 – A Funny sort of splat icon, not sure what it is meant to be
15 – A Clapper board (used for the film studio)
16 – The Gun Icon
17 – The Voodoo Icon
18 – The Hammer Icon
19 – The Tape Icon (Save Game Icon)
20 – The Pink ‘P’ Icon (Pole Position Club Icon)
21 – The Cherry Icon (Cherry Poppers Icon)
22 – The Yellow ‘K’ Icon (Kuffman Cabs Icon)
23 – The Skull Icon (Bikers Club Icon)
24 – The Dollar ‘$’ Icon (Printworks Icon)
25 – No Icon
26 – The Sun Icon (Sunshine Autos Icon)
27 – The Re-spray Icon
28 – The T Shirt Icon
29 – The ‘V’ Icon (Tommy’s Home Icon)
30 – The Phone Icon
31 – A Yellow ‘W’ Icon (I have not seen before)
32 – A Yellow Flag or Ice-cream (I have not seen before)
33 – Some Sort of Fish Icon (I have not seen before)
34 – Some sort of red symbol
35 – Red ‘V’ on a Black background
36 – Blue ‘V’ on a White background with some red @ the bottom
37 – A Simple drawing of the devil?
38 – A Red Heart Icon
39 – Red ‘W’ on a green background


ok now we have a marker with icon on the radar and sphere on the map and when player hit this mission one is loaded but the engine crashed cuz we not have code for mission 1.

you can use this code for mission one if you don't know how you must make a mission and don't like the engine crash:

CODE

;-----------------Mission 1----------------------
; Orginally: noname

:MISSION_1  
03A4: name_thread "M_1"
0050: gosub £M1_START
00D6: if  0?
0112: wasted_or_busted
004D: jump_if_false £M1_FAIL

:M1_START
0317: increment_mission_attempts
0004: $ONMISSION =  1?  \\ integer values
0001: wait  0? ms
054C: use_GXT_table "M1"
00BC: text_highpriority "M1_1"  8000& ms  2?
03C3: set_timer_with_text_to  25600?? type  1? text "ASM3_11" \\ TIME:

:M1_FAIL
00BA: text_styled "M_FAIL"  5000& ms  1? \\ MISSION FAILED!
0050: jump ££M1_Marker_Creator
004E: end_thread


use the codes above instead of this codes:

CODE

;-----------------Mission 1----------------------
; Orginally: Your First Mission is coded here

:MISSION_1  


Hope this tutorial help you to make better mods. smile.gif

Bad~Boy#17
  • Bad~Boy#17

    duh

  • Members
  • Joined: 29 Aug 2007

#2

Posted 05 May 2008 - 06:52 PM

A very usefull tutorial, thanks icon14.gif cookie.gif

metalistas2
  • metalistas2

    Drop da bass

  • Members
  • Joined: 10 Jun 2008

#3

Posted 10 June 2008 - 04:21 PM

NICE MAN TNX cool.gif cool.gif tounge.gif cookie.gif

gtamodder
  • gtamodder

  • Members
  • Joined: 12 Sep 2007

#4

Posted 12 June 2008 - 04:07 PM

Nice tutorial, this was helpful. happy.gif

Black Ghost
  • Black Ghost

    Square Civilian

  • Members
  • Joined: 16 Jan 2008

#5

Posted 18 June 2008 - 11:12 AM

cool thanxs man , you can eat now cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif cookie.gif

ms.cooldude
  • ms.cooldude

    The power is in your hands

  • Members
  • Joined: 24 Oct 2005

#6

Posted 01 July 2008 - 07:46 PM

Thanks a lot, very useful cookie.gif cookie.gif

If it is possible, could you create the icon number list for GTAIII, it would be much apreichiated. biggrin.gif

metalistas2
  • metalistas2

    Drop da bass

  • Members
  • Joined: 10 Jun 2008

#7

Posted 14 July 2008 - 03:28 PM

Thx

akkilla
  • akkilla

    Player Hater

  • Members
  • Joined: 16 Jul 2007

#8

Posted 28 July 2008 - 12:39 PM

would this work with gta lc?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users