[v1.7.0+] Traps in Other Campaigns
Posted: Mon Dec 25, 2023 7:26 pm
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:
[Implementation notes:]
Hammer of Urh'Rok (on the theory that Urkis and crew can't overwhelm me if they can't see me

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
).
- For Light From Below, we go the easy route
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.)
[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]