Cooldowns on Spell Casting
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Cooldowns on Spell Casting
Is there a way to adjust cooldowns on spellcasting? Bigger spells that have longer cooldowns make sense. Unless I'm missing something, it's not as simple as writing in a cooldown for, say, a meleeattack. Any thoughts?
Re: Cooldowns on Spell Casting
Just attach an onComputeCooldown hook to a hidden trait?
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Re: Cooldowns on Spell Casting
Noob question here - I don't see "onComputeCooldown" in http://www.grimrock.net/modding/scripting-reference/
How does that work then?
How does that work then?
Re: Cooldowns on Spell Casting
It's not in the scripting reference but it exists, it's just like any other hook. Look at the asset pack, two of the game's traits have onComputeCooldown hooks.
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- David Ward
- Posts: 103
- Joined: Wed Jan 07, 2015 11:44 pm
- Location: Vancouver, BC, Canada
Re: Cooldowns on Spell Casting
Gotcha. I take it then there may be a few of these that are not listed on the scripting reference page?
Re: Cooldowns on Spell Casting
Nice one minmay, updated to here https://github.com/JKos/log2doc/wiki/Asset-Definitions
I think that minmay should get some kind of award for his help to the community, you know all the answers even it's not documented, maybe AH should hire him
.
I think that minmay should get some kind of award for his help to the community, you know all the answers even it's not documented, maybe AH should hire him

- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
- cloneObject viewtopic.php?f=22&t=8450