This code handles cursed items. Cursed, as in non-unequippable once equipped. Cursed items must be decursed with the Remove Curse spell. Easy to add cursed items without modifying any scripts whatsoever. (Updated to stop rest removing curse effects)
Thx for the contribution. This looks really useful.
On a side note, commenting your code would be a great help. Makes it easier to know what you're doing and why in the event people want to alter or fix what you've written.
On a side note, commenting your code would be a great help. Makes it easier to know what you're doing and why in the event people want to alter or fix what you've written.
Posted by CelestialRyan at 2004-07-23 07:37:00 Voted 10.00 on 02/29/04
Anonymous, you have to save the scripts (which are separated by blocks of white space) separately. It says in the comments (preceded by //) where each script goes.
Posted by Anonymous ( 129.21.xxx.xxx ) at 2004-06-01 16:04:00
Okay, I tried saving this entire script but it did not compile. It said that there was a duplicate function implementation. What does that mean?
Posted by Anonymous ( 129.21.xxx.xxx ) at 2004-05-30 20:03:00
I'm pretty much a novice at scripting with NWNToolset
These are several codes that I have to save separately, right? Are they saved as separate scripts or as one script with several saved codes?
If my question makes no sense, can you recommend any tutorials for NWNToolset scripting?
Posted by Anonymous ( ..xxx.xxx ) at 2004-04-13 07:25:00
Great system. D&D has always been about cursed weapons for me. Never knowing whether what you just picked up is good or bad for you.
I did find one thing that needs to be fixed. Once you equip the item (I used a battle ax) you become cursed. Each time you try to equip another item (by clicking, for example, on my scythe in the quickslot) it curses you again. If you keep on clicking, you end up with all your scores at 3. But if you click once more after that, your dex goes up to 255 (I had an ac of 145, I think).
So I think what it needs is a way to curse the bearer once only. Is that possible?
Posted by CelestialRyan at 2004-02-29 01:45:25 Voted 10.00 on 02/29/04
Though I say so myself, this is a great way for anyone to implement cursed items on their server with minimum effort.
This is a compilation of the old system into a single score. There were 6 that made this score of 9.83 then rounded to 10.
Posted by CelestialRyan at 2004-01-17 02:33:00 Voted 10.00 on 02/29/04
Ok, I've updated it very slightly and added a screenshot.
-The curse as applied can be cleared with a rest, although your system does still stick the player with an unequippable weapon (hehehe!)
[Fixed]
-You need a switch to prevent the player from trying to equip a cursed item over another one; players will get stuck in a loop that left running long-enough will crash the module. You do get one grace equip if the currently equipped weapon can be dropped to the left hand; the next equip will evoke the Loop of Death.
[Hm.. I fixed this with weapon, but not sure about with rings etc.]
This is a great approach! There are a couple of nit-noidy problems which I'd stumbled into when doing the dynamic item penalties (curses) in the RTS:
-The curse as applied can be cleared with a rest, although your system does still stick the player with an unequippable weapon (hehehe!)
-You need a switch to prevent the player from trying to equip a cursed item over another one; players will get stuck in a loop that left running long-enough will crash the module. You do get one grace equip if the currently equipped weapon can be dropped to the left hand; the next equip will evoke the Loop of Death.
Its pesky. But hey, I love the way you went about prohibiting the unequip.
-Tod
Owner, Operator, and Whipping Boy of HavenWorld
This is a great approach! There are a couple of nit-noidy problems which I'd stumbled into when doing the dynamic item penalties (curses) in the RTS:
-The curse as applied can be cleared with a rest, although your system does still stick the player with an unequippable weapon (hehehe!)
-You need a switch to prevent the player from trying to equip a cursed item over another one; players will get stuck in a loop that left running long-enough will crash the module. You do get one grace equip if the currently equipped weapon can be dropped to the left hand; the next equip will evoke the Loop of Death.
Its pesky. But hey, I love the way you went about prohibiting the unequip.
-Tod
Owner, Operator, and Whipping Boy of HavenWorld
You must be Logged In to post comments in this section.