What I'd like to do, is make it so when the player drinks the tea, he/she has a coughing fit and collapses, and then teleports to the new map, firing his/her companions along the way, so that they don't tag along.
EDIT: I've written up a script, but it just so happens that I have no idea what I'm doing. Help!
Here's my script:
scn HallucinationSCRIPT
short DoOnce
short TimerCheck
short PushOnce
short SprayOnce
float Timer
;// image space apply
short imageSpaceApplyOnce
short imageSpaceApply
short imageSpaceTimerInit
float imageSpaceTimer
BEGIN onequip player
if DoOnce == 0 && getStage VaultQuest == 10
setStage VaultQuest 15
set DoOnce to 1
else
endif
END
BEGIN GameMode
if DoOnce == 1 && TimerCheck == 0
set TimerCheck to 1
set Timer to 14.6
endif
if TimerCheck == 1
set Timer to Timer - GetSecondsPassed
;/////////////////////////////
;// The imagespace gets applied here
;/////////////////////////////
IF imageSpaceApply == 1
;// init the timer and apply the transition
IF imageSpaceTimerInit == 0
set imageSpaceTimer to 3.99
set imageSpaceTimerInit to 1
ApplyIMageSpaceModifier MS04InjectISFX
ENDIF
ENDIF
;make player cough and fall
if (Timer <= 12.6) && SprayOnce == 1
set SprayOnce to 2
player.addscriptpackage HallucinationPackage
endif
IF ( timer < 9.5 && SprayOnce == 2 )
set SprayOnce to 3
ENDIF
;// countdown to application of the real imagespace
IF imageSpaceTimer > 0
set imageSpaceTimer to imageSpaceTimer - getSecondsPassed
ELSE
ApplyIMageSpaceModifier FadeToWhiteISFX
set imageSpaceApply to 2
ENDIF
;player get up
if (Timer < 0)
enablePlayerControls
player.restoreAV radiationrads 2000
player.removescriptpackage HallucinationPackage
;// start the ISFX
IF imageSpaceApplyOnce == 0
set imageSpaceApply to 1
set imageSpaceApplyOnce to 1
ENDIF
set TimerCheck to 0
set DoOnce to 2
endif
endif
END
short DoOnce
short TimerCheck
short PushOnce
short SprayOnce
float Timer
;// image space apply
short imageSpaceApplyOnce
short imageSpaceApply
short imageSpaceTimerInit
float imageSpaceTimer
BEGIN onequip player
if DoOnce == 0 && getStage VaultQuest == 10
setStage VaultQuest 15
set DoOnce to 1
else
endif
END
BEGIN GameMode
if DoOnce == 1 && TimerCheck == 0
set TimerCheck to 1
set Timer to 14.6
endif
if TimerCheck == 1
set Timer to Timer - GetSecondsPassed
;/////////////////////////////
;// The imagespace gets applied here
;/////////////////////////////
IF imageSpaceApply == 1
;// init the timer and apply the transition
IF imageSpaceTimerInit == 0
set imageSpaceTimer to 3.99
set imageSpaceTimerInit to 1
ApplyIMageSpaceModifier MS04InjectISFX
ENDIF
ENDIF
;make player cough and fall
if (Timer <= 12.6) && SprayOnce == 1
set SprayOnce to 2
player.addscriptpackage HallucinationPackage
endif
IF ( timer < 9.5 && SprayOnce == 2 )
set SprayOnce to 3
ENDIF
;// countdown to application of the real imagespace
IF imageSpaceTimer > 0
set imageSpaceTimer to imageSpaceTimer - getSecondsPassed
ELSE
ApplyIMageSpaceModifier FadeToWhiteISFX
set imageSpaceApply to 2
ENDIF
;player get up
if (Timer < 0)
enablePlayerControls
player.restoreAV radiationrads 2000
player.removescriptpackage HallucinationPackage
;// start the ISFX
IF imageSpaceApplyOnce == 0
set imageSpaceApply to 1
set imageSpaceApplyOnce to 1
ENDIF
set TimerCheck to 0
set DoOnce to 2
endif
endif
END
