Joined: 15 Jun 2004
|Posted: Sat Nov 13, 2004 12:47 pm Post subject: Better Triggers
|I would like to see a more powerful and better trigger system which includes Object and Room Triggers.
I would like to see global/local variables.
var %variable Value
global $n %variable
^ This will assign %variable to $n
Being able to recall player information while processing such as
if $n has 570
echo $n has $obj(570).name
Some suggestions would be:
where prop could be various sections of an item
$obj(400).flag_[flag] (This would return True if the flag was set)...
Same for people, and mobiles and rooms.
$room(self).vnum = Would return the vnum of the current room.
$room(750).name = Would return the name of room with vnum of 750
$room(6).pcs = Would return the number of PCs in room 6
$mob(self).name = Would return the name of the current mob (useless, but good for scripting structure) - Could use $i
$mob(self).pos = Would return positon of current mob
$mob(400).name = Would return mob (vnum 400)'s name
Also misc functions
$get(6400,5).pc = Would return the vnum/id of the 5th player charcter in room 6400.
$actor = Would return the Vnum/ID of the thing that caused the trigger.
if ispc $n
echo $n who is a $player($actor).sex just walked into the room.
I would liek to see more powerful scripting langauge. Tokens are too much of a hassel to use to replicate global variables...
This would make DAWN SO MUCH BETTER!.