Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Tue Nov 29, 2005 5:33 am   

wildcard help in trigger
 
to pick up items i made this trigger:
#tr "picker" {^{@items}} {#var item %lower( %word( %param( %i), %numwords( %param( %i))));get @item}

i did this so i can have 1 trigger to control a bunch of items within a variable in the layout of {Big red boots|deadly dagger|...} and just add new items by using #additem and be able to keep this picker system under control using 2 variables and a trigger.

the problem i've run into is some items i want to pick up are named say flower, but the adjectives before are random, so normally i would use #tr {^* flower} {get flower}. i was wondering if anyone has an idea how to make it so i can still use my variable setup for ease of use and be able to put these wildcards somehow inside?
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Tue Nov 29, 2005 9:17 am   
 
#tr "picker" {^{|%w |%w %w }{@items}}

Something like that should take into account none/some adjectives. You'll need to enable wildcards patterns under Preferences > General Scripting (IIRC).
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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