Cover

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
User avatar
Ashina
Posts: 16
Joined: Fri Oct 10, 2014 3:16 pm

Cover

Post by Ashina »

Hello who can i found a cover for log2 ? for the dvd box
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Cover

Post by NutJob »

Ashina wrote:Hello who can i found a cover for log2 ? for the dvd box
findEntityByName("dvd_box_1") should work.
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Cover

Post by Doridion »

NutJob, you're a bad scripter, there be better I think :

Code: Select all

function FoundTheGrail()
DvdName = "LoG"
Version = 2
   for item.merchant:getName() ~= DvdName do
      self.go.google:getImage()
   else
      self.mood.annoy:enable()
   end

   if DvdName + Version = "LoG"."2" then
      self.go.google:download()
   end
end
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Cover

Post by NutJob »

What? it works! my fightForTheRight(party.party, "beer", desk.x, desk.y, "girlfriend_07", true) works just fine too.
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Cover

Post by Eleven Warrior »

Good job Doridion that's how things should be done the complete scrip with everything added including how to activate the script:)
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Cover

Post by Doridion »

NutJob wrote:fightForTheRight(party.party, "beer", desk.x, desk.y, "girlfriend_07", true)
Arf .... tested and got an issue for me (( When enter it, i got for result [Pregnant] .... seems "beer" must be replaced by "milk" ((
Eleven Warrior wrote:Good job Doridion that's how things should be done the complete scrip with everything added including how to activate the script:)
Hmmm ... no, I seen something :

Code: Select all

function FoundTheGrail()
DvdName = "LoG"
Version = 2
   for item.merchant:getName() ~= DvdName do
      if DvdName + Version = "LoG"."2" then
         self.go.google:getImage()
         self.go.google:download()
      end
   else
      self.mood.annoy:enable()
   end
end
Better like that isn't it ? Placed my condition outside the loop ... stupid geek i am ((
Post Reply