Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
When dying? You could change it into an item-object of itself...
- AndakRainor
- Posts: 674
- Joined: Thu Nov 20, 2014 5:18 pm
Re: Ask a simple question, get a simple answer
I thought about living monsters !
Edit : found ! flying monsters have a disabled gravity component...
Edit : found ! flying monsters have a disabled gravity component...
Re: Ask a simple question, get a simple answer
Has anyone brought the LoG 1 Cube boss over to LoG 2? I looked it up and can't seem to get it working yet. Figured I ask here before spending more time on it, just in case!
-
- Posts: 13
- Joined: Wed Feb 04, 2015 9:05 pm
Re: Ask a simple question, get a simple answer
Hey guys
I'm trying to write a simple two pressure plate puzzle for the practice, and i went to the useful scripts forum to look at how I would do it and I've done this script:
function platedown()
if dungeon_pressure_plate_1.floortrigger:isDown() and dungeon_pressure_plate_2.floortrigger:isDown() then
dungeon_door_portcullis_1.door:open()
else
dungeon_door_portcullis_1.door:close()
end
end
But it doesn't work. What am I doing wrong? Do I have to use connectors too?
Thanks in advance
I'm trying to write a simple two pressure plate puzzle for the practice, and i went to the useful scripts forum to look at how I would do it and I've done this script:
function platedown()
if dungeon_pressure_plate_1.floortrigger:isDown() and dungeon_pressure_plate_2.floortrigger:isDown() then
dungeon_door_portcullis_1.door:open()
else
dungeon_door_portcullis_1.door:close()
end
end
But it doesn't work. What am I doing wrong? Do I have to use connectors too?
Thanks in advance
Re: Ask a simple question, get a simple answer
Can you be more specific about how "it doesn't work"? Without any information about the problem it's hard to help you.
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
-
- Posts: 13
- Joined: Wed Feb 04, 2015 9:05 pm
Re: Ask a simple question, get a simple answer
nothing at all happens when I place items or stand on the pressure plates. The plates themselves work as intended in terms animation and things but they don't open the door when put down and I havent accidently deactivated them or anything
When I connected the pressure plates to the LUA script it keeps telling me that "isDown" Is a nil value.
When I connected the pressure plates to the LUA script it keeps telling me that "isDown" Is a nil value.
Re: Ask a simple question, get a simple answer
I can't see isDown() in the scripting reference, but isActivated() and isDeactivated() are
Re: Ask a simple question, get a simple answer
That's because FloorTriggerComponent has no visible field called isDown. You probably wanted FloorTriggerComponent:isActivated().rlewarne04 wrote:nothing at all happens when I place items or stand on the pressure plates. The plates themselves work as intended in terms animation and things but they don't open the door when put down and I havent accidently deactivated them or anything
When I connected the pressure plates to the LUA script it keeps telling me that "isDown" Is a nil value.
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
-
- Posts: 13
- Joined: Wed Feb 04, 2015 9:05 pm
Re: Ask a simple question, get a simple answer
Hmm Thanks Minmay I ripped that script straight from the forum. I'll try it when I get a chance
Thank you
Thank you
Re: Ask a simple question, get a simple answer
Old script lingo from the first game. Many, many changes have come about with LoG2... LoG1 scripts will quite often be broken when used in LoG2. Always check which game thread you found the script posted in.rlewarne04 wrote:Hmm Thanks Minmay I ripped that script straight from the forum. I'll try it when I get a chance
Thank you