Bashing placeable for a loot
You can use this script with any placeable and set an item as a loot from bashing it. For example - player may bash the table to get a club.
Features:
- Chance that the placeable will be too damaged in bashing, destroying the loot
- Give XP for the successful bash (also can be negative, to penalize)
- Alignment shift
- Message to be displayed after the bashing (when bashing is part of the story, for example)
Some ideas for usage:
- Use the bashing script for simple mining and resource gathering (when you don't mind the tool and the competence), such as the wooden table that will provide some planks for crafting
- Bash the bookcase to find a secret door behind it (the script provides XP and the message)
- Bash the holy altar to strengthen your chaotic/evil disposition
- Bash the cage to free the prisoners (the script provides XP, the message and the alignment shift, just set the values)
- Bash the broken chair that will provide you with a spiked club (for more bashing around)
- Or, just place the script and you don't have to set anything else, so that all placeables leave a broken item, not just disappear
Arvirago, thank you for voting. I am glad that you find this script suitable for your game. Your improvements are also really nice.
Posted by Arvirago at 2008-03-07 01:45:27 Voted 8.00 on 03/07/08
Finally I made the following changes:
- No module variables. Only local variables (from the placeable) and default values (from the script itself). Because I will have my custom blueprints with correct default values (i.e. wooden table).
- Only 2 variables for alignment shift: one for the good/bad axis (-100 to 100) and one for the legal/chaos axis (-100 to 100).
- XP and alignment shift options will require a unique tag for the placeable, since they will only work once for each PC.
- The placeable will respawn after a while. _________________________ Reino de Aldor
Posted by Arvirago at 2008-03-07 01:16:41 Voted 8.00 on 03/07/08
Good idea and very well scripted.
I'll just modify it a bit, so broken placeables "come into life" again after some time, so my PW can recover from all those barbarian smashers :)
I will also grant XP only the first time you break each placeable (that will require a unique tag saved in my database). _________________________ Reino de Aldor
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone