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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Thu Mar 29, 2007 2:19 pm   

Help: Syntax Error
 
Hi this is my code:
Code:

#CLASS {PowerTrainer} {disable}
#VAR powerTrainerObject {per xib|per yav|per kat|per pro|per mani|per stell|per moonbeam|per watcher|per transduction|per Perception|#var maxrt 2;#var iPT 1;#T+ MindStatus;#T+ MindStatusAlarm;per planet}
#VAR iPT {14} {1}
#VAR powerEndVar {#var maxrt 2
#var iPT 1
#T+ MindStatus
#T+ MindStatusAlarm
per planet}
#ALARM "powerTrainerAlarm" {@maxrt} {%item( @powerTrainerObject, @iPT);#add iPT (+1);#T- powerTrainerAlarm} "" {disable}
#TRIGGER {Roundtime} {#T+ powerTrainerAlarm}
#TRIGGER "powerTrainerTR1" {STATE OF MIND FOUND} {#IF (@skillStatus <= 12) {#T+ powerTrainerAlarm} {#ECHO {PowerTrainerDone};#T- PowerTrainer;#var maxrt 2}}
#CLASS 0


The part giving me a problem is the: "#var maxrt 2;#var iPT 1;#T+ MindStatus;#T+ MindStatusAlarm;per planet" line. When I enter it in the command bar it turns on the other class, sets the variable and puts "per planet" to the command prompt.

However, when it is in the string list, it outputs everything to the MUD in a manner it doesn't seem to understand. Someone help.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Mar 29, 2007 2:25 pm   
 
I assume the problem comes from the alarm. You haven't told zMUD what to do with the item once it's returned, which works fine for single-command items but will balls up multiple commands. Change it from just %item(...) to #exec {%item(...)}.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
NeverNor
Novice


Joined: 18 Nov 2006
Posts: 32

PostPosted: Thu Mar 29, 2007 3:18 pm   
 
Thank you, that worked wonderfully!!! Very Happy
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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