help for script??,

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
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

help for script??,

Post 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
User avatar
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

Re: help for script??,

Post 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
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: help for script??,

Post 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.
User avatar
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

Re: help for script??,

Post 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
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: help for script??,

Post 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.
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: help for script??,

Post 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
Post Reply