[v1.7.0+] Traps in Other Campaigns

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2521
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Traps in Other Campaigns

#1 Post by Zizzo »

So I fired up another rogue based on GrayStillPlays' stealth/throwing-knives rogue build in
Hammer of Urh'Rok (on the theory that Urkis and crew can't overwhelm me if they can't see me :? ), and I realized I'd have a problem: some of the most useful traps for this build, like Poison Gas Trap, are only learned from various lore events in the main campaign, so I'd be missing out.

Well, that seemed like a shame, so I put together a new addon to fill that gap, Traps in Other Campaigns, which… well, speaks for itself, I suppose. Here's what we have so far:
  • Embers of Rage gets the full treatment, with its own special lore events that will teach you traps when you kill various bosses or find various lore (have fun finding `em all :wink: ).
  • For Light From Below, we go the easy route :oops: and just make all the traps buyable from That Which Hoards.
  • Ironically, we don't actually support Hammer of Urh'Rok in this release; :? I'm still trying to figure out where to place sultable lore events in this campaign. (I'm happy to take suggestions on that front, if anyone has any.)
(Looking ahead, I'm not sure whether this would be suitable to add to ZOmnibus or ZOmnibus Lite; for now I consider it to be in the same category as addons like Non-Orcs Start In Yeti Caves, that make low-level structural changes that aren't really amenable to enableing or disabling via game option.)

[Implementation notes:]

Code: Select all

Hooks:
  ToME:load [to load our trap-giving lore]
  Entity:loadList [to modify various NPCs and stores to provide our lore]
  Zone:create [to modify various zones to provide our lore]
  Chat:load [to add trap buying to some chats]
Superload:
  mod.class.Store:
    allowStockObject() [to not stock our lores if player doesn't know Cunning/Trapping]
  data/talents/cunning:
    traps.lua [to expose some trap-related utility methods]
"Blessed are the yeeks, for they shall inherit Arda..."

Zizzo
Sher'Tul Godslayer
Posts: 2521
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

Re: [v1.7.0+] Traps in Other Campaigns

#2 Post by Zizzo »

We Apologize for the Delay;™ v1a finally adds support for the Hammer of Urh'Rok campaign. I had to resort to selling two of our learnable traps in the Fearscape stores, but the rest can be gotten from finding lores or killing zone guardians or completing quests, just like in the main campaign. Have fun finding `em all. :wink:

And while I was working on that, it occurred to me that I'd forgotten to support nsrr's Q.U.I.C.K Campaign; We Apologize for the Omission.™ :oops: Not really enough zones in that campaign to have the traps appear "organically" (and we don't know which zones we're going to have anyway), so we add an NPC that sells them — a crossover cameo from our Embers support. :mrgreen:

We also fix a couple bugs while we're here:
  • Tripped over this one when I accidentally left this addon enabled for a character that didn't know Cunning/Trapping. See, some traps are learned from lore items that that you can find on the floor in various zones; if the player doesn't know Cunning/Trapping, though, we shouldn't place those lore items.
  • In the Light from Below campaign, That Which Hoards would offer traps for sale even if you already knew them.
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply