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
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri Dec 31, 2004 3:02 am   

Multiline #PROMPT?
 
Is there any way to #PROMPT for multiple lines, and then put those multiple lines in the variable as a string list? IE I prompt for the variable @load and put in:

a leather helmet
a thick mail shirt
a set of chainmail sleeves
a thick pair of leather work gloves
a razor studded mace
a leather belt
a soft leather pouch
a pair of thin metal leggings
a pair of animal-fur boots
twenty gold crowns
thirteen copper pennys
a raw side of meat

which would then put all of those in the variable @load as a stringlist.

If you can't do this with @PROMPT, is there any other easy way to paste in several item's in a script?

I am trying to make a database of the different loads of smobs (Super mobs) in the game I play, but unfortunately... it is almost impossible to capture these directly from the mud, as it isn't always the same. I've been manually doing:

#VAR load {a leather helmet
a thick mail shirt
a set of chainmail sleeves
a thick pair of leather work gloves
a razor studded mace
a leather belt
a soft leather pouch
a pair of thin metal leggings
a pair of animal-fur boots
twenty gold crowns
thirteen copper pennys
a raw side of meat}

and then #VAR load %replace( @load, ";", "|") to get it into a stringlist. But this is rather cumbersome... is there any easier way?
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sat Jan 01, 2005 11:34 pm   
 
there is always away to do this but I think your only giving some of the information.

This looks like a loot or maybe a stash of stuff, in either case it would have tag lines before and after it
Like: You find on the body:
a something etc....

Having all that info would be helpful in tailering a script for you, if you want just a general idea
then yes it can be done.
_________________
megamog75 Smile
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Sun Jan 02, 2005 12:45 am   
 
This is loot from a corpse, but it wouldn't work to capture directly from the mud, because it isn't always me looting the corpse, since these smobs require multiple people to kill. Also, there are things inside containers that the smob was carrying that would not show up when looting, as well as other miscelaneous complications, like if I was carrying too much already to loot everything from the corpse. Therefore, I edit all the things by hand and put it in manually instead. I was just hoping there was an easier way to get all the info into the @loot.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Sun Jan 02, 2005 2:19 am   
 
You can use a while-loop. read about it in the helpfiles... then use the prompt to push new values into the variable-list, then make a choice of any preferable word or non-word to match the while-loop. Upon leaving the loop remove the word/non-word from the string-list and you'll have yourself a functional "multi-line" prompt. However, I still believe that you can capture it.

There's a way to trigger on a first line then to capture any lines after it until you meet the next match.. this using the #cond trigger-type...
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Jan 06, 2005 6:27 am   
 
I know how to use condition triggers, misterbalrog, still wouldn't work. Especially since, if someone else loots the corpse, I have to manually ask them what was in the different containers, etc. I could easily script it if I was doing this solo, but... *shrug*

Anyway, thanks for the idea about the prompt, but it'd be easier to just use my current method. It's easier to copy/paste everything at once rather than line by line.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
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