USE:
Get a building related to this NPC AI-wise.
Parameters are Home, Work and Current.
TYPE: Command, Ref
RETURNS: Building
THEME: Building
COMPARE:
EXAMPLE:
Code: Select all
wrk = MainActor.getBuilding(Work)
cur = MainActor.getBuilding(Current)
If cur.isSameBuilding(wrk)
tp = wrk.getBuildingType()
If isOpen(tp)
willFollow = false
Random
MainActor(sad):: "Oh <Player.Name> I'd like to, but I still have to work."
MainActor(sad):: "Sorry, <Player.Name> I still have to work."
EndRandom
EndIf
EndIf