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

Joined: 29 Dec 2008
Posts: 1

PostPosted: Thu Jul 26, 2018 2:32 pm   

Help capturing quest items on Diku MUDS
Hey guys,

I've been doing a lot of research in packages, completed scripts, and just scouring the forums but I haven't found anything that helps. So .. Here I am.

The output that I'm looking to capture is:

You still need to find the following:
A curved halberd.
A jagged spear.
A small dusk of timian herbs.
A rusty curved scimitar.

Now, obviously the item names are random. I already have a window called qitems that I want to post the items to.

My end goal is a lot more grandiose than this - I want this to actually grab the item name, check the database to see if it's in there already or not, and if so push it to another window with all of the data in the database. I know how to do this part, it's capturing the items themselves that I'm struggling with hardcore.

Can anyone help me out?
Reply with quote

Joined: 04 Aug 2002
Posts: 3931
Location: Pensacola, FL, USA

PostPosted: Fri Jul 27, 2018 9:32 am   
We will likely need a state trigger for this.

I will assume there are no empty lines in the middle, yet there would be at the end?

#TR {You still need the following:} {neededItems=""}
#COND {*} {#IF (%line!=%null) {#STATE 1;#ADDITEM neededItems %line}} {within|Param=1}

This checks whether the following line is blank.
If it's not blank, it makes sure it checks the next line too, an adds the contents of this line to the list.
Discord: Shalimar#3679
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