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
killer78
Beginner


Joined: 23 Mar 2005
Posts: 15

PostPosted: Thu Mar 24, 2005 7:47 pm   

Problematic alias sufix
 
i made a alias that amongst other things will use whatever i type after it to set a variable that works on some of my triggers, the problem start when if me or groupleader forget to set a sufix then it really messes up the my triggs so what i need help to is to make a if statment in the alias that (gt Need a sufix for this to work) and not do what the alias normally do unless a sufix is presented
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Mar 24, 2005 11:32 pm   
 
I am sorry. I can not understand what your problem is. The massive lack of puntuation and coherent thought in your post has left me confused. While I very much would like to help, I have no idea where to begin. No disrespect is intended, I simply can not seem to follow your thought in this matter. Please post a clear description of your problem. Include your existing script and statements about what it doesn't do and what you want it to do.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
killer78
Beginner


Joined: 23 Mar 2005
Posts: 15

PostPosted: Thu Mar 24, 2005 11:44 pm   
 
i'll try to make it less confusing here
I got a alias named TT1 that do the following
#T+ TT1 class
TT1=%1
the tt1 var i in some other triggers to cast spells at them, so i want this alias to need a sufix to do what it currently do and to use output gt Need sufix blabla if no sufix is present
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Fri Mar 25, 2005 9:22 am   
 
Give it another shot killer, we're getting there. This is what I think I'm reading...

Quote:
I have an #ALIAS, a #VARIABLE and a #CLASS all named "TT1".
The TT1 #ALIAS, when executed, does this:

1. Enables the #CLASS named TT1
2. Sets the #VARIABLE TT1 equal to the first word of the TT1 #ALIAS argument

I use the TT1 #VARIABLE in several #TRIGGERS which deal with casting offensive spells. okjhs oisdi oiasdgh oiahsdgdh aoidgh oihd oiadgh oidshj oi oad ook oasdk oiak oadk


It was going so well, then my reading ability went to hell. One more try, and I'm sure we'll get it. Will you explain to us what 'gt' is?

Please give examples of (arguments?) with and without suffixes. When you execute your TT1 #ALIAS, what do you want to assign to the TT1 #VARIABLE?

Does this work?
TT1=%-1

We all really want to help, but how many times should we be expected to reply to gobbledy-gook posts just to get some useful information? If you truly want help with this (and you have come to right place), then please form your posts with us in mind - pretend you are us and reread your posts. Would you know how to respond?
Reply with quote
killer78
Beginner


Joined: 23 Mar 2005
Posts: 15

PostPosted: Fri Mar 25, 2005 3:29 pm   
 
sorry for my bad english as you probably guess it is not my native language
1) yepp got 1 #alias #class and #variable named TT1
here is the alias as it look atm
#T+ TT1 class
TT1=%1

the thing i want this alias to do if i get get a argument for instance TT1 Web
will make my cleric use spells like remove poison and such automatic whenever he see @TT1 is poisoned
Problem comes if i just type TT1 then my trigger goes amok if i'm in same room as any char showing effects from posion

So I'm looking for help to get a if statment or such worked into this trigger so it wont fire unless i have a argument after it
or just to fire gt need sufix for TT to work.

gt is the mud command for grouptell
the 2 lines is all thats in my alias
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Sat Mar 26, 2005 8:42 am   
 
If a trigger is causing problems, then that is probably where the #IF command should be. There is nothing wrong with your alias and I wouldn't know how to change it to stop a trigger from firing.

Paste your complete trigger here so we can see what is happening, please.
Reply with quote
killer78
Beginner


Joined: 23 Mar 2005
Posts: 15

PostPosted: Sat Mar 26, 2005 6:41 pm   
 
#TRIGGER {(@TT1) shivers uncomfortably from effects} {cast 'cure poison' @TT1}
this is my trigger for remove poison on whoever is in my TT1 variable
if TT1 is empty then i start casting cure poison on myself if anyone at all in room shows effect from poision Got several other trigers that gets affected the same way
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Sun Mar 27, 2005 2:53 am   
 
#TRIGGER {&TT1 shivers uncomfortably from effects} {cast 'cure poison' @TT1}

How bout dat?
Reply with quote
Hazmeech
Novice


Joined: 27 Mar 2005
Posts: 31

PostPosted: Sun Mar 27, 2005 5:22 pm   
 
put a line in your alias
#IF ("%-1" = "") {#ECHO no parameter} {#ECHO parameter present}
Reply with quote
Carabas
GURU


Joined: 28 Sep 2000
Posts: 434
Location: USA

PostPosted: Wed Mar 30, 2005 3:16 pm   
 
As incoherent as the OP was, I got the gist of the problem he was having. The problem could be solved many ways, but he asked for a solution using his alias.

I may be a little late, but here goes.

Code:
Alias: TT1
Command: #IF (!%null(%1)) {
#T+ TT1 class
#VARIABLE TT1 {%1}
} {
#PROMPT TT1 "You did not supply an argument for this alias!"
#T+ TT1 class
}
_________________
Carabas
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Thu Mar 31, 2005 9:12 am   
 
Heh! That makes perfect sense to me now. I tried to understand, but I'm no GURU.
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