Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Majestic-12, Bing

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » NPC reaction to time
Forum Rules | Mark all | Recent Posts

NPC reaction to time
< Newer Topic :: Older Topic > How could it be implemented

Pages:<< prev 1 next >>
Post is unread #1 Jun 6, 2003, 10:19 am
Go to the top of the page
Go to the bottom of the page

Amalric

GroupMembers
Posts48
JoinedMay 15, 2003

I would like to have some NPC characters that react to the time of day within the mud. This would be especially useful for NPCs like shopkeepers who need to lock their doors after the workday or maybe a royal member who holds court at the same time every day for a specified amount of time. The implementation would be for the NPC to determine the time of day then either change it's habits (sentry to roaming or sleeping to standing) or run a certain mobprog or even just give different greetings (Good Morning/Afternoon/Evening).
Is there something already in the build code to implement this or would this be a job for a mobprog?
Just another part of my "living areas" thoughts.
       
Post is unread #2 Jun 6, 2003, 10:25 am
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

> help mptriggers
Help level: 106
Trigger Optnl Triggering Variable Explanation
------- ----- ------------------- -----------
Act [p] [emotes, socials, actions, bamfs]
Speech [p] [says or tells from same room as mob]
Rand [randomly triggered based on percentile]
Fight [random, within a fight, based on percentile]
Hitprcnt [percent is % of mob's max H.P.]
Greet [entry that mob can see, by mob/player]
Allgreet [entry by a mob/player, regardless if seen]
Entry [when the mob itself enters a room]
Bribe [when a player gives the mob money]
Death [when the mob dies]
Script {hour} [loops a line at a time. Hour triggers start]
Time [script prog, runs once on hour specified]
Hour [loops as Script for an hour from start hour]

*NOTE* {hour}/ is in military time. ie, 15 hours is 3p.m. mud time.


- X
       
Post is unread #3 Jun 6, 2003, 4:41 pm
Go to the top of the page
Go to the bottom of the page

Amalric

GroupMembers
Posts48
JoinedMay 15, 2003

Uh... right. I guess that I need to search more through the in-game help files.
Thanks Xorith!
       
Post is unread #4 Jun 7, 2003, 8:37 pm
Go to the top of the page
Go to the bottom of the page

Xorith
The Null Value
GroupAFKMud Team
Posts254
JoinedFeb 23, 2003

I don't mind reposting this. I'm taking notes for the guide I'll write someday ;)

-- X
       
Pages:<< prev 1 next >>