How can I make the Beach puzzle statue start with a rapier?

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
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

How can I make the Beach puzzle statue start with a rapier?

Post by GoldenShadowGS »

I want to have the statue holding a sword so I can trigger an event when it is removed. I think it has to be done with scripting, but I don't know how to accomplish it. This code isn't working.
"Attempt to index global "Rapier" (a nil value)

Code: Select all

function rapieradd()
	beach_puzzle_statue_2.socket:addItem(spawn(rapier.item))
end
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: How can I make the Beach puzzle statue start with a rapi

Post by minmay »

spawn("rapier")
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.
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: How can I make the Beach puzzle statue start with a rapi

Post by ScroLL »

Code: Select all

beach_puzzle_statue_2.socket:addItem(spawn("rapier").item);
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: How can I make the Beach puzzle statue start with a rapi

Post by GoldenShadowGS »

Works beautifully. Thanks!
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

Re: How can I make the Beach puzzle statue start with a rapi

Post by SpacialKatana »

I'm more interested in allowing something other than a rapier solve the puzzle....#

Come on Devs release the asset files and put us out of our misery !

Please.

Pretty Please :twisted:
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: How can I make the Beach puzzle statue start with a rapi

Post by NutJob »

SpacialKatana wrote:I'm more interested in allowing something other than a rapier solve the puzzle....#

Come on Devs release the asset files and put us out of our misery !

Please.

Pretty Please :twisted:

What an odd thread to yell that in to. ~laughs~

Well, I would concede but I already exhausted my one-time-use plea with the Dev's, asking to look into the Export Bug when there's External File(s) attached to the project.
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

Re: How can I make the Beach puzzle statue start with a rapi

Post by SpacialKatana »

NutJob wrote:
SpacialKatana wrote:I'm more interested in allowing something other than a rapier solve the puzzle....#

Come on Devs release the asset files and put us out of our misery !

Please.

Pretty Please :twisted:

What an odd thread to yell that in to. ~laughs~

Well, I would concede but I already exhausted my one-time-use plea with the Dev's, asking to look into the Export Bug when there's External File(s) attached to the project.
Gotta try dood , some of us just wanna crack on with the good stuff yeah :D
User avatar
TSotP
Posts: 74
Joined: Tue Oct 15, 2013 8:42 am

Re: How can I make the Beach puzzle statue start with a rapi

Post by TSotP »

I'm interested in this idea as well, i'd like to make 4 statues that required a Staff, a Shield, a Cup and a Sword to complete 4 different puzzles.

(i'm trying my hand at a Knightmare Remake... although i am not familiar enough with the game to do more than the first couple of levels)
Post Reply