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!
@antti : Could sticking it thread and the superthread ?
Both of them are useful for modders to ask or found easily important threads and of course, not having 5 times the same question in 5 different threads
Vice Dellos wrote:i want to change the y-position of a secret door. i thought you had to do something like
door.go:setWorldPositionY(42) but i get an error: attempt to index field 'go' (a nil value) How are you supposed to call on it?
if you're calling it directly just use "secret_door_id_1:setWorldPositionY(42)"
It's not entierly clear when you need to add the ".go"
Jackard wrote:Is there an object that allows the player to pass through walls?
Having some trouble mixing terrain that creates invisible walls.
As in something your champion can posses to allow the party to walk through a wall OR allow you, the creator, to walk through a wall for debugging? F1 removes Collision if the latter.
Q1: Is there a way to find entities(At) on another level? So far I can only use selfor the calling object (be it a lever, the party, floor trigger, etc) with entitiesAt(x,y) and would love something like entitiesAt(level,x,y).
Q2: Is there a way to get the height of a tile? so far I have been using "self.go.map:getElevation(party.x, party.y)" but it's cumbersome.
Last edited by NutJob on Fri Oct 31, 2014 3:10 am, edited 2 times in total.
=== Software Failure ===
[string "GameObject.lua"]:0: attempt to index field 'map' (a nil value)
stack traceback:
[string "GameObject.lua"]: in function 'destroy'
[string "Map.lua"]: in function 'removeFloor'
[string "Arch.lua"]: in function 'spawn'
[string "DungeonEditor.lua"]: in function 'spawn'
clipboard:1: in main chunk
[string "DungeonEditor.lua"]: in function 'pasteEntities'
[string "DungeonEditor.lua"]: in function 'mapView'
[string "DungeonEditor.lua"]: in function 'update'
[string "Grimrock.lua"]: in main chunk