IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Triggers, Writing Wildcard Triggers
Guest_Jake_*
post Aug 14 2004, 04:47 PM
Post #1





Guests






Okay, so. Savitar is like my favorite client in the world, but I haven't been able to figure out, for the LIFE of me, how to write a wildcard trigger.

On MUSHclient, the wildcard for a spell trigger would look like this:

Your Fire Bolt * *!
[*]

With * being the wildcard.

The response would then be, flee^weave 1 'fire bolt' %2.

How would I translate that to Savitar Wildcards?

Please help!
Go to the top of the page
 
+Quote Post
Guest_Axl@Alter Aeon_*
post Aug 17 2004, 07:51 PM
Post #2





Guests






First off, forget everything from MUSHclient.

You can specify the 'markers' in Savitar, but I use the ones that come by default, they're easy enough. (## for local command, %% for macro marker, and $$ for event wildcard marker).

So anyway, to pick locked items on my mud, i wrote a trigger:

pick $$dor (matching is exactly as found, INPUT)
Then the reply is:
'you can help if you want, I'm gonna try to pick %%dor

The $$dor specifies the wildcard, whatever i try to pick (door, chest, whatever) (you can check your 'Macros' tab in the 'Events' window to see that a macro called 'dor' has been created, with a value of whatever you typed after the target) and then %%dor calls that wildcard into action (pick door, pick chest, pick whatever).

Hope this helps.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2nd November 2024 - 11:46 AM