The Dawn Of Time
The Official Forums for the Dawn Of Time Mud Codebase
 
Log in Register FAQ Memberlist Search The Dawn Of Time Forum Index Goto the Official Dawn Website

Better Triggers

 
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Suggestions
View previous topic :: View next topic  
Author Message
Aether



Joined: 15 Jun 2004
Posts: 9

PostPosted: Sat Nov 13, 2004 12:47 pm    Post subject: Better Triggers Reply with quote

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
endif

Some suggestions would be:

$obj(vnum).prop
where prop could be various sections of an item
$obj(400).name
$obj(400).shortdesc
$obj(400).long
$obj(400).v1
$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
ect...

Mobiles:
$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
ect...

Players:
$player(<id>).name
ect...

Also misc functions
$get(6400,5).pc = Would return the vnum/id of the 5th player charcter in room 6400.
ect.
$actor = Would return the Vnum/ID of the thing that caused the trigger.


Example:
if ispc $n
echo $n who is a $player($actor).sex just walked into the room.
endif

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!.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Dawn Of Time Forum Index » Suggestions All times are GMT + 13 Hours
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


Powered by phpBB © 2001-2005 phpBB Group
Theme created by Vjacheslav Trushkin