M&M6/7/8 Shop Editing issue

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).
masterpoobaa
Peasant
Peasant
Posts: 60
Joined: 02 May 2007

M&M6/7/8 Shop Editing issue

Unread postby masterpoobaa » 12 Jun 2007, 23:11

It appears that shopdata is contained within 2devents.txt.

I can edit the shopname ok.
I can edit the buy/sell multiplier/divider ok.
I can edit the open/close times ok.
But when trying to change the items for sale nothing seems to happen.

e.g. "The Knife Shoppe"
Sells L1 weapons as std, and L2 daggers as special items.
Ive tried changing both to L1 Bows or L2 bows or L1 swords to no avail. Nothing changes. Am i missing anything?
M&M VI - the best.

User avatar
UndeadHalfOrc
Cyber Zombie
Cyber Zombie
Posts: 1362
Joined: 13 Mar 2007

Unread postby UndeadHalfOrc » 12 Jun 2007, 23:44

I noticed in MM7 that sometimes the game ignores the data files and uses what seems to be "hard coded" values. For instance, the angels in Celeste always have the same stats no matter how much I changed them in the monsters.txt file (while the Temple of Light and Castle Lambent dungeons DO use my buffed up Angel stats)

masterpoobaa
Peasant
Peasant
Posts: 60
Joined: 02 May 2007

Unread postby masterpoobaa » 13 Jun 2007, 07:47

Seems your right. even a brand new game created from scratch didnt have any effect (seeing if there was a savegame effect)

Bugger. And that applies to the guilds selling spellbooks too :(
Cant get them to stop selling the "green" high level books.

Even though TP costs 36K now and lloyds costs 90K without any merchant skills
M&M VI - the best.

masterpoobaa
Peasant
Peasant
Posts: 60
Joined: 02 May 2007

Unread postby masterpoobaa » 14 Jun 2007, 09:17

Oh poot.
Another bug/feature to hold me back.

Namely maxxing out the cost of the NPC hirelings.
The cost is defined in the NPCProfs.txt file.
And the amount of money they take for themselves is a Percentage of their initial cost.

i.e. somoene costing 1000 gold takes 10%, 2000 gold takes 20% etc.

So thus when you ramp their purchace price to 10K or more they take ALL the money you find.

Not what i had hoped... Although having the 'fly' and 'townportal' NPC's that cost upwards of 50% or more of your earnings would be a good disincentive to use them.
M&M VI - the best.

masterpoobaa
Peasant
Peasant
Posts: 60
Joined: 02 May 2007

Unread postby masterpoobaa » 28 Jun 2007, 02:03

My M&M 7 mod is going well.
Possibly too well... forever totally strapped for cash, can barely afford any spells.

Maybe i made the shop prices a little TOO steep.

Ive also found a column in the 2devents file im not sure what it does.
Does anyone know??? (its new and not in the M&M6 2devents file)

In 2dEvents.txt:

The "VAL" column refers to the buy/sell multiplication factor applied to shops. Simple enough. multiply item price by value to get buy cost, divide to get sell cost.
Column "A" is what i dont know.
Column "B" is empty
Column "C" is a number that refers to the store refill time in days.

Its just column "A". its normally only got the value 1, 1.5, 2 or 3 in it.
Any ideas anyone?

[EDIT] Yay. worked it out. its for the price multiplier on learning skills from that shop/temple/magic store
M&M VI - the best.

Krzesiwo
Leprechaun
Leprechaun
Posts: 3
Joined: 04 May 2022

Re: M&M6/7/8 Shop Editing issue

Unread postby Krzesiwo » 04 May 2022, 08:42

I have the same problem with "The Knife Shoppe". I edit 2devents.txt and nothing changes. How to change L1 weapons/and L2 daggers to L1 Bows/and L2 bows, and some other stuff?

Tomsod
Assassin
Assassin
Posts: 295
Joined: 31 Jul 2020

Re: M&M6/7/8 Shop Editing issue

Unread postby Tomsod » 04 May 2022, 13:42

That's some really powerful necromancy right here.

Anyway, UndeadHalfOrc is right, these values are hard-coded into the executable. The git (unreleased) version of MMExtension exposes them, as Game.ShopWeaponKinds and Game.ShopWeaponKindsSpecial in your case.

Krzesiwo
Leprechaun
Leprechaun
Posts: 3
Joined: 04 May 2022

Re: M&M6/7/8 Shop Editing issue

Unread postby Krzesiwo » 09 May 2022, 11:43

Thanks for the info, it's helpful.


Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 62 guests