Using tome_water

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Using tome_water

Post by RayB »

I have a situation when I use the tome_water. If I use the tome on a champion, it is supposed to increase their cold resistance by 20. However, when I have champion 1 use the tome it only increases the cold resistance by 16. He is missing four points. It works correctly when given to any other champion but not on champion 1. (All other tomes seem to work OK with champ 1)

I ran the mod to check the four champion cold resistances at game start. Their cold resistances were: 0, 0, 4, 12.

Then I placed a bit of script to run at game start...

function chkCold()
for j = 1,4 do
local c = party.party:getChampion(j)
print(c:getBaseStat("resist_cold"))
c:modifyBaseStat("resist_cold",5)
print(c:getBaseStat("resist_cold"))
end
end
delayedCall(self.go.id, 3, "chkCold")

This printed out...
0
5
0
5
0
5
0
5

for the 4 champs. But when I checked the champs cold resistances they were: 1, 5, 9, 17.

Again, champ 1 was missing 4 cold resistance points.

Can anyone tell me what is going on?
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Using tome_water

Post by minmay »

All champions have dexterity*2-20 added to their cold resistance.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Kirill
Posts: 125
Joined: Mon Dec 21, 2020 5:36 pm

Re: Using tome_water

Post by Kirill »

minmay wrote: Mon Jan 09, 2023 5:38 am All champions have dexterity*2-20 added to their cold resistance.
Can you tell if there are news about Requiem for Kraken's Arm?
Post Reply