Zalandrus2006-12-20 00:11:36
Another Nexus question!
I want to create something (I don't know if it's an 'alias') that's more than one word. For instance, I'd do TELLMENTOR BOB and it would link to TELL BOB GET A MENTOR!.
Basically, it would get the target of some action from the second word I enter...is this even possible with Nexus?
I want to create something (I don't know if it's an 'alias') that's more than one word. For instance, I'd do TELLMENTOR BOB and it would link to TELL BOB GET A MENTOR!.
Basically, it would get the target of some action from the second word I enter...is this even possible with Nexus?
Daganev2006-12-20 00:50:33
I do this for tageting..
for example, alias T does
#Set target $1
So when I type T RAT it sets my $target variable to "RAT"
Another option is something like
Physical blunt: {d:armourBlunt}
This is a trigger that sets the variable "armourBlunt" to whatever the digit is.
for example, alias T does
#Set target $1
So when I type T RAT it sets my $target variable to "RAT"
Another option is something like
Physical blunt: {d:armourBlunt}
This is a trigger that sets the variable "armourBlunt" to whatever the digit is.
Rika2006-12-20 19:28:48
Can't make multi word aliases. I guess you can always do TELLMENTORBOB instead
Daganev2006-12-20 19:56:52
Yes, you can make multi word aliases, I just explained how...
Another example of mine is "UNLOC E W" That unlocks the door to the east, opens it, moves east, then closes and locks the door to the west. I can do that for any two directions that I input.
Another example of mine is "UNLOC E W" That unlocks the door to the east, opens it, moves east, then closes and locks the door to the west. I can do that for any two directions that I input.
Rika2006-12-20 21:27:03
Ah, I misunderstood. The actual alias you insert in the alias slot must be one word, but you can build on it using a variable.
So, in the example of the mentor, the script would like something like this, right?
Alias: tellmentor (or anything else that's oneword)
Script:
$Set tellmentor $1
tell $tellmentor get a mentor!
The $tellmentor can be replaced with some other variable.
So, in the example of the mentor, the script would like something like this, right?
Alias: tellmentor (or anything else that's oneword)
Script:
$Set tellmentor $1
tell $tellmentor get a mentor!
The $tellmentor can be replaced with some other variable.
Daganev2006-12-20 21:28:20
yep!
except I think its #set not $set
except I think its #set not $set
Rika2006-12-20 21:33:43
Ack, I knew I couldn't get a script right without putting a stupid mistake in there...
Zalandrus2006-12-20 21:40:58
Ah, I see, so anything after you type in after the alias it'll assume is 1 for the purposes of '$1'?
And when you do the UNLOCK command, the E becomes the $1, and W the $2? And I take it they match whole words after the alias for this numbering?
And when you do the UNLOCK command, the E becomes the $1, and W the $2? And I take it they match whole words after the alias for this numbering?
Daganev2006-12-20 21:44:16
Yep. There is actually quite a bit you can do with it, if you read the help files.
Nexus is pretty powerful in certain areas, but its just really bad when it comes to time sensitive things, such as fighting Anything thats not so time sensitive, its really flexible.
Nexus is pretty powerful in certain areas, but its just really bad when it comes to time sensitive things, such as fighting Anything thats not so time sensitive, its really flexible.