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
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: Tue Apr 04, 2006 7:06 am   

help plz
 
---------------------------------------------------------------------------
* Something1
* Something2
* Something3
* Something...
* SomethingN
[Hit Enter]
* SomethingN+1
* Something...
* SomethingN+X
---------------------------------------------------------------------------

K this is the input I am dealing with usually no more than 12 Somethings but it varies and the hit enter is usually in there somewhere but sometimes not
I want to assign each Something to a macro e.g. hit F1 get and echo Something1. I want it to reset each time it gets new input it gets the bars at the beginning and end so I think that will help but I still don't know where to begin. Thx for the help in advance.
Reply with quote
prestojosh
Beginner


Joined: 21 Feb 2006
Posts: 19

PostPosted: Tue Apr 04, 2006 10:01 am   
 
Could you describe in a bit more detail?

I'm thinking assign the macro to
#SAY Something@count
#ADD @count 1

and another macro/trigger to reset the count to 1 when your line is reached.
_________________
-Presto
Reply with quote
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: Tue Apr 04, 2006 5:08 pm   A bit more detail
 
OK was trying to simplify things cause I just need the general principal. I was thinking I needed an array of some sort and didn't know how to do them. But here are the specifics: This is a quest card function I am trying to write
>This denotes the beginning of the card.
------------------------Card--------------------------------
>After this there are several items generally 12 or 13

* A morris cap
* Some black berries
* A Jar of Pickles
>I have speedwalks to all these things
>Somewhere in here it usually has a
[Hit Enter]
>Then a few more items
*A sword of Darkness
>At the end there is a
-------------------------------------------------------------
Basically I want to assign my speedwalks to macros when I view the card. So I can just hit F1 or F3 if I want to run_morris_cap or run_a_jar_of_pickles. This may be less complicated than I am making it I have dynamic arrays on the brain and I am not totally familiar with zMud programming. Thanks again.
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