D'Lanor wrote:Somehow I don't think you used my actual script (again) so I won't try to troubleshoot this.
Well yes, and no
Of course that every time, at first, I tried Your code exactly as You have written it.
But like I sad: something always was wrong.
So I was tweeking, and testing (tweekeing, and testing, tweekeing, and testing etc.) Your code to:
a) learn priciples behind it
b) find out what I was doing wrong.
Anyway I find out what was wrong. In this code:
- AlcScript Show Spoiler
- Code: Select all
RegisterKI:
logic:
modifiers:
- name: RegisterKI
cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: nexusLBReg
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: pythonfile
ref: :NexusStation
actions:
- type: pythonfile
name: NexusStation
pythonfile:
file: NexusStation
params:
- type: activator
ref: logicmod:RegisterKI
- type: responder
ref: :insertKiResponder
- type: responder
name: insertKiResponder
responder:
states:
- cmds:
- type: oneshotmsg
params:
receivers:
- oneshotmod:InsertKIHandOneShot
callbacks:
- marker: HandIn
receiver: respondermod:insertKiResponder
user: 0
waiton: -1
- type: soundmsg
params:
receivers:
- 0011:InsertKIEmitter
callbacks:
- type: eventcallbackmsg
params:
receivers:
- respondermod:insertKiResponder
user: 1
event: 1
cmds:
- addcallbacks
- play
waiton: 0
- type: notifymsg
params:
receivers:
- pyfilemod:NexusStation
waiton: 1
- type: oneshotmsg
params:
receivers:
- oneshotmod:InsertKIHandOneShot
callbacks:
- marker: HandIn
receiver: respondermod:insertKiResponder
user: 2
waiton: -1
- type: soundmsg
params:
receivers:
- 0011:InsertKIEmitter
cmds:
- play
- setvolume
volume: 0.8
waiton: 2
nextstate: 0
ncallbacks: 3
waittocmd:
- key: 0
msg: 0
- key: 1
msg: 1
- key: 2
msg: 3
curstate: 0
flags:
- detecttrigger
In this
- section Show Spoiler
- Code: Select all
actions:
- type: pythonfile
name: NexusStation
pythonfile:
file: NexusStation
params:
- type: activator
ref: logicmod:RegisterKI
- type: responder
ref: :insertKiResponder
It should be "parameters:" insetad of "params:"