Page 1 of 1

Cover

Posted: Fri Oct 31, 2014 5:33 pm
by Ashina
Hello who can i found a cover for log2 ? for the dvd box

Re: Cover

Posted: Fri Oct 31, 2014 5:52 pm
by NutJob
Ashina wrote:Hello who can i found a cover for log2 ? for the dvd box
findEntityByName("dvd_box_1") should work.

Re: Cover

Posted: Fri Oct 31, 2014 6:04 pm
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

Re: Cover

Posted: Fri Oct 31, 2014 6:08 pm
by NutJob
What? it works! my fightForTheRight(party.party, "beer", desk.x, desk.y, "girlfriend_07", true) works just fine too.

Re: Cover

Posted: Fri Oct 31, 2014 6:17 pm
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:)

Re: Cover

Posted: Fri Oct 31, 2014 6:18 pm
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 ((