Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
Hi Issac
Many thanks for your help Issac
Many thanks for your help Issac
Re: Ask a simple question, get a simple answer
How to check cooldown modifier for Champion?
Also how to chack cooldown modifier for certain weapon (which cooldown can be altered by skill like "15% faster attack with heavy weapons")?
I know there is GetCooldown command but how to write it?
Also how to chack cooldown modifier for certain weapon (which cooldown can be altered by skill like "15% faster attack with heavy weapons")?
I know there is GetCooldown command but how to write it?
Re: Ask a simple question, get a simple answer
2 minmay, need your help please.minmay wrote: ↑Thu Dec 08, 2022 8:28 pm Also, you asked for (and I provided) a Chebyshev distance test, but Grimrock uses Taxicab geometry for party and monster movement, not Chebyshev. So it would make more sense to use a Taxicab distance check: abs(e.x-px)+abs(e.y-py) <= [distance] instead of max(abs(e.x-px), abs(e.y-py)) <= [distance]. Consider this.
Using console in-game:
How to check cooldown modifier for Champion?
Also how to chack cooldown modifier for certain weapon (which cooldown can be altered by skill like "15% faster attack with heavy weapons")?
Re: Ask a simple question, get a simple answer
You cannot feasibly do either of those things from the in-game console. The cooldown inflicted by attacks depends on the results of 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.
Re: Ask a simple question, get a simple answer
Ok, can i ask question about game mechanics.
Do cooldown reductions stack with other? From trait (Quick), from skill (Dodge, 3) and from item (Tirin)?
Re: Ask a simple question, get a simple answer
onComputeCooldown hooks stack multiplicatively with each other, so Quick and Uncanny Speed (the Dodge 3 trait) stack.
Bracelet of Tirin does not modify the actual cooldown of actions, instead it makes the wearer's cooldowns elapse faster, by adding 15 to the cooldown_rate stat.
Bracelet of Tirin does not modify the actual cooldown of actions, instead it makes the wearer's cooldowns elapse faster, by adding 15 to the cooldown_rate stat.
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.
Re: Ask a simple question, get a simple answer
Ok, thank you. To make sure, it is not possible to check in-game with console command not only both OnComputeCooldown but also cooldown_rate stat?minmay wrote: ↑Wed Mar 15, 2023 8:09 am onComputeCooldown hooks stack multiplicatively with each other, so Quick and Uncanny Speed (the Dodge 3 trait) stack.
Bracelet of Tirin does not modify the actual cooldown of actions, instead it makes the wearer's cooldowns elapse faster, by adding 15 to the cooldown_rate stat.
p.s.
There is item in Final Adventure mod, called Selfidian mirror, it shows cooldown_rate stat (i think, this stat) for champion attacks in-game.. It shows in description of item and is auto-updated with any change.
Re: Ask a simple question, get a simple answer
Yes, you can easily show a champion's cooldown rate like any other stat, just call Champion:getCurrentStat("cooldown_rate") to obtain it.
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.
Re: Ask a simple question, get a simple answer
You have to specify the meant champion.
In example
party.party:getChampionByOrdinal(1):getCurrentStat("cooldown_rate")
In example
party.party:getChampionByOrdinal(1):getCurrentStat("cooldown_rate")