Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
bschenko
Newbie


Joined: 18 Dec 2009
Posts: 8

PostPosted: Fri Dec 18, 2009 2:41 am   

Experiencing troubles with past Zmud targeting system, please help
 
#var target "%proper(%0)"
#cw @target orange
#echo You focus your skills on @target

then I make another alias that is just t with the name being target

so then when I attack someone I can do t billy which will do you focus your skills on billy
then I allow myself to make a vast majority of aliases like swing @target


Please anyone have any ideas how to fix this? This is what I am currently getting.....

4000/4000h 188/500m > You focus your skills on %proper(%0)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Dec 18, 2009 6:26 am   
 
In CMud anything in "" will be translated literally. Remove the "".
_________________
EDIT: I didn't like my old signature
Reply with quote
bschenko
Newbie


Joined: 18 Dec 2009
Posts: 8

PostPosted: Fri Dec 18, 2009 1:28 pm   
 
Well that got rid of the other message, but I still can't target anyone. Now I get this if I type t billy

You focus your skills on

this is the new aliases

#var target %proper(%0)
#cw @target orange
#echo You focus your skills on @target

then when I do this

#var target {%proper (%1)}
#cw @target orange
#echo You focus your skills on @target

I get this result
You focus your skills on ()
Reply with quote
bschenko
Newbie


Joined: 18 Dec 2009
Posts: 8

PostPosted: Fri Dec 18, 2009 2:15 pm   
 
If someone has another targeting system that will also work....I just need to be able to type t billy and then go off of that
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Dec 18, 2009 5:04 pm   
 
In this line, you have an extra space:
Code:
#var target {%proper (%1)}

It should be:
Code:
#var target {%proper(%1)}

And yes, I believe you should be using %1, not %0. %0 does not work. If you want all the parameters of the alias, use %params().
Reply with quote
bschenko
Newbie


Joined: 18 Dec 2009
Posts: 8

PostPosted: Thu Dec 24, 2009 2:48 pm   
 
Okay I got the targeting issue solved, but now I am having issues with the people I am targeting showing up in my triggers orange.
so I do t billy and then t sally

billy remains orange and goes into my triggers as orange, but so does sally. Any ideas anyone? So basically when I type the who list to see the people present in the mud I have Billy as orange and Sally as orange.
Reply with quote
bschenko
Newbie


Joined: 18 Dec 2009
Posts: 8

PostPosted: Thu Dec 24, 2009 3:21 pm   
 
#var target {%proper(%0)}
#echo You focus your skills on @target

aha! What was happening is the second line kept putting the person into my triggers for whatever reason. Problem fixed
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Mon Dec 28, 2009 1:49 am   
 
This line
Code:
#cw @target orange

expands @target, so it makes a trigger with the pattern (for example) "Sally" and the script "#cw orange". What you want is to manually create a trigger in the settings editor with the pattern "@target" and the script "#cw orange". You only need to do this once, and then it will colour whatever @target is, without colouring previous targets.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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