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


Joined: 30 Dec 2003
Posts: 22
Location: USA

PostPosted: Wed Mar 03, 2004 11:39 pm   

DB to Stringlist help
 
I'm using zMud to play on Medievia. Part of the game involves doing "trading" between places. You can value items to be traded at the different trade posts.

What I've done is to capture the output of the values and placed them into a database...

#alias valueall {#var ValLoc { %pick( "P:Choose your current location.", @Posts.postnames)} {%null} {Modes|Trading|Variables}
#forall @goods {value %i covered}}

The user can pick the current post he is at from a picklist and it is placed into a variable called @ValLoc

A trigger captures the information as it is output to the screen and places it into a database.

#trig {can carry * of (*). We'll pay you (*) gold for that.} {#addkey {@{ValLoc}} {%1} {%replace( "%2", ",", "")}}

So far, so good.. all works as planned.

Now what I am TRYING to do is to show a window/picklist that displays the values that have been captured in the database. I can display them in the normal output window using #showdb, but thats not what I'm trying to do.

I'm looking at possibilities of sorting the list according to values received, being able to select one of the values and seeing where it comes from (I have a database set up with goods locations), etc...

Any help from the Gurus on how to move the db into a picklist?

Thanks.
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