Search found 7 matches

by Slava
Wed Jul 17, 2024 2:59 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3910
Views: 3091304

Re: Ask a simple question, get a simple answer

Hello! Yes it is possible. Moreover, there are 2 ways for this: standard math.random() and https://www.grimrock.net/modding/scripting-reference/#MersenneTwister . You can also change the properties of objects in the onInit functions of components. For objects with minimalSaveState this will have an ...
by Slava
Mon May 20, 2024 10:00 am
Forum: Grimrock 2 Discussion
Topic: Grimrock 2 : Editing Party Statistics in Save Game
Replies: 4
Views: 814

Re: Grimrock 2 : Editing Party Statistics in Save Game

Hi!

Code: Select all

GameMode.setStatistic(stat)
by Slava
Fri Feb 03, 2023 10:03 am
Forum: Custom Dungeons
Topic: [Preview] Requiem for Kraken's Arm
Replies: 35
Views: 58290

Re: [Preview] Requiem for Kraken's Arm

Dear minmay, can we hope for resources used in your mod and asset pack on nexus? Or if possible, please post the code you use to change skills on git hub. I'd love to see how it's implemented. I think that the gratitude of the community will be difficult to overestimate.
by Slava
Thu Mar 01, 2018 5:23 pm
Forum: Custom Dungeons
Topic: Freedom or Death
Replies: 110
Views: 168502

Re: Freedom or Death

now I'm stuck in the mine where I found the message give a present to Inquisitory ! I tried to put everything on the altar but...nothing :oops: A gift to the inquisitor you will find in the Depth Mines. There will also be a clue what exactly the Inquisitor loves. You are there in principle all more...
by Slava
Mon Jan 18, 2016 3:37 am
Forum: Mod Creation
Topic: [SCRIPT] Force a champion to own the scroll before casting
Replies: 16
Views: 26027

Re: [SCRIPT] Force a champion to own the scroll before casti

не хочу переводить, кому надо - тот поймет :D я немного модернизировал ваш код do local SPELLNAME = {"inner_fire","fireburst","warmth","summon_fire_staff","pyro_metabolism","caecare","heat","fire_enhancement","fireb...
by Slava
Tue Sep 22, 2015 3:18 pm
Forum: Mod Creation
Topic: Holding 2-Handed Weapons with both hands
Replies: 4
Views: 3675

Re: Holding 2-Handed Weapons with both hands

onUnequipItem = function(self, champion, action, slot, skillLevel) if champion:getSkillLevel("heavy_weapons") == 5 then champion:addTrait("two_handed_mastery") end end, onRecomputeStats = function(self, champion, action, slot) champion:removeTrait("two_handed_mastery")...
by Slava
Mon Sep 07, 2015 7:10 pm
Forum: Mod Creation
Topic: need help!
Replies: 0
Views: 4540

need help!

Hello. This is my first post. My knowledge of English is poor, but I will try to explain the problem. My knowledge in the Lua script is bad, too. I did a werewolf and I need party hook for custom trait remove with bearform remove. that is only switched off during the attack. defineRace{ name = "...