Ok, I've added some more features to the portals code:
- Spells (including blobs) now travel through portals
- Portals won't spawn on walls which have torch holders, levers, buttons, locks or alcoves on them
I've just updated the lab with the latest version (https://docs.google.com/folder/d/0B-rVm ... FEMUU/edit), and next to where you find the portal rods (level 2, test room 6) I've added a teleportation field that leads to a small puzzle room to show what can be done now in terms of puzzles.
Let's see if you can solve it!
As soon as this portal code is fixed, I'll also upload the source of the EXSP lab.
[EXSP] Portal for Grimrock [RELEASED + Source]
Re: [EXSP] Portal for Grimrock [RELEASED + Source]
Hi everyone,
Sorry for the delay, but here it is finally released, if anyone wants to use this. All the source code, textures, and models, including the two portal rod items are in there, so if any scripters/modders around are interested in how the illusion was made, everything's here for you!
Download link: https://docs.google.com/folder/d/0B-rVm ... sp=sharing
To use, unzip the contents in mod_assets\exsp\spells, and add exsp_loadSpell("exsp_portal") to exsp_init.lua.
Before using the portals, you must define which wallsets you use in your dungeon. Currently, Portal for Grimrock only supports dungeon and temple wallsets, but I can make other custom ones per request in you need one for your mod.
To define wallsets, paste the following in a script entity somewhere, and replace the strings in the middle with "temple" or "dungeon" in the order of your levels.
The two portal rods are named portal_rod_orange and portal_rod_blue, make sure to put them somewhere in the dungeon, as they are the only way to cast the portal spells.
Sorry for the delay, but here it is finally released, if anyone wants to use this. All the source code, textures, and models, including the two portal rod items are in there, so if any scripters/modders around are interested in how the illusion was made, everything's here for you!
Download link: https://docs.google.com/folder/d/0B-rVm ... sp=sharing
To use, unzip the contents in mod_assets\exsp\spells, and add exsp_loadSpell("exsp_portal") to exsp_init.lua.
Before using the portals, you must define which wallsets you use in your dungeon. Currently, Portal for Grimrock only supports dungeon and temple wallsets, but I can make other custom ones per request in you need one for your mod.
To define wallsets, paste the following in a script entity somewhere, and replace the strings in the middle with "temple" or "dungeon" in the order of your levels.
Code: Select all
function autoexec()
exsp.delay(1,
function(self)
exsp_portal.defineWallsets({
"temple",
"temple",
"temple",
"dungeon",
})
end
)
end