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
fjonas
Newbie


Joined: 07 Dec 2004
Posts: 5

PostPosted: Sun Feb 06, 2005 9:13 am   

Room Script!
 
Hello.

I have a problem. In my mapper I have entered a roomscript. It is as simple as:

@en = stupid human

When I enter I wish to be able to use an alias like 'kill' whish does:

kill @en

This _has_ worked, but now my room scrip doesn't seem to hit? What could it be?

//Jonas
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Feb 06, 2005 8:18 pm   
 
most likely it's the @en = stupid human part. You're not supposed to include the @ in variable names using that syntax, and to ensure you have the right value in the variable, surround "stupid human" with quotes:

en = "stupid human"
_________________
EDIT: I didn't like my old signature
Reply with quote
fjonas
Newbie


Joined: 07 Dec 2004
Posts: 5

PostPosted: Tue Feb 08, 2005 10:00 am   Solved
 
Aye.... it seem removing the @ solved the problem. Luckily I had not implemented it that much yet... =)

But the odd thing is it worked for 2 weeks!?!?!

Thank you again.
Reply with quote
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Wed Feb 09, 2005 11:41 am   
 
If it works to just type KILL HUMAN to attack it.. this should work

#VARIABLE {target} {}

#ALIAS {T} {#VAR target %1}

#ALIAS {k} {kill @target}
Reply with quote
fjonas
Newbie


Joined: 07 Dec 2004
Posts: 5

PostPosted: Thu Feb 10, 2005 9:03 am   Well...
 
It is actually something else it does, so I have to do it this way. But thanks for your reply.

//Jonas
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