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
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Thu May 02, 2002 8:02 am   

Nothing fancy please.
 
Maby Im just using a program that is way to powerful for me but I want to make a macro that just imputs what I type nothing fancy. I want to use symbols and such to make ASCII maps on command so I will also need to know how to make a no frills trigger. Thank you very much.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 02, 2002 8:51 am   
 
You don't need a macro. Inputting what you type is the default action. Just press the Enter key at the end.

A nofrills trigger is
#TR {phrase to set off trigger} {action to take}
For more information click the help button and look for #TRIGGER in the Commands section of the table of contents.

LightBulb
Vague questions get vague answers
Reply with quote
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Thu May 02, 2002 8:59 am   
 
Im making maps on notes and they are a lot of typing. I wan to make a macro so I can just hit Alt-F1 and pow instant note map thing for any one who wants one. When I use symbols in the macro it ouputs code not pain old ASCII. I need to use brackets and or parentheses. And a few other symbols to make a good map. Any way just to turn off scripting and output good old ASCII.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu May 02, 2002 11:40 am   
 
You lost me there right about: "I'm making maps..."

Could you please explain a bit clearer what you want to do, with some examples and some sample MUD output if applicable?

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 02, 2002 3:32 pm   
 
26 lower-case letters
26 UPPER-CASE LETTERS
10 digits
that's 62, isn't that enough?

If you need to use special characters, precede them with the ~, known in zMUD as the quote character. You may be able to do this with the %quote function or you might have to do it manually.

You could also change/disable the special character assignments for the characters you want to use in these maps in Preferences. You may be able to change these during the script with #DEFAULT and #NODEF.

You can turn off parsing with #VERBATIM. I'm not sure if this will affect scripts or only the command line. If it affects scripts, you won't be able to use it to turn parsing back on since it won't get parsed.

As Kjata says (and as my sig says) you haven't given us much more than a bare hint about what you are trying to do so it's pretty much impossible for us to come up with answers.

LightBulb
Vague questions get vague answers
Reply with quote
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Thu May 02, 2002 7:41 pm   
 

Homes
              (B)     Exit:
               |      B= Path
      (H) (1)-(*)-(1)
       |       |
  (H)-(*)-----(*)-(H) (2)
       |       |       |
      (4) (H)-(*)-----(*)-(3)
               |       |
              (H)     (H)

1: School houses
2: Traitors home (There is a trapdoor under the rug.)
3: This is where the Object brings you if you found the lever.
4: Green House
H: Gnome Home
*: Trail

Wandering Mobs:
Noteworthy Items:


Ok I dont know if this lines up or not the preview is not showing up in Andale Mono for me. And I am guessing that is a mono spaced font.

On the mud I play on I want to make maps for people using ASCII art like above. I don’t want to have to type each note (what I am making the maps on) every time I want to make one. Instead I just want to make a macro that:

get note birch (my container)
remove shadow
hold note
write note
(above ASCII here)
/s
remove note
hold shadow

Then I just give the note to whoever wanted it in the first place. :)
Reply with quote
Sildaren
Wanderer


Joined: 19 Jul 2001
Posts: 59
Location: Germany

PostPosted: Thu May 02, 2002 8:31 pm   
 
I'd save each of the map to a different txt file (with notepad or somthing like that),
then use an alias with a #SEND command.

Say, you've saved the map you posted to the file 'homes.txt' in the zMUD dir.

Now define an alias
#ALIAS writenote {get note birch;remove shadow;hold note;write note;#SEND %1.txt;~/s;remove note;hold shadow}

and you only need to type
writenote homes
to create a paper with that map

(only partially tested)
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri May 03, 2002 2:30 am   
 
Completely tested by Kjata.

As the rest of Sildaren's scripts, works like a charm.

Kjata
Reply with quote
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Fri May 03, 2002 7:08 pm   
 
Thank you. Thank you. Thank you. :)
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