Topics

Scripted ALFA systems & related tech discussions (ACR)

Moderators: ALFA Administrators, Staff - Technical

User avatar
indio
Ancient Red Dragon
Posts: 2810
Joined: Sat Jan 03, 2004 10:40 am

Post by indio »

You've no idea how much I want to be able to understand one word of your last post, ciph.

I've probably reached my useful threshold working on such a thing. I'm enjoying it, but am not sure if I can make it work the way it needs to. Still, FWIW.

Image
Image
Ronan
Dungeon Master
Posts: 4611
Joined: Sun Feb 20, 2005 9:48 am

Post by Ronan »

ç i p h é r wrote:Sounds good Ronan. And I agree, it doesn't hurt to define more constants than we need. Hopefully, you'll be around to help architect the system.
I see the system as storing lists of custom events on objects. There would be one list for every event type (since the overhead of an empty list is zero). This is assuming they give us more tools to organize our scripts, which I think they said was in already.

Though the system would hook into all NW events, I see three where it would need a special function.
OnClientEnter:
-In addition to executing the custom event when the PC's inventory is looped through (and there should be only one loop to do all the functions needed on a PC's items), the event system should also look for events on items which must be passed to the owner. If one was found, a pointer (ie local object variable) would be added which points to the original item and its custom scripts.
-Custom event scripts attached to feats would always be added to the owner's lists.

OnEquip:
The same as OnClientEnter, sometimes an equipped item needs to push its custom event onto the owner.

OnUnEquip:
The opposite of OnEquip, remove the event.

I'm not sure how an item event script should be flagged as needing to be pushed to its owner.
User avatar
ç i p h é r
Retired
Posts: 2904
Joined: Fri Oct 21, 2005 4:12 pm
Location: US Central (GMT - 6)

Post by ç i p h é r »

Let's make it an attribute of the event scripts themselves if we can. Each event script would then have the appropriate inheritance function that can be invoked.

Plausible?

Oh and Indio, if you want to hand off the task, just post your file somewhere I can retrieve it. I didn't mean for my prior post to be confusing...I was just thinking we could create a heirarchy of diagrams which go from high level views to progressively lower levels (more granular a view of each subsystem and even each object within a subsystem if we felt compelled to do so).

BTW, are you in fact using Visio to diagram this?
User avatar
indio
Ancient Red Dragon
Posts: 2810
Joined: Sat Jan 03, 2004 10:40 am

Post by indio »

Yeah, visio 2002.

Actually, I'm loving doing it. I just don't think I'm getting my head around it the way you might. I'll upload the file tonight for you and then maybe we can work on it together, as I'd like to keep helping with it while practical.
Image
User avatar
indio
Ancient Red Dragon
Posts: 2810
Joined: Sat Jan 03, 2004 10:40 am

Post by indio »

Image
User avatar
Fionn
Ancient Red Dragon
Posts: 2942
Joined: Sun Jan 04, 2004 7:07 am
Location: Seattle, WA

Post by Fionn »

Visio 2002? Yer so last year ;)

I'd still add a link between 1984 and the database. I want to be able to mine such log data without parsing a text file.
PC: Bot (WD)

Code: Select all

     -----          -----          -----          -----
    /     \        /     \        /     \        /     \
   /  RIP  \      /  RIP  \      /  RIP  \      /  RIP  \      /
   |       |      |       |      |       |      |       |      |
  *| *  *  |*    *| *  *  |*    *| *  *  |*    *| *  *  |*    *|
_)/\\_//(/|_)(__)/\\_//(/|_)(__)/\\_//(/|_)(__)/\\_//(/|_)(__)/\\_(
User avatar
indio
Ancient Red Dragon
Posts: 2810
Joined: Sat Jan 03, 2004 10:40 am

Post by indio »

lol

Silmar sent me a disk while we were waiting for NWN to arrive. It had Dreamweaver MX, Photoshop 7 and Visio 2002. In all cases, these are still the versions I use.
Image
Locked