|
teion Wanderer
Joined: 03 May 2005 Posts: 72
|
Posted: 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 |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
teion Wanderer
Joined: 03 May 2005 Posts: 72
|
Posted: 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 |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
Dumas Enchanter
Joined: 11 Feb 2003 Posts: 511 Location: USA
|
Posted: 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. |
|
|
|
teion Wanderer
Joined: 03 May 2005 Posts: 72
|
Posted: Thu Apr 02, 2009 1:57 pm |
thanks for your help and sorry for vagueness everything worked
|
|
|
|
|
|