#pentagram@irc.freenode.net logs for 27 Aug 2005 (GMT)

Archive Today Yesterday Tomorrow
Pentagram homepage


[01:21:59] <-- SB-X has left IRC ()
[11:53:44] <wjp> blocked animations and support aren't handled correctly it seems
[11:53:57] <wjp> blocked jumps should probably trigger a fall
[12:01:59] <wjp> but for some reason this totally screws up walking on uneven ground
[13:03:27] <-- Colourless has left IRC ("casts improved invisibility")
[13:26:06] <-- Kirben has left IRC ("System Meltdown")
[14:49:26] <-- oaK^ has left IRC ("Changing server")
[14:49:27] --> oaK^ has joined #pentagram
[15:34:53] --> oaC has joined #pentagram
[15:36:51] <-- oaK^ has left IRC ("Changing server")
[16:33:50] --- oaC is now known as oaK^
[20:28:30] <wjp> thinking about stealing...
[20:28:46] <wjp> I wonder if we want to duplicate the original's behaviour as closely as possible
[20:29:15] <wjp> it had this 'quirk' that if you moved an owned item into an unowned container, and then moved the container outside, you could then steal the owned item when nobody was watching
[20:50:24] <servus> I think you should make sure that all of the bugs in the game are _your_ bugs, as much as possible.
[20:57:55] <wjp> I wonder what the reasoning of the original devs was
[20:58:29] <wjp> by far the easiest way of implementing it seems to be simply detecting moving any owned item anywhere
[20:59:52] <wjp> (provided there's an NPC within range, of course)
[21:04:31] <servus> I seem to remember getting in trouble just for moving an owned item.
[21:05:00] * wjp nods
[21:05:15] <wjp> I remember the same thing; just checked it in the original as well
[21:05:43] <wjp> moving it triggers theft checks, but somehow moving it into a container does not (unless the container is you)
[21:05:49] <servus> Of course, once you became grand Pyromancer Poobah, weren't you allowed to steal?
[21:06:11] <servus> Maybe they wanted to emulate certain similar functionality in Ultima VII : o)
[21:06:21] <wjp> Beren is the one who executes you if you steal
[21:06:41] <wjp> but it's probably controlled by usecode if he actually shows up or not
[21:07:34] <wjp> hm, moving an item into a container is detected as well
[21:07:44] <servus> Then what were you remembering?
[21:07:44] <wjp> maybe that was changed in the patch
[21:10:03] <wjp> well, I guess I'll simply detect any dragging of owned items
[21:10:49] <servus> Gonna murder the avatar before they even put down the item to reveal their red hands?
[21:11:40] <wjp> s/dragging/dropping/ :-)
[21:12:53] <servus> You should just make 20 town guards that you can fight show up :)
[21:13:17] <wjp> usecode... :-)
[21:19:45] <servus> Right. Usecode to make 20 town guards that you can fight show up :)
[21:26:54] <wjp> do you remember if the original used line of sight or range?
[21:28:58] <wjp> I vaguely remember it was simply range-based, but not entirely sure
[21:29:31] <servus> I seem to remember being able to steal the widow's gems while she was in the other room.
[21:29:36] <servus> But still visible on my screen
[21:30:18] <wjp> checking in dosbox now
[21:30:26] <wjp> yes, you're right
[21:31:08] <servus> Neat, first time today, for that :)
[21:32:32] <wjp> :-)
[21:33:08] <wjp> ok, that should take care of detecting stealing, then
[21:33:24] <wjp> now just need to handle setting/clearing the owned flag at the right places
[21:33:52] <wjp> annoyingly item's in your inventory need to have the owned flag set
[21:34:07] <wjp> (otherwise that moving magic armour will continue moving after you pick it up :-) )
[21:34:18] <servus> Heh, I never understood that
[21:34:34] <servus> I thought it was jumping due to a bug.
[21:54:38] <wjp> hm, none of the gems have the owned flag set in pentagram somehow
[21:54:49] <wjp> nor the weapons in the smithy
[21:55:20] <servus> How is ownership usually set? Maybe these are set by usecode or something?
[21:57:59] <wjp> I _thought_ it was simply an item flag that would be set in the initial savegame
[21:58:33] <wjp> and in fact I still think so, but there's probably a bug somewhere; or maybe I'm looking at the wrong flag
[22:12:40] --> Kirben has joined #pentagram
[22:12:40] --- ChanServ gives channel operator status to Kirben
[22:23:29] <wjp> we call the 0x0004 flag 'owned'
[22:23:44] <wjp> quite a few items seem to have the 0x0400 flag set
[22:28:01] <servus> Maybe there is "owned and get upset when stolen" and "owned and get homicidal when stolen". I seem to remember being able to do a little stealing on some items
[22:29:33] <wjp> I think that simply depends on the npc who sees you
[22:30:09] <wjp> some may have counters or chances to actually call Beren
[22:35:02] <wjp> or _maybe_ the 'owned' flag means 'owned by Avatar'
[22:35:36] <wjp> and then those might be the only items which you can move
[22:36:15] <servus> As opposed to unowned by anyone?
[22:38:23] <wjp> other things seem to play a role as well
[22:38:38] <wjp> I can move the jewelry box without any problems
[22:38:49] <wjp> while the box and the jewelry itself have the same flags
[22:40:31] <wjp> oh
[22:40:45] <wjp> Rhian's usecode actually explicitly checks for jewelry and clothing
[22:41:49] <wjp> so I'm going to guess owned really does mean 'owned by avatar'
[22:42:24] <wjp> which would mean I'd simply check !owned when checking for theft, and flag everything owned as soon as it ends up in your inventory
[22:47:19] <servus> Well, keep tweaking and it'll probably just 'click' sooner or later
[22:47:49] <wjp> yeah, at least the basic code is in place now