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
teion
Wanderer


Joined: 03 May 2005
Posts: 72

PostPosted: Thu Apr 02, 2009 3:43 am   

problems removing item from string list
 
greetings,
my current problem is that on a trigger i try to call an alias and for some reason the alias will not fire

the trigger is #trigger {Your party has been disbanded.} {rpi;#T- partystatus}

the alias is #alias rpi {#delnitem pinv 1} partystatus

the variable pinv is a string list but is not in the class partystatus and is the only thing i can think of
that could be the reason its not working
sorry for the noob questions. any help is appreciated
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Apr 02, 2009 5:04 am   
 
You really need to give us more examples of what you're trying to do. Telling us just this basic information doesn't help us at all, and you haven't told us what it IS doing that it's not doing correctly.

#DELNITEM deletes whatever record you want. Assuming party means more than one, you probably just want to do pinv=%null instead. But really, not much we can do without you giving specific examples of what it's supposed to do.

Charneus
Reply with quote
teion
Wanderer


Joined: 03 May 2005
Posts: 72

PostPosted: Thu Apr 02, 2009 5:42 am   
 
on the trigger Your party has been disbanded. I am trying to run the alias rpi which removes the items in the string list pinv and then closes the class partystatus, but the problem is
that when the trigger fires the alias does not fire. im thinking my syntax for using an alias in a trigger is wrong somewhere and I cant figure it out
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Thu Apr 02, 2009 6:04 am   
 
Still doesn't give us ANY information.

My guess is that pinv=%null is what you want instead. *shrug* But without examples, not just your vagueness, we can't really do anything.

Charneus
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Thu Apr 02, 2009 9:24 am   
 
No, charneus, I think you hit it right on the head.

So, teion, replace the #DELNITEM pinv 1 part with just pinv=%null

This will remove all the items in the string list without deleting the variable itself.
Reply with quote
teion
Wanderer


Joined: 03 May 2005
Posts: 72

PostPosted: Thu Apr 02, 2009 1:57 pm   
 
thanks for your help and sorry for vagueness everything worked
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