question about armor set (custom)

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
Azel
Posts: 808
Joined: Thu Nov 06, 2014 10:40 pm

question about armor set (custom)

Post by Azel »

I am wanting to make it so that if the player finds the entire Lurker Set as well as a unique cloak, they have permanent Invisibility cast upon them. Only when wearing all armor pieces. Anyone know how to make that happen?

:o
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: question about armor set (custom)

Post by Eleven Warrior »

Hey bro :). I not to sure but, Akroama may have the solution to your problem. I thinks he has done this errrr I think, so you may want to PM him :)
User avatar
THOM
Posts: 1281
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: question about armor set (custom)

Post by THOM »

Use Champion:setConditionValue() with invisibility.

in the EquipmentItem Definition include something like
onRecomputeStats = function(self, champion)
if champion:isArmorSetEquipped("lurker") then
champion:setConditionValue("invisibility", 70000)
end
end,
Have a look how the've done the bonuses for wearing complete armoursets in the maincampaign.

And you have to define somehow removeCondition otherwise the party is the rest of the game invisible.

Another question: Is it wise to give the party such a strong feature? I for myself wouldn't see why I ever should remove this condition from my party. And it gives a remakable benefit.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: question about armor set (custom)

Post by minmay »

Keep in mind that invisibility disappears whenever the party attacks. You will probably want to reapply the invisibility every frame.
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.
Azel
Posts: 808
Joined: Thu Nov 06, 2014 10:40 pm

Re: question about armor set (custom)

Post by Azel »

Ah interesting. I will experiment with this a bit more before making a final decision. Lots to think about but could be a fun experiment. Thanks for all the replies :D
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: question about armor set (custom)

Post by Komag »

I set that up (Lurker set - invisibility) in Master Quest, but I'm sure it works differently than in Grimrock 2
Finished Dungeons - complete mods to play
Azel
Posts: 808
Joined: Thu Nov 06, 2014 10:40 pm

Re: question about armor set (custom)

Post by Azel »

ah, great minds think alike lol

I think that the Lurker Set + the Cloak of Night (from the DM resource), make a great invisibility set.
Post Reply