Welcome to the Builder Academy

Question Triggers as spec-functions

More
31 Jan 2018 01:35 #7478 by Parnassus
Spec-procs have come up a few times in the past while so I thought I'd mention Galaxy.

Someone way back requested a port of the ROM area, Galaxy. Switching over the zone was mostly easy enough but a large part of the zone were the spec-procs. These were used for fighting, healing and thieving. Since that was way beyond me, Fizban wrote triggers to represent them. If there are any problems with these triggers, they would be because of me giving him faulty data. I think that he did a fantastic job of re-creating the feel of the zone.

The zone number is 288 and most of the triggers are the spec-procs triggers. There's also a death-trap trigger in there which would have originally also been code in the original ROM version.

If any of you are familiar with the zone from other code bases and haven't tried it out yet, go see what you think.

In contrast, King Welmar's Castle, zone 150, replaces triggers with code. Just as older bases used a spec-proc to send the mayor around the main town, locking and unlocking gates, castle.c sends the king around the castle, has mobs prevent entry to certain places and even decides what the cleaning lady is going to pick up. Personally, I'd change King Welmar's l-desc but the zone is still interesting from a code vs trigger point of view.

Please Log in or Create an account to join the conversation.

More
31 Jan 2018 02:38 #7480 by WhiskyTest
Not familiar with the original zone, but running around in there for a few minutes was fun!

I definitely think triggers should be used over spec-procs where possible. Castle would benefit from triggerizing, I think it has been left as example code in case people like to dabble.

Spec-procs do have the advantage of being able to do almost anything, but as more and more trigger features and commands get added they will probably get phased out..

Please Log in or Create an account to join the conversation.

More
04 Feb 2018 05:06 #7536 by Parnassus
It was sort of a study in contrasts to me. I'm used to seeing Galaxy run by code and Castle run by triggers.

It's one of the interesting things about TBA though. You can find all sorts of things here!

Please Log in or Create an account to join the conversation.

Time to create page: 0.215 seconds