intfiction.org

The Interactive Fiction Community Forum
It is currently Mon May 20, 2013 10:22 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Apr 17, 2012 1:33 am 
Offline

Joined: Tue Nov 08, 2011 8:11 am
Posts: 79
I finally got an npc gimmicked up to perform a series of actions based on his location and what he's holding - essentially if he happens across a certain object in the environment, he fetches another object in the world, then brings it back and drops it. And I managed to do this with internal activities where I did not have to plan out every action for him.

The funny part is, I dont have the npc set up to wander yet, so to test this I had to basically lure him to my location by making noise - in this case, breaking a plate.

The npc arrives, but instead of taking the route I assumed, he sets off in the other direction - hey wait, where's he going? Turns out, he crawled out a window and climbed down the outside wall - something I had set up as an escape route later that blocks the player from taking that path, but I hadn't thought to write check routines for him. It was a minor triumph to have my butler take a an unplanned shortcut I had forgotten was even there!


Top
 Profile Send private message  
 
PostPosted: Tue Apr 17, 2012 2:34 am 
Offline
User avatar

Joined: Sun Mar 27, 2011 9:01 am
Posts: 115
Location: South Australia
Heh! That's awesome. Butler by day, Cat Burglar by night. Even more awesome if he does it carrying a serving tray.

PS - sounds like you're getting into the nitty gritty of NPC coding. Full credit. I struggle with even the most basic of NPCs.

_________________
Ever stop to think and forget to start again?


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group