Ok. I checked again and the button
is clickable, but when I push it, neither the avatar animation nor the object animation play. I checked and made sure that the button, animated object, and the region are Actors and have bounds, so it seems the clickable part is right. Thinking maybe if there was something wrong with the object itself, I created a completely new animation somewhere else in the age and the same thing happened.
Here's the second animations AlcScript:
- Code: Select all
FMMButton:
logic:
modifiers:
- name: FMMButtonClick
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: FMMReg
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:FMMButtonClick
- type: string
value: FMFall
- type: skip
- type: skip
- type: string
value: FMFall
FMMSphere:
animations:
- name: FMMFall
autostart: 0
loop: 1
logic:
actions:
- type: pythonfile
tag: IntStartStopResp
pythonfile:
file: xAgeSDLIntStartStopResp
parameters:
- type: string
value: FMFall
- type: responder
ref: $StartTurn
- type: string
value: 1
- type: bool
value: false
- type: responder
ref: $StopTurn
- type: bool
value: false
- type: responder
tag: StartTurn
responder:
states:
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:FMMTarget
callbacks:
- marker: DoorButtonTouch
receiver: respondermod:$StartTurn
user: 0
waiton: -1
- type: animcmdmsg
params:
receivers:
- 006D:FMMSphere
animname: FMMFall
cmds:
- continue
waiton: 0
nextstate: 0
ncallbacks: 1
waittocmd:
- key: 0
msg: 0
curstate: 0
flags:
- detecttrigger
- type: responder
tag: StopTurn
responder:
states:
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:FMMTarget
callbacks:
- marker: DoorButtonTouch
receiver: respondermod:$StopTurn
user: 0
waiton: -1
- type: animcmdmsg
params:
receivers:
- 006D:FMMSphere
animname: FMMFall
cmds:
- stop
waiton: 0
nextstate: 0
ncallbacks: 1
waittocmd:
- key: 0
msg: 0
curstate: 0
flags:
- detecttrigger
FMMTarget:
logic:
actions:
- type: oneshot
name: FMMTarget
oneshot:
animation: DoorButtonTouch
And here's my SDL file:
- Code: Select all
# Remember not to delete the existing versions when creating new SDL versions!
# Doing so could *corrupt* the vault!
STATEDESC TsoidahlPrad
{
VERSION 1
VAR BOOL SirrusTurn[1] DEFAULT=0
}
STATEDESC TsoidahlPrad
{
VERSION 2
VAR BOOL SirrusTurn[1] DEFAULT=0
VAR BOOL FMFall[1] DEFAULT=0
}
Should there be a reference somewhere to my python file as well?