Schmelz
Vertrauter
Als Basis nimmst du Kahmuls Script von oben, aber für den Trigger, also OnTrigger-Block. Die Message machst du mit Message"bla" und den Knall (meinst du akustisch?) mit StreamMusic.
SCN PortalSkript
Short i
Begin OnActivate
if(i == 0)
set i to 1
messagebox"Das Portal ist zerstört. Ich muss einen anderen Weg suchen, um zurückzukehren."
activate
return
endif
End
scn Name des Skriptes
short doonce
begin ontrigger player
if doonce == 0
SetStage MeineQuest Stage
set doonce to 1
StreamMusic Knall.mp3 (oder auch PlaySound xyz.mp3)
messagebox "blablabla."
endif
end
SCN ...
Begin OnActivate
MessageBox"..."
End
scn Name des Skriptes
short index
float timer
begin ontrigger player
if dindex == 0
SetStage MeineQuest Stage
set index to 1
StreamMusic Knall.mp3 (oder auch PlaySound xyz.mp3)
elseif index ==1
set timer to timer + getSecondsPassed
if timer >= Wartezeit(sekunden)
set index to 2
endif
elseif index ==2
messagebox "blablabla."
set index to 3
endif
end
scn 00InselMagicDoorTriggerSkript
short index
float timer
begin ontrigger player
if index == 0
SetStage 00AriellesWeyeDorfVergessenerSchrein 165
set index to 1
PlaySound AWDMagicDoorKnall
elseif index == 1
set timer to timer + getSecondsPassed
if timer >=1
set index to 2
messagebox "Was war das für ein Knall? Hoffentlich war es nicht das magische Portal."
set index to 3
endif
endif
end
scn 00InselMagicDoorTriggerSkript
short index
float timer
begin ontrigger player
if index == 0
SetStage 00AriellesWeyeDorfVergessenerSchrein 165
set index to 1
elseif index == 1
set timer to timer + getSecondsPassed
if timer >=5
StreamMusic AWDMagicDoorKnall
set index to 2
endif
endif
end
scn 00InselMagicDoorTriggerSkript
short index
float timer
begin ontrigger player
if (index == 0)
SetStage 00AriellesWeyeDorfVergessenerSchrein 165
set index to 1
endif
end
begin GameMode
if (index == 1)
set Timer to Timer + GetSecondsPassed
if (timer >=5)
StreamMusic AWDMagicDoorKnall
set index to 2
endif
endif
end
scn aaDRCyraAllgemSternentorSCRIPT
Begin onTriggerActor
If (Player.GetInCell aaDRCyra0HQ05AltLeg09 == 1)
PlayBink "DRsCyraliaStargate.bik"
Player.MoveTo DRCyra0HrasklXMarkerREF
Elseif (Player.GetInCell aaDRCyra0HQ06Hraskl01 == 1)
PlayBink "DRsCyraliaStargate.bik"
Player.MoveTo DRCyra0AltLeg08XMarkerREF
Endif
End
scn 00InselMagicDoorTriggerSkript
short index
float timer
begin ontrigger player
if (index == 0)
SetStage 00AriellesWeyeDorfVergessenerSchrein 165
StreamMusic AWDMagicDoorKnall
set index to 1
endif
end
begin GameMode
if (index == 1)
set Timer to Timer + GetSecondsPassed
if (timer >=5)
Messagebox"bla"
set index to 2
endif
endif
end