|
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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(...)}.
|
|
|
|
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: Thu Mar 29, 2007 3:18 pm |
Thank you, that worked wonderfully!!!
|
|
|
|
|
|