|
impyplayer Beginner
Joined: 02 Nov 2008 Posts: 10
|
Posted: 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! |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue May 24, 2011 3:04 pm |
In addition, you have "#i" in one part of that code instead of "#if".
|
|
|
|
impyplayer Beginner
Joined: 02 Nov 2008 Posts: 10
|
Posted: Tue May 24, 2011 3:43 pm |
Fixed! Thanks to both of you for the help.
|
|
|
|
|
|