Ask a simple question, get a simple answer

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!
User avatar
Isaac
Posts: 3190
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

minmay wrote:
Isaac wrote:The obvious choice is remove the "hand_caster" trait, but that seems to be hard coded; it does not get removed, and is impossible to add by champion:addTrait("hand_caster").
Sorry, missed this question. If you use defineTrait() to define a trait called "hand_caster" (with no additional effects) then you should be able to add and remove the trait at will and it will work like you want it to.
That's freakishly awesome! 8-) I need to remember to try things like that; it's not the first time you've mentioned re-defining traits.

** It does indeed allow for adding and removing the trait to the PCs, but it doesn't seem to allow the removal of the trait from mages.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Isaac wrote:it doesn't seem to allow the removal of the trait from mages.
Oh, that's just because traits that are inherent to a champion's race or class can't really be successfully removed. Just take "hand_caster" out of the definition for battle_mage and wizard, and manually add it at the start of the game instead for those classes, and it should work.
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.
User avatar
akroma222
Posts: 1029
Joined: Thu Oct 04, 2012 10:08 am

Re: Ask a simple question, get a simple answer

Post by akroma222 »

A good Question there zimberzimber - does anyone have a good solution to a (pseudo-paralyzed) effect...??

I have thought of attaching a hidden trait to a 'Frozen/Entangled/KO'd/whatever' Condition which will increase a champs cooldown to ... well math.huge maybe?
Then getting the Condition (or hidden trait... or a timer) to force the champion to attack or cast - returning false (so there is no attack or spell fx) which activates the cooldown.

I feel terribly hacky for even suggesting all that, can anyone point me in a better direction?

... if only conditions could be set to Hidden ....
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Why not just use the existing paralysis effect?
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.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

minmay wrote:Why not just use the existing paralysis effect?
1) Less visual clutter - GUI constantly switching between condition icons.
2) It can be removed and prevented by certain items.
3) The GUI writing 'Paralyzed' on the hero panel. (In case you want it to be something else)
4) Possible interference with other conditions applying the 'paralysis' condition and removing it upon expiration. (If adding it to conditions as a workaround)
My asset pack [v1.10]
Features a bit of everything! :D
User avatar
Isaac
Posts: 3190
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

What's an example usage for it?

Presumably, just negating player interaction with the paralyzed PC would be enough?
(Perhaps optionally flashing a visual or aural indication of the effect?)

*A custom condition can have a transparent icon; but it it will blink the other conditions (if there are any).
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Ask a simple question, get a simple answer

Post by zimberzimber »

Isaac wrote:What's an example usage for it?

Presumably, just negating player interaction with the paralyzed PC would be enough?
(Perhaps optionally flashing a visual or aural indication of the effect?)

*A custom condition can have a transparent icon; but it it will blink the other conditions (if there are any).
This is what I have now. The problem with this right now, is that if you have that slaves chains accessory, it has no gameplay effect other than nullifying evasion and protection.
My asset pack [v1.10]
Features a bit of everything! :D
User avatar
akroma222
Posts: 1029
Joined: Thu Oct 04, 2012 10:08 am

Re: Ask a simple question, get a simple answer

Post by akroma222 »

minmay wrote:Why not just use the existing paralysis effect?
That is indeed what Ive been doing so far...
SpoilerShow
Image
...and I've found it to be quite annoying + hacky for the same reasons -
zimberzimber wrote:
minmay wrote:Why not just use the existing paralysis effect?
1) Less visual clutter - GUI constantly switching between condition icons.
2) It can be removed and prevented by certain items.
3) The GUI writing 'Paralyzed' on the hero panel. (In case you want it to be something else)
4) Possible interference with other conditions applying the 'paralysis' condition and removing it upon expiration. (If adding it to conditions as a workaround)
Im pretty keen on including more conditions that would have similar - champ cant move or perform actions - type effects... Im thinking such a thing would require some serious gui plumbing.... :?

But, ya know - if we could make Conditions hidden - like we can Traits - then we could make the Paralyzed condition a hidden background condition, adding it in for things like Frozen & Entangled (another proxy Paralyzed condition too) that need the effect ....
User avatar
akroma222
Posts: 1029
Joined: Thu Oct 04, 2012 10:08 am

Re: Ask a simple question, get a simple answer

Post by akroma222 »

Isaac wrote:Presumably, just negating player interaction with the paralyzed PC would be enough?.
Yup Isaac, been using Party hooks (onMove, Turn, Attack, Cast, PickupItem etc) to try to Mimic Paralyzed effects
Negating interaction that way does work for the most part...
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Ask a simple question, get a simple answer

Post by Eleven Warrior »

Hi all.

Has anyone got the Tenticles monster working from Grimrock 1? I have tried it and it crashes the editor. Thank you :)
Post Reply