MMM Console Commands help

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).

Moderator: Moderators

User avatar
Vaulth516
Leprechaun
Leprechaun
Posts: 33
Joined: 02 Nov 2020

MMM Console Commands help

Postby Vaulth516 » Nov 2 2020, 1:29

Hi, I'm trying to use console commands to add a skill at a certain mastery and level to one character only.

The list of commands at "https://grayface.github.io/mm/ext/ref/" such as this one adds skills to all characters and I just need to add to one.
for _, pl in Party do
local skill, mastery = SplitSkill(pl.Skills[const.Skills.Perception])
pl.Skills[const.Skills.Perception] = JoinSkill(math.max(skill, 4), math.max(mastery, const.Expert))
end

Can someone help? thanks.

cthscr
Scout
Scout
Posts: 194
Joined: 12 Jan 2020

Re: MMM Console Commands help

Postby cthscr » Nov 2 2020, 19:52

Party[0].Skills[const.Skills.Perception] = JoinSkill(4,2)

User avatar
Vaulth516
Leprechaun
Leprechaun
Posts: 33
Joined: 02 Nov 2020

Re: MMM Console Commands help

Postby Vaulth516 » Nov 3 2020, 8:21

Thank you, that was helpful!

By the way, the Stealing skill does not seem that it can be added, does it have a different name or something?
Last edited by Vaulth516 on Nov 3 2020, 9:21, edited 1 time in total.

cthscr
Scout
Scout
Posts: 194
Joined: 12 Jan 2020

Re: MMM Console Commands help

Postby cthscr » Nov 3 2020, 14:35

It doesn't shown in MM8/Base Merge. Not supported either.

User avatar
Vaulth516
Leprechaun
Leprechaun
Posts: 33
Joined: 02 Nov 2020

Re: MMM Console Commands help

Postby Vaulth516 » Nov 4 2020, 2:45

I see.
Reading the tracker now, hopefully it will be implemented soon.
The idea of a "righteous thief" was fairly popular in dark-middle ages times.
Last edited by Vaulth516 on Nov 4 2020, 13:24, edited 2 times in total.

User avatar
Vaulth516
Leprechaun
Leprechaun
Posts: 33
Joined: 02 Nov 2020

Re: MMM Console Commands help

Postby Vaulth516 » Nov 9 2020, 13:06

Btw, what's the code to add an individual spell to a character?

Eksekk
Leprechaun
Leprechaun
Posts: 18
Joined: 19 Jul 2016

Re: MMM Console Commands help

Postby Eksekk » Nov 9 2020, 22:07

Code: Select all

party[0].Spells[i - 1] = true

0 means character index, 0 = first character from left, 1 - second etc.
i is spell index, taken from SPELLS.txt file from icons.lod (MM6), events.lod (MM7), EnglishT.lod (MM8).
change true to false to "forget" spell.
Last edited by Eksekk on Nov 9 2020, 22:07, edited 1 time in total.

User avatar
Vaulth516
Leprechaun
Leprechaun
Posts: 33
Joined: 02 Nov 2020

Re: MMM Console Commands help

Postby Vaulth516 » Nov 12 2020, 12:39

Very nice, thank you. Is there a code to change the class of a character?

User avatar
Vaulth516
Leprechaun
Leprechaun
Posts: 33
Joined: 02 Nov 2020

Re: MMM Console Commands help

Postby Vaulth516 » Nov 14 2020, 8:20

Hi, I don't get the spell adding code and where to really find the index, can you provide an example plz?


Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 14 guests