|
fjonas Newbie
Joined: 07 Dec 2004 Posts: 5
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
fjonas Newbie
Joined: 07 Dec 2004 Posts: 5
|
Posted: 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. |
|
|
|
Firey Wanderer
Joined: 30 Dec 2003 Posts: 61 Location: Norway
|
Posted: 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} |
|
|
|
fjonas Newbie
Joined: 07 Dec 2004 Posts: 5
|
Posted: 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 |
|
|
|
|
|