need help with wildcards

by Unknown

Back to Mechanic's Corner.

Unknown2008-01-28 03:54:13
alright, good

anyway, i know the idea of a wildcard, but don't know how to use one here

anyway.. say i'm eavesdropping or such, whatever. and i want to repeat what is said, in a say. or if aperson enters my demesne, or awareness. how would i go about arranging that in nexus?

in other words - *wildcard* has entered your demesne======== leads to (city) you say "*wildcard* has entered my demesne"

You hear action: *wildcard person* says *wildcard statement* === leads to - You say "I hear *wildcard person* saying * wildcard statement*

looking for this on nexus, as i said. hoping to move to cmud or zmud in about a month or more, but i still enjoy nexus
Rika2008-01-28 04:01:46
Trigger:
{w} has entered your demesne.

Script:
ct $1 has entered my demesne.


Trigger:
You hear action: {w} says {*}

Script: (I assume you want to just repeat that)
ct $1 says $2
Shiri2008-01-28 04:09:45
Don't actually do that, by the way, everyone will want to bitchslap you within about 10 seconds.
Unknown2008-01-28 04:20:05
is it JUST like that, or do i need to change the variables?

and mostly wanting to repeat out loud, what i might hear in eavesdropping.
Rika2008-01-28 04:56:17
It's just like that.
Unknown2008-01-28 05:08:43
so, that works, how?

$1 is the first variable in the triggered phrase, $2 is the second, and so on?
Forren2008-01-28 05:10:09
I actually have a demesne announce script that I use. Basically, the entry message activates an alias on the next prompt to print out people entering/exiting. I then store all the names in a temporary list that I loop through on the next prompt. At that prompt, the alias will say that "Entering my meld: " and then just loop through my string list before clearing it.
Eldanien2008-01-28 15:54:05
Stealing this thread. How do I pass off arguments in an alias?

Example, I want an alias tar that accepts an argument and puts it in the tar target variable.

Seems like...

setalias tar settarget tar {%1}

But that winds up putting '{%1}' into the tar variable.
Rika2008-01-29 01:33:33
QUOTE(Eldanien @ Jan 29 2008, 04:54 AM) 481372
Stealing this thread. How do I pass off arguments in an alias?

Example, I want an alias tar that accepts an argument and puts it in the tar target variable.

Seems like...

setalias tar settarget tar {%1}

But that winds up putting '{%1}' into the tar variable.


Are you on Nexus? Either way, I think it's better not to use the ingame alias/targetting system.

For those who are on Nexus, basic targetting script:

Alias:
tar (to use Eldanien's example)

Script:
#set tar $1
Eldanien2008-01-29 03:17:14
Not Nexus, just Rapture commands. It's for an odd project.