Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net