Bazaar: bringing shopping malls to Tome

A place to post your add ons and ideas for them

Moderator: Moderator

Message
Author
Dao Zeti
Higher
Posts: 79
Joined: Sun Oct 19, 2014 2:02 pm

Bazaar: bringing shopping malls to Tome

#1 Post by Dao Zeti »

Bazaar

- This addon introduces a new variant of vault, the bazaar, where you don't fight for items, but rather buy (or steal) them.

- A central aspect of this addon is a new questline (consisting of 3 follow-up-quests), which introduces the player to the bazaar-system. The questline starts in the Village of Elvala (look out for a special npc - he will lookout for you as well).

- I took the idea to this addon from starsapphire (Idea : Markets in dungeons!)

------ Details: ------


(1) Bazaars can appear in most dungeons and outdoor zones, which happen to also generate vaults; chances for regular vault-generation aren't being limited. Bazaars won't appear in the East however - tradesmen haven't made it there yet.

(2) Each bazaar contains a shopkeeper and a limited amount of items, which can't be pickuped by normal means (they are chained to the ground). Instead, you either have to pay to be able to pick up such an item - or you try to unchain it (success chances scale with cunning, dexterity and talent points in Heightened Senses and Stealth). Failure to unchain it will trigger a trap which teleports the player (and his party) to a parallel zone ("Mirrorscape").

--> To escape from the Mirrorscape, a special guardian needs to be killed. Alternatively, there are two hidden exit points. The Power of the Guardian scales extremely with the Base-Level of the Zone (Break-Points: Level 20, 30, 50, 70) and the item-quality the trap is based on (unique items are protected by stronger guardians). Killing the guardian allows the player to pick up the item in question.

--> Killing the shopkeeper unchains all item in his shop. Shopkeepers are extremely strong, however.

(3) Additionally, each shopkeeper has a rare ingredient for sale, and some of them also sell maps, which point to special treasure areas in a variety of zones. To find out about these special goods, chat with the vendor. (Again, treasuremaps point only to zones in the West.)

(4)In Elvala starts a questline, which leads to the discovery of a new zone, The Bazaar. Follow-up quests then introduce more in depth to the bazaar system.

(5) Most bazaar-vaults will also be generated inside the Infinite Dungeon - most Treasuremaps also work here.

(6) From time to time, a caravan will spawn on the overworld map. Encountering a caravan is similar to an "Ambush", however without meeting hostile npcs - instead, two shopkeepers will offer their items.

So, How to start? --> Go to Elvala, talk with a nice dwarf!

Notable modifications to the core game:

Code: Select all

- added a new Faction ("Free Traders")
- Overload: added an event zone to Elvala
- Superload: engine/generator/map/roomer.lua - small extension to the code to enable bazaar-vaults to spawn, worldDirectorAI - adding a script for the caravans to spawn
- Hooks: data/talents/misc/npcs, data/talents/misc/objects, data/timed_effects, /data/general/stores/basic, data/general/objects/special-artifacts, /data/general/objects/boss-artifacts.lua, data/general/objects/world-artifacts
Feedback about bugs, improvements, compatibility issues very welcome.

Fixed:
- made vendors "slightly" tougher by giving them a more badass summon and draconic body
- put warnings on treasuremaps, where those lead to very dangerous areas
- fixed an issue with the Infinite Dungeon

24.11.
- Shopkeepers won't get extra talents/classes in higher difficulties anymore (this could lead to errors)
- increased Shopkeepers Life and Resists

27.11
- added more safety-checks to vendors before trying to "return home" after being dislocated, to address a possible error

1.12
- fixed shopguards following the player around while being neutral/friendly
- fixed levelranges to all treasuremaps, which should make them a bit easier on normal and doable on higher difficulties

12.12
- making vendorporting more failsafe (again)
- tuned down a certain lady in the pocket dimension

20.12.
- removed an empty event file from the bazaar main zone, as it would trigger an error with the latest ashes update

01.02.
- items inside bazaars got a new trap. Failing to unchain an items won't upset the vendor anymore, instead the culprit gets cast into an alternate zone, the mirrorscape (much like fearscape)
- caravans spawn from time to time on the worldmap
--> more details inside the updated content text

A warning: you are trapped inside the mirrorscape until you defeat its guardian or find the exit
Last edited by Dao Zeti on Sun Feb 01, 2015 4:03 pm, edited 10 times in total.

Red
Uruivellas
Posts: 892
Joined: Sat Oct 04, 2014 8:03 pm

Re: Bazaar: bringing shopping malls to Tome

#2 Post by Red »

The link to the addon is broken.
I'm not crying. I'm offering a sacrifice to DarkGod in hopes he'll show favor to me.

It hasn't worked yet.

Dao Zeti
Higher
Posts: 79
Joined: Sun Oct 19, 2014 2:02 pm

Re: Bazaar: bringing shopping malls to Tome

#3 Post by Dao Zeti »

Fixed the link, thank you :)

Red
Uruivellas
Posts: 892
Joined: Sat Oct 04, 2014 8:03 pm

Re: Bazaar: bringing shopping malls to Tome

#4 Post by Red »

Success! Time to try this bad boy out.

Thanks Dao.
I'm not crying. I'm offering a sacrifice to DarkGod in hopes he'll show favor to me.

It hasn't worked yet.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Bazaar: bringing shopping malls to Tome

#5 Post by HousePet »

Sounds nice. :mrgreen:
My feedback meter decays into coding. Give me feedback and I make mods.

Red
Uruivellas
Posts: 892
Joined: Sat Oct 04, 2014 8:03 pm

Re: Bazaar: bringing shopping malls to Tome

#6 Post by Red »

You might want to scale up the shop owners a bit. I ran into one with nothing worth buying, but decided to take it all anyway and barely got scratched.

I was about level 10 at the time, Ghoul Sun Paladin, and the vault owner was a level 15 arms deaer with two elite wolves.
I'm not crying. I'm offering a sacrifice to DarkGod in hopes he'll show favor to me.

It hasn't worked yet.

Dao Zeti
Higher
Posts: 79
Joined: Sun Oct 19, 2014 2:02 pm

Re: Bazaar: bringing shopping malls to Tome

#7 Post by Dao Zeti »

Oh. They shouldn't be invincible, but I expected them to be a bit tougher. Armsdealer relies a bit on poisons, melee damage and disarms, so if you can negate that (armor, blocks, cures) he loses much of his potential. The later shopkeepers should be tougher, but I have to look into this. Maybe I should really add some nasty summons. Thank you for the feedback.

Red
Uruivellas
Posts: 892
Joined: Sat Oct 04, 2014 8:03 pm

Re: Bazaar: bringing shopping malls to Tome

#8 Post by Red »

I ran into the first shopkeeper I actually had trouble with. (I'm killing them right after I deliver their letters.) The one with the blue golems.

The golems were basically a non-issue, but he had enough damage and debuffs to screw me over hard and enough hit points that he could whittle me down. I tried the usual "stab, run, repeat" tactic, but he was always totally healed when I returned, so I ending up having to use Second Life (when you die, the sustain deactivates and gives you a huge heal) and staying after that to kill him, which I really don't like doing. Too risky, but he had Garkul's Teeth. I couldn't leave Garkul's Teeth behind.
I'm not crying. I'm offering a sacrifice to DarkGod in hopes he'll show favor to me.

It hasn't worked yet.

Dao Zeti
Higher
Posts: 79
Joined: Sun Oct 19, 2014 2:02 pm

Re: Bazaar: bringing shopping malls to Tome

#9 Post by Dao Zeti »

If they provide a fight, where survival is uncertain, thats good - as you then have a typical vault situation. After some testing, I'll upgrade the weaker vendors a bit. Also I forgot the need to control those additional skills/classes they can get on higher difficulties, as some (like teleport) are bad. So will upload a tweak these days.

Red
Uruivellas
Posts: 892
Joined: Sat Oct 04, 2014 8:03 pm

Re: Bazaar: bringing shopping malls to Tome

#10 Post by Red »

Also consider giving them an area heal to use when you run away. The shopkeeper regenerated all his health whenever I retreated, but his golems didn't. (Admittedly, I could just run in, wipe a golem out, and run away, but still.)
I'm not crying. I'm offering a sacrifice to DarkGod in hopes he'll show favor to me.

It hasn't worked yet.

Dao Zeti
Higher
Posts: 79
Joined: Sun Oct 19, 2014 2:02 pm

Re: Bazaar: bringing shopping malls to Tome

#11 Post by Dao Zeti »

Yeah, definately need to do something about the shopguardians!

Red
Uruivellas
Posts: 892
Joined: Sat Oct 04, 2014 8:03 pm

Re: Bazaar: bringing shopping malls to Tome

#12 Post by Red »

Jesus rollerblading tapdancing tutu-wearing pimp-slapping sermon-giving puppy-petting Christ on a cracker. What the shop guardians lack in ferocity, the treasure vaults make up for.

Level 35 Boss Lich. Level 45 elite unique archlich. A shitton of other undead. When I was level 24.

I died four times because it wouldn't let me leave! And I only got two decent pieces of loot out of it to boot!

You might want to either give greater warning or tone down the treasure vaults a little. Both this and the pocket Angolwen are a bit ridiculous, far far more than any regular vault, and there is no warning they'll be that bad.

And as a side note, the giant shopkeep needs major buffing. His guards, three on one, completely failed to break my Retribution shield, and when the actual shopkeep broke it it killed him.
I'm not crying. I'm offering a sacrifice to DarkGod in hopes he'll show favor to me.

It hasn't worked yet.

stinkstink
Spiderkin
Posts: 543
Joined: Sat Feb 11, 2012 1:12 am

Re: Bazaar: bringing shopping malls to Tome

#13 Post by stinkstink »

I'm getting hangs when trying to generate floors with the bazar-giants-2 vault in the infinite dungeon with Infinite 500 enabled:

Code: Select all

FROM    /mod/addons/Infinite500/superload/engine/generator/map/Static.lua       loading previous!
Static generator using file     /data/maps/vaults/bazar-giants-2.lua
Lua Error: ...ns/Infinite500/superload/engine/generator/map/Static.lua:35: cannot open /data/maps/vaults/bazar-giants-2.lua: No error
        At [C]:-1
        At [C]:-1 error
        At ...ns/Infinite500/superload/engine/generator/map/Static.lua:35 loadMap
        At /engine/generator/map/Static.lua:42 init
        At /engine/class.lua:97 new
        At /data/rooms/bazaar.lua:130 room
        At /engine/generator/map/RoomsLoader.lua:147 roomGen
        At /engine/generator/map/RoomsLoader.lua:189 roomAlloc
        At /engine/generator/map/Roomer.lua:133 generate
        At /engine/Zone.lua:899 newLevel
        At /engine/Zone.lua:829 getLevel
        At /mod/class/Game.lua:854 changeLevelReal
        At /mod/class/Game.lua:734 base_changeLevel
        At /mod/addons/zomnibus/superload/mod/class/Game.lua:98 changeLevel
        At /mod/class/Game.lua:260 at_end
        At /mod/dialogs/Birther.lua:306 fct
        At /mod/dialogs/Birther.lua:191 checkNew
        At /mod/dialogs/Birther.lua:241 atEnd
        At /mod/dialogs/Birther.lua:63 fct
        At /engine/ui/Button.lua:64 fct
        At /engine/Mouse.lua:56 receiveMouse
        At /engine/Mouse.lua:94 delegate
        At /engine/ui/Dialog.lua:558 mouseEvent
        At /engine/ui/Dialog.lua:337 fct
        At /engine/Mouse.lua:56 

Code: Select all

Static generator using file     /data/maps/vaults/bazar-giants-2.lua
Lua Error: ...ns/Infinite500/superload/engine/generator/map/Static.lua:35: cannot open /data/maps/vaults/bazar-giants-2.lua: Bad file descriptor
        At [C]:-1
        At [C]:-1 error
        At ...ns/Infinite500/superload/engine/generator/map/Static.lua:35 loadMap
        At /engine/generator/map/Static.lua:42 init
        At /engine/class.lua:97 new
        At /data/rooms/bazaar.lua:130 room
        At /engine/generator/map/RoomsLoader.lua:147 roomGen
        At /engine/generator/map/RoomsLoader.lua:189 roomAlloc
        At /engine/generator/map/Roomer.lua:133 generate
        At /engine/Zone.lua:899 newLevel
        At /engine/Zone.lua:829 getLevel
        At /mod/class/Game.lua:854 changeLevelReal
        At /mod/class/Game.lua:726 unload
        At /engine/Game.lua:379 unregisterDialog
        At /mod/dialogs/ShowEquipInven.lua:176
        At /engine/KeyBind.lua:229 receiveKey
        At /engine/ui/Dialog.lua:567 keyEvent
        At /engine/ui/Dialog.lua:339

Dao Zeti
Higher
Posts: 79
Joined: Sun Oct 19, 2014 2:02 pm

Re: Bazaar: bringing shopping malls to Tome

#14 Post by Dao Zeti »

stinkstink wrote:I'm getting hangs when trying to generate floors with the bazar-giants-2 vault in the infinite dungeon with Infinite 500 enabled
Damn, I mispelled "bazaar..." as "bazar..." in the code responsible for the vault generation in the ID. Thanks for the notice, going to upload a patch later. And sorry for the inconvenience.
Red wrote:Jesus rollerblading tapdancing tutu-wearing pimp-slapping sermon-giving puppy-petting Christ on a cracker. What the shop guardians lack in ferocity, the treasure vaults make up for.

Level 35 Boss Lich. Level 45 elite unique archlich. A shitton of other undead. When I was level 24.
Yeah, I am going to make it more clear what expects you in those places. Cursed Tomb is probably the hardest place, but still - I am thinking about removing the unique lich, as he is way over the baselevel of the zone (lich minimum is lvl 45).

Zireael
Archmage
Posts: 449
Joined: Tue Jun 18, 2013 7:24 pm

Re: Bazaar: bringing shopping malls to Tome

#15 Post by Zireael »

The guy with Infinite Dungeon - probably an addon conflict.

Dao, I love the idea!

Post Reply