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
impyplayer
Beginner


Joined: 02 Nov 2008
Posts: 10

PostPosted: Tue May 24, 2011 2:24 am   

Script no longer working with CMUD
 
I haven't played Imperian since I originally upgraded before the this latest time but went in today to see what was up and I can't get my instrument tracker to work. It's just a very small script that I got off the Imperian forums a while back but it now doesn't seem to know how to switch anything. It flashes the code from the alias on the screen when I got to use it and nothing happens:

The alias I am using is:
instr panpipes tower;play panpipes;sing battlemarch %if( %1, %1, @friend)

and it calls the instr alias (this is the part that shows up on the screen but doesn't do anything):

#if {%2} {#var towield {%1|%2}} {#var towield {%1}};#noop;#i{%ismember(@wieldedleft,@towield)} {towield = %delitem(@wieldedleft,@towield)} {unwield left};#noop;#if {%ismember(@wieldedright,@towield)} {towield = %delitem(@wieldedright,@towield)} {unwield right};#noop;#forall @towield {wield %i}

Both the wieldedleft and wieldedright variables are tracking what is in my hands but nothing shows up in the towield variable when I enter an alias. If anyone can figure out what needs to be fixed I’d appreciated it, thanks!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue May 24, 2011 2:19 pm   
 
First of all, the proper format is:

#IF (expression) {true} {false}

not

#IF {expression} {true} {false}

Second, you don't need the #NOOP, though it doesn't hurt anything.

See if the #IF change fixes it.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue May 24, 2011 3:04 pm   
 
In addition, you have "#i" in one part of that code instead of "#if".
Reply with quote
impyplayer
Beginner


Joined: 02 Nov 2008
Posts: 10

PostPosted: Tue May 24, 2011 3:43 pm   
 
Fixed! Thanks to both of you for the help.
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