Page 1 of 1

help for script??,

Posted: Tue Nov 04, 2014 9:21 am
by bacchus1974
i begin in the script.

i would like a example of script for open secret door when take a objet in a alcove or statue like a raper.

please for your help

Re: help for script??,

Posted: Tue Nov 04, 2014 7:12 pm
by bacchus1974
i have do that but it s no good

i have error attempt to call method.."containeditems

function itemPuzzle()
-- iterate through all contained items on alcove, checking for a matching name
for i in itemPuzzleAlcove :containedItems() do
if i.name == "compass" then
beach_secret_door_1:open()
break
end
end
end

Re: help for script??,

Posted: Tue Nov 04, 2014 7:16 pm
by NutJob
The sheer volume of examples of this is mind-boggling. Keep searching and you should find a handful of examples within a few short minutes.

Sorry, I'm a dirty American and I took that statement directly from the Declaration of Independence.

Re: help for script??,

Posted: Tue Nov 04, 2014 9:11 pm
by bacchus1974
nobody to help me i want just created a script to open a door in put a objet on statue like in legend of grimrock2 with the raper in begin game

please help me

Re: help for script??,

Posted: Tue Nov 04, 2014 9:19 pm
by NutJob
bacchus1974 wrote:nobody to help me i want just created a script to open a door in put a objet on statue like in legend of grimrock2 with the raper in begin game

please help me
Sorry, but ~laughs~ ...raper.

Re: help for script??,

Posted: Tue Nov 04, 2014 10:11 pm
by Lark
What NutJob is saying (besides the humorous language error - you meant rapier which is radically different) is that this has already been answered time and time again. A simple search will reveal threads where this was already answered. It's great to have this community to receive and give help, but please spend a little time searching to see if the work has already been done.

That said, I searched for "check item in alcove" and found viewtopic.php?f=22&t=7698 among others. Not that I've tried it yet, but it shows how to open a door, secret or otherwise, by placing items in an alcove. Wallah! 8-)

Cheers, -Lark