7.npc
Sapphire/db/npcs/Tatt/7.npc · 2.0 KB
From the archive sapphire_0.3.zip
Download the archive « Back to the archive contents
#7
names "rosa";
shortdesc "Rosa";
desc5 "Rosa stands here, smiling happily.";
sex female;
* wander 10;
npc_flags [special];
experience 10d10+5;
program
{
character_pointer newbie;
trigger start enabled
created ( )
{
disable( all );
wait( 2 );
game_cmd( ( "tell " + actor.name )
+ " Welcome, my friend. Would you like help getting started?" );
enable( all );
newbie = actor;
}
trigger help_1 enabled
tell ( infix "yes" )
emote ( infix "nods at you" )
{
if ( actor != newbie )
end( );
disable( all );
if ( is_npc( actor ) > 0 )
{
wait( 2 );
game_cmd( ( "tell " + actor.name )
+ " NPCs should not need help." );
}
else {
if ( is_guest( actor ) > 0 )
{
wait( 2 );
game_cmd( ( "tell " + actor.name )
+ " I have no time to waste on the likes of you." );
}
else {
if ( actor.level > 2 )
{
wait( 2 );
game_cmd( ( "tell " + actor.name )
+ " I don't think you need my help." );
}
else
{
wait( 3 );
game_cmd( ( "tell " + actor.name ) + " Okay, first of all, "
+ "on Sapphire all system-type commands (save, quit, etc) "
+ "start with a `$'. Use `$commands' to see a list of all "
+ "available commands, both system and non-system." );
wait( 2 );
game_cmd( ( "tell " + actor.name ) + " Tell me when you are "
+ "ready for your next lesson." );
} } }
enable( all );
}
trigger help_2 enabled
tell ( infix "next" )
emote ( infix "nods at you" )
{
if ( actor != newbie )
end( );
disable( all );
wait( 2 );
game_cmd( ( "tell " + newbie.name ) + " You're all done!" );
enable( all );
newbie = null_character;
}
};
end;