Main
Projects
Art
Music
Scripting
LiveJournal
Forum
Links
Vehicle Park
by James `SPAM Man' Paige

This script remembers where you kept your vehicles. Now will you stop asking James to implement that option? ^_^
One great feature of this particular script is that it can remember two vehicles' positions. Remember to make the first script autorun on your map and change the numbers to fit your game.


include, plotscr.hsd   #language definition

#---------------------------------------------------------

define script (1,Map Autorun,0)
define script (2,Remember where I parked,0)

#---------------------------------------------------------

global variable(1,used vehicle)
global variable(2,vehicle X)
global variable(3,vehicle Y)
global variable(4,used other vehicle)
global variable(5,other vehicle X)
global variable(6,other vehicle Y)

#---------------------------------------------------------

script,Map Autorun,begin
  if (used vehicle)
  then,begin
    # replace the 0 with the NPC number of your vehicle
    set NPC position(0,vehicle X,vehicle Y)
  end
  if (used other vehicle)
  then,begin
    # replace the 1 with the NPC number of your vehicle
    set NPC position(1,other vehicle X,other vehicle Y)
  end
end

#---------------------------------------------------------

script,Remember Where I parked,begin
  # replace the 0 with the NPC number of your vehicle
  set variable(vehicle X,NPC X(0))
  set variable(vehicle Y,NPC Y(0))
  set variable(used vehicle, true)
  # replace the 1 with the NPC number of your vehicle
  set variable(other vehicle X,NPC X(1))
  set variable(other vehicle Y,NPC Y(1))
  set variable(used other vehicle, true)
end

#---------------------------------------------------------

Site layout (c)2000 Jennifer Raby. Used by permission.