Useful scripts repository
Posted: Fri Sep 14, 2012 11:18 am
Hi,
since I'm trying to do many new things in the dungeon I'm creating, I use the scripts a lot. It sometimes takes a long while to figure out how stuff works so I thought to myself: why not share the good stuff with others, maybe they can use it too! Or if they don't need it like this, they can at least learn a bit how the scripting works in this game.
So here I'll be sharing some scripts that I think fit in that category.
And as others have posted their scripts too, I'll try to maintain the following index. If you want your script added, just post it in this thread. If your script is so large that it needs it's own thread and you want it added below point 3, just write me a PM.
1) Basic scripts
1.1) Dungeon scripts:
2) Advanced scripts
2.1) Dungeon scripts:
3) Scripting frameworks or other large scripts in their own thread
since I'm trying to do many new things in the dungeon I'm creating, I use the scripts a lot. It sometimes takes a long while to figure out how stuff works so I thought to myself: why not share the good stuff with others, maybe they can use it too! Or if they don't need it like this, they can at least learn a bit how the scripting works in this game.
So here I'll be sharing some scripts that I think fit in that category.
And as others have posted their scripts too, I'll try to maintain the following index. If you want your script added, just post it in this thread. If your script is so large that it needs it's own thread and you want it added below point 3, just write me a PM.
1) Basic scripts
1.1) Dungeon scripts:
- Set the key for "dungeon_door_wooden_locked" or "temple_door_wooden_locked" per script
- To check the state of a pressure plate
- Put torches into two torch holders in order to activate a teleporter
- To require two pressure plates to be down before a door will open
- To have a door open only when two pressure plates are pressed down
- Combination Torch Lock
- Check if the right item is put in an alcove
- Double locks / two locks on one wall
- Re-create the "Checkered Room" (for practice)
- How to Add a Scroll With Text (or a sack with contents) on an Alcove
- Temporarily boost max hit points and add hit points
- Temporarily disable all party members, to avoid damage
- Steal an item being held or equiped by a party member
- Iterator for champion inventory
- Check if anybody in your party is carrying a particular type of item
- Another item-check function
- none yet
- Add playing a sound or custom sound to a script
- Post on-screen text with a character's name
- Make a script run once (such as at the start of a map)
- Carefully place an object in a square
- To turn on a colored light when the map starts
- Adding a custom colored light source object to the dungeon
- Insta-death square
- Getting rid of "First time playing Grimrock?" on new game
- Earthquake!
2) Advanced scripts
2.1) Dungeon scripts:
- How a script can take the place of multiple similar connectors all at once
- Spawn a new button/lever/etc and then connect it to something
- Three different alcoves for left/right/middle item placement
- Connecting things between different levels per script
- Look for things in an area
- Two digit password entry
- Two word password entry
- Creating a sequence lock in 8 easy steps
- Rotating 2 portals around a room clockwise
- Conditional wall text
- Destructible tunnel blockage (cave in)
- Use a single timer's repeating signal to perform a series of events in a row
- Make a pit sequence puzzle
- Teleport to a Random Location (on the same floor)
- Combination lock with buttons
- Scripts that can test for a stat (like willpower) and do something with it (like grant experience)
- Remove (disable) a random character from the party
- A corridor where players have to face/step backwards to proceed
- Grant "pit immunity" by disabling characters temporarily
- Create Anti-Magic Zones
- Featherfall Effect
- Create a "gambling" setup/machine
- Adding NPC traders to your dungeon - buy stuff! use Alcoves + script addition
- How to teleport your party with a one-use item
- Teleporting your party to a certain location, using an item with charges
- Check for and Remove a held item, then Return the same item to Inventory
- Torch Douser/Anti-Light Area
- Dot matrix number display
- Adjustable number display and password entry
- LED Digital Wall Display: 0 - 99
- Character dialogue, random champion name retrieval and returning how many champions are alive
- Wall hooks as an alcove that only hold items that can fit on it
- Exploding barrel block
- Get distance between two objects
- True Random Number Generator
3) Scripting frameworks or other large scripts in their own thread
- Advanced Scripting Framework by JKos
- [Library] - GrimQ - a query library for Grimrock and Lua by Xanathar
- AI Framework by Ancylus
- Generic Grimrock Puzzle Frameworks by Grimwold
- SetDefaultParty: customize the starting party in your dungeon by Magus
- Tome Library by Ixnatifual
- Custom alcoves using LoG assets by Neikun, Batty and Crisman
- Set up for Randomized Loot in dungeon or monster drops
- New Spells-Thread
- [SCRIPT] Extended Spells (Spinners, Hooks...) by Diarmuid
- External Scripts / Organization / generated in-dungeon on-the-fly
- [FUNCTION] Find entities with text and method filtering by Lark