Unobtainable or Invisible Item

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
psoliagkouras
Posts: 2
Joined: Fri Jan 18, 2013 2:06 pm

Unobtainable or Invisible Item

Post by psoliagkouras »

Print("Hey Guys")

-- I would like an item that the player cannot interact with,
-- but can be used on pressure plates, can be teleported, inserted in alcoves/altars etc so

IWouldLikeToAsk()
.....if it is possible to clone an item (ex. rock) and totally remove it's model then show me how
.....esleif it is easy to change a coulple of the item's parameters so it can be transparent then which ones are those
.....esle dunno, you tell me :P
.....end
end

print("Thanks in advance")
print("PS How the hell do I insert spaces before the first character on a new line? :S")
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Unobtainable or Invisible Item

Post by Komag »

Code: Select all

hudPrint("Easy Peasy!")

function makeInvisible()
  rock:open(in_GMT)
  local a = GMT.Tools = Material Find / Replace
  a:select(existing material name)
  a:select(new material name) -- needs to be a clear one!
  a:close()
  GMT.File = SaveAs("your_dungeon_folders_models.rock_clear.model")
  defineInvis()
end
function defineInvis()
  local b = your_dungeon_folders_objects.lua
  b:open()
  b:insertCode()
end
function insertCode()
  cloneObject{
	name = "rock_clear",
	baseObject = "rock",
	uiName = "Invisible Rock",
	model = "assets/models/items/rock_clear.fbx",
  }
end

-- somebody around here made a "clear walls" object/texture setup ready to go, can't remember where.
-- if you can't find it, "dream_fog_2" is close to clear
Finished Dungeons - complete mods to play
User avatar
BuzzJ
Posts: 160
Joined: Sat Jan 12, 2013 4:06 pm

Re: Unobtainable or Invisible Item

Post by BuzzJ »

there is also the age old trick of making a transparent .dds texture, using GMT to make a new model out of that same mesh, just referring to the new texture and saving, and re-defineing a new rock obj with the same or different parameters.

As for making it non-pick-upable, not sure but it appears to definitely be doable. Something about mouseclick = nil
Post Reply