|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Wed Aug 24, 2011 5:20 pm
map script not executing |
I have a couple scripts where I perform an action in a room, move to another room, perform a similar action, etc. To this end, each room has a script assigning variables for its particulars and executes an alias. One of these scripts runs flawlessly every time so I know CMUD is configured properly, but the other doesn't run at all.
To be very specific, here is the code for one particular room:
Code: |
<class name="Room12" keyword="Room12" enabled="false" id="540">
<onenable>#IF (@/skilltraining/wallclimbing) {climbpractice wall empathpole}</onenable>
</class> |
The variable "wallclimbing" is just boolean to turn on and off the script, which correctly shows "@wallclimbing = 1" when I hover my mouse over it in the Package Editor. The alias "climbpractice" works perfectly if I execute it manually. When I enter the room, the class is being turns on, but the onenable script doesn't run. If I right-click the room on the mapper and select "Execute scripts", nothing happens. If I copy the #IF statement and paste it into the command line, it executes correctly. Any suggestions on settings to check or other experiments I can run to track down this error? |
|
_________________ .geniusclown |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Aug 24, 2011 8:40 pm |
do you get any different results if you moved everything from the onenable script to an onroomenter event?
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Thu Aug 25, 2011 1:45 pm |
I'm not quite sure how to do that. All I want is to execute an alias when I enter specific rooms.
|
|
_________________ .geniusclown |
|
|
|
|
|