|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Wed Oct 23, 2002 9:36 pm
scope |
is there anyway to limit the scope of a variable to a class? for instance, i have several characters on one mud. i use the same file to hold the setting for this mud. i have an alias like this:
#alias atconnect {#t+ %char}
and i put character specific triggers and alias's in the class for that char. i'd also like to put character specific variables in that class, but can't figure out how. thanks :) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Oct 23, 2002 10:34 pm |
Sure just drag them into the class from wherever they are. Make sure all you character classes are set to disable on connect, then move the #t+ command from the atconnect alias to the trigger that sends your password.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Oct 23, 2002 11:28 pm |
You can do this when creating a variable by using the class parameter. If you don't want the variable to have a default, use _nodef
#VAR varname value default class
#VAR example 27 0 %char
#VAR example2 {this is a string} {_nodef} {%char}
LightBulb
Senior Member |
|
|
|
Emit Magician
Joined: 24 Feb 2001 Posts: 342 Location: USA
|
Posted: Thu Oct 24, 2002 12:23 am |
ah, thanks, thats exactly what i was looking for.
|
|
|
|
|
|