This is my sdl file:
- Code: Select all
STATEDESC Hayal
{
VERSION 1
VAR BOOL Ride[1] DEFAULT=0 DEFAULTOPTION=VAULT
VAR BOOL RideUp[1] DEFAULT=0 DEFAULTOPTION=VAULT
}
STATEDESC Hayal
{
Version 2
VAR BOOL Ride[1] DEFAULT=1 DEFAULTOPTION=VAULT
VAR BOOL RideUp[1] DEFAULT=1 DEFAULTOPTION=VAULT
}
This is my alcscript for the balloon (the one for the elevator is analogue):
- Code: Select all
RgnEnterKorb:
type: region
regiontype: subworld
region:
subworld: SubworldKorb
RgnExitKorb:
type: region
regiontype: subworld
region:
onexit: 1
physical:
subworld: SubworldKorb
Korb:
physical:
subworld: SubworldKorb
logic:
modifiers:
- tag: AutoClick
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: RgnExitKorb
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: pythonfile
ref: $BoolToggle
actions:
- type: pythonfile
tag: BoolToggle
pythonfile:
file: xAgeSDLBoolToggle
parameters:
- type: activator
ref: logicmod:$AutoClick
- type: string
value: Ride
- type: skip
- type: skip
- type: string
value: Ride
- type: pythonfile
tag: BoolRespond
pythonfile:
file: xAgeSDLBoolRespond
parameters:
- type: string
value: Ride
- type: responder
ref: $AnimRide
- type: responder
ref: $AnimRide
- type: bool
value: false
- type: bool
value: true
- type: responder
tag: AnimRide
responder:
states:
- cmds:
- type: animcmdmsg
params:
receivers:
- 006D:SubworldKorb
animname: Ride
cmds:
- setforewards
- continue
waiton: -1
nextstate: 1
waittocmd: 0
- cmds:
- type: animcmdmsg
params:
receivers:
- 006D:SubworldKorb
animname: Ride
cmds:
- setbackwards
- continue
waiton: -1
nextstate: 0
waittocmd: 0
curstate: 0
flags:
- detecttrigger
SubworldKorb:
type: subworld
animations:
- name: Ride
autostart: 0
loop: 0