Page 1 of 2
Some Scripting Questions
Posted: Thu Sep 27, 2012 3:49 am
by welchdrew
Okay here are some questions.
1.The Item on an Alcove Puzzle on a Door.
So I read through the "How to Script the Item on an Alcove Puzzle". But I still question how to make it work with doors? It didnt really explain that. Or I didnt see it.I saw it explaing it making a sound, and deactivating teleporters, thats all. It would be nice if I got some help for that.
(In my case, I want the player to set a Cave Nettle on an Alcove to Open a door to a Vault with a few items in it.)
2. Solo Challenge.
One thing I liked in Legend of Grimrock, is when you returned Toorum's Remains to a crystal. You activated "Toorum Solo Mode" Id like to know if that would be possible with a custom dungeon, but with a different character instead of Toorum.
Re: Some Scripting Questions
Posted: Thu Sep 27, 2012 4:06 am
by Komag
How to check which item is in alcove?
explains how to open doors with this quite extensively
[Script] SetDefaultParty (SDP) talks a lot about the default party, also
Remove (disable) a random character from the party should have some clues to do what you want
Re: Some Scripting Questions
Posted: Thu Sep 27, 2012 5:28 am
by welchdrew
What about editing the Cube thing's dialouge?(And maybe making it not end the game if the player somehow manages to kill it.)
In my map I have an idea, on a few floors, an unkillable guardian will attempt to kill the player, there will be areas of the dungeon it cannot reach.(Safe Areas). Id like to make it so the cube has different dialouge and cannot enter certain areas of the floor.
Re: Some Scripting Questions
Posted: Thu Sep 27, 2012 8:27 am
by Blichew
welchdrew wrote:an unkillable guardian will attempt to kill the player, there will be areas of the dungeon it cannot reach.(Safe Areas). Id like to make it so the cube has different dialouge and cannot enter certain areas of the floor.
That is a nice idea you got there

As for limiting the movement "reach" I'd go with hidden teleporters or hidden pressure plates which can be activated by monsters only. Those specific tiles would be placed in each of the hallways leading out of your area and would teleport the monster back to the center of the room.
I know it might be just a workaround but it should work (in a way)
Blichew
Re: Some Scripting Questions
Posted: Thu Sep 27, 2012 8:42 am
by Shloogorgh
the blocker object prevents enemies from going through certain squares, but it would prevent all enemies and not just the cube
Re: Some Scripting Questions
Posted: Thu Sep 27, 2012 9:05 am
by Blichew
I'd still go with my idea of teleporters/pressure plates - just check if entity name is cube and if it is - send it back to the room.
Re: Some Scripting Questions
Posted: Thu Sep 27, 2012 9:40 pm
by welchdrew
So is changing the Cube thing's Dialouge not possible? If not that sucks then.
Re: Some Scripting Questions
Posted: Fri Sep 28, 2012 8:38 am
by antti
welchdrew wrote:So is changing the Cube thing's Dialouge not possible? If not that sucks then.
The cube was a special case in many regards in the original game so it contains massive amounts of things that are hardcoded (eg. controlled by code in the game engine as opposed to script). Concerning modding, it's likely that it will never be as versatile as the normal monsters are.

Re: Some Scripting Questions
Posted: Fri Sep 28, 2012 9:31 am
by welchdrew
antti wrote:welchdrew wrote:So is changing the Cube thing's Dialouge not possible? If not that sucks then.
The cube was a special case in many regards in the original game so it contains massive amounts of things that are hardcoded (eg. controlled by code in the game engine as opposed to script). Concerning modding, it's likely that it will never be as versatile as the normal monsters are.

I guess that means I cant just disable the dialouge altogether. Darn.
In parts of my dungeon I want the giant cube to be a threat, but at the same time I just want it to shut up!(It talks too much lol.)
Re: Some Scripting Questions
Posted: Fri Sep 28, 2012 9:52 am
by Shroom
the cube also appears to ignore blockers (or it did, I haven't tried again in 11)
Edit:- Still ignores blockers in 1.2.11 too - Not that big a deal though.