37637598 on 2/5/2004 at 18:09
PLEASE, EXCUSE THE CAPS. IT'S SIMPLY TO SEPERATE THIS MESSAGE FROM THE PROBLEM. MY QUESTION IS, WHY DOES THIS SCRIPT NOT WORK?
I'M NOT QUITE READY TO SHOW MY WHOLE PROGRESS YET SO I'LL GIVE YOU ALL AN EARLY VERSON.
(
http://www.freewebs.com/zich/New%20Folder.zip)
( right click and save to computer )
WHEN YOU DOWNLOAD THE PLUG-IN, START A NEW GAME. THE PROBLEM IS...
THE "CHARGENWALKNPC" SCRIPT WORKS UP UNTIL THE POINT WHERE IT IS SUPPOSED TO DO A MESSAGE BOX.
*****************************************************************
begin CharGenWalkNPC
;this is the guard who walks you through the boat
short state
float timer
if ( menumode == 1)
return
endif
if ( OnActivate == 1 )
return
endif
;done, standing
if ( state == -1 )
if ( GetDistance, Player < 150 )
set timer to timer + GetSecondsPassed
if ( timer > 6 )
set timer to 0
Say "Vo\Misc\chargenwalk2.mp3", "Get yourself up on deck and let's keep this as civil as possible."
endif
endif
endif
;start walking to below deck
if ( state == 0 )
set timer to timer + GetSecondsPassed
if ( timer > 8 )
say "Vo\Misc\Mkb\Hlo_IM007.wav", "Are you here to start trouble, or are you just stupid?"
set state to 5
set timer to 0
endif
;walk on down after pause
elseif ( state == 5 )
AITravel 90, -90, -88
set state to 10
elseif ( state == 10 )
if ( GetAIPackageDone == 1 ) ;he's reached the player
set state to 20
endif
;he's at the PC, start talking
elseif ( State == 20 )
say "Vo\Misc\Mkb\Hlo_IM032.wav", "What? Why do you disturb me?"
set timer to 0
set State to 30
elseif ( State == 30 )
if ( SayDone == 1 )
set timer to timer + GetSecondsPassed
if ( timer > 1 )
set timer to 0
say "Vo\Misc\Mkb\Hlo_IM052.wav", "You've got to be kidding. Everyone knows you're nothing but trouble."
set state to 100
elseif ( State == 100 )
if ( SayDone == 1 )
if ( Xbox == 1)
MessageBox "The LEFT THUMBSTICK moves you, and the RIGHT THUMBSTICK looks around.", "Ok"
else
MessageBox "^ActionForward and ^ActionBack move forward and back. ^ActionSlideLeft and ^ActionSlideRight move side to side, and the mouse looks around.", "Ok"
;MessageBox "W and S move forward and back. A and D move side to side, and the mouse looks around.", "Ok"
endif
set State to 40
endif
;you now have to walk up to dock
elseif ( State == 40 )
EnablePlayerControls
;AITravel 185, 174, 170
AIEscort Player, 12, 195, 100, 170
say "Vo\Misc\Mkb\chargenwalk1.wav", "This is where you get off. Come with me."
set state to 51
elseif ( State == 51 )
set timer to timer + GetSecondsPassed
if ( timer > 8 )
set timer to 0
say "Vo\Misc\Mkb\Srv_IM006.wav", "Keep moving. I'm not feeling social today."
if ( SayDone == 1 )
set state to 50
elseif ( State == 50 )
set timer to timer + GetSecondsPassed
if ( timer > 13 )
set timer to 0
set state to 53
endif
;get him to travel back a little so he turns around
elseif ( state == 53 )
AITravel 185, 174, 170
;face -500 500
set state to 57
;set state to 60
elseif ( state == 57 )
if ( GetAIPackageDone == 1 ) ;he's turned around
set state to 60
endif
;he's at the stairs, tell PC to get up on board
elseif ( state == 60 )
if ( GetDistance, Player <= 200 )
Say "Vo\Misc\chargenwalk3.mp3", "On deck now, prisoner."
set state to -1
endif
endif
ENDIF
endif
ENDIF
endif ;this is end of big elseifs for CharGenState
end CharGenWalkNPC