-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item enchantment spells #556
base: master
Are you sure you want to change the base?
Conversation
One thing I've been mulling over... Presumably with the python UI stuff, there will be spells that pop open their own UI. How hard would it be to make it so that spells could request that the game do existing picker (or similar) UIs? Like, if all the item affecting spells could be range touch or whatever, and then the spell script could say, "open an inventory picker for the targeted critter and give me the object," that would cover what is needed for these spells, right? That would mean less pressure to expand the (integer-based) targeting modes. It could also more easily accommodate spells that have options for how to target things. Like, the option for Grease to affect either an area or an object could be implemented via a radial option that controls how the subsequent targeting works. I think the downside would be that you need to commit to casting the spell before finding out that there's a targeting problem, so maybe this way is not ideal. |
Also... Bane weapons are a standard thing that might be nice to have. It's exactly the same effect as Undead Bane Weapon, but parameterized by creature (sub)type. So maybe you could factor out the item_condition part and use slots 0 and 1 to indicate the type and subtype expected. Probably storing However, these shouldn't stack, I think. If you have a weapon that is bane against chaotic outsiders and bane against evil outsiders, it shouldn't be double bane against chaotic evil outsiders. So a non-stacking bonus type should be reserved if this is done. Do the dice stack, too, though? That might be a problem. |
Sorry for my late reply, kids holidays :) There is a vanilla bane weapon condition, which can't be used as it only stores 3 values, so you can't remove it via item_condition_remove. |
Oh. I thought there wasn't an existing enhancement because it isn't in the crafting options. Mainly I was thinking that the IWD conversion might want a bane enhancement, because there are a lot of bane weapons in IE games. If it already exists for permanently enhanced items, it's not as urgent. The only class I can think of that creates all flavors of bane weapons temporarily is Artificer. |
Oh, I hadn't even realized that. I was aware of Bane, but always thought it was vs. undead for some reason (probably got it mixed up with Disruption). |
I don't know what IWD has, but BG has some weapons that are like "+1, +3 vs. Shapeshifters" that I assume are what got codified into "bane" in 3E (although I don't know that 'shapeshifter' is a 3.5 category). I think it also has some weirder ones, like "+1, +3 vs. X, +4 vs Y", but bane might be close enough for those, too. |
Updated Sonic Weapon to test my idea of handling buff icons for the item enchantment spells. Removing the icon works perfectly, re-adding is currently done at OnBeginRound as I didn't find a better way. Though instantanous would be much better. What are your thoughts about this buff icon idea? I really would like to give a feedback to the player, how long the item enchants last, and I don't think I can add it to the item description. If this idea is ok, I will add it to all item enchantments |
Why not do the indicator in the same condition as the |
I am not 100% sure I fully understand your comment dolio. I can't add the buff symbol to the weapon, I need to attach it to its wearer. And because you could unequip or even pass the weapon after the item was enchanted to a different PC, I have to make sure the buff icon follows as well (or is removed in case of a simple de-equip). Maybe I am missing something, but I fail to see how I could handle the buff icon in the item_condition. |
|
Ah ok ty for your help dolio! Works fine now, I updated the Sonic Weapon spell to reflect this. I added a 6th arg that holds the duration, though this arg has no real effect other than for display purpose. The end is still handled by the original condition. If I can use this for all item enchantments, I will add this to all others as well. I updated the spell_utils for this too. |
|
||
alignType = args.get_arg(1) | ||
|
||
if alignType == 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO there should be particle effect only when it's really necessary, otherwise it will wear out and start to annoy each time. Essentially aligned weapon should bypass aligned damage reduction. For example Hezrou suppose to have Damage reduction 10/good. So when alignment of a weapon does no real bonus, then there should be no particle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will look into it
If you're putting the duration on the Basically, I think the creature holding the item might get a copy of whatever you originally passed to Having it query the weapon for the duration ticking on it would be the way to fix that, I think. |
Thanks again dolio. |
It doesn't seem like the duration query for item conditions will work if there is more than one spell on the weapon that uses that system. It will just report the duration of the most recent condition (I think). |
You are right dolio, I need to add a check to verify it's the same spell_id. Will fix it |
The duration tooltip should be coupled to the spell condition, not the item enhancement condition, since the latter could be used in crafting. |
Putting a tooltip hook on the spell condition that targets the item doesn't do anything, though. It has to be on the item wield condition for it to show up on the character, even if it queries the spell condition to see if it should display. Maybe the weapon card stuff could be given a hook. But someone on the Co8 forums was remarking that it's hard to tell if e.g. Disrupting Weapon is still active in combat, and the weapon card doesn't seem like the most accessible place for that information, unfortunately. |
What's the weapon card? I guess we could expand the tooltip query for items too. But on second thought, which of these enchantments can be permanent? It seems like it's just Undead Bane. |
Sorry, by "weapon card" I mean the details you can see by clicking on the item appropriately in your inventory. You can see enhancement and keen and such there, but only conditions from the original game. And I'm not sure you can get actually get into that window while the item is equipped. I guess those are actually tied to the item condition, too, now that I think about it, because they display for permanent conditions, not actually based on the active spell. |
Updated Sonic Weapon I moved the tooltip to a secondary condition, so if you only want to apply the item condition as a permanent buff (crafting) the tooltip won't be there. In my testings this looks actually pretty solid now. If this gets approved, I would add this method to the other spells as well. |
This bunch contains two Players Handbooks spells:
and 11 Item Enchantment spells from the Spell Compendium
This is not ready to merge
Of special note:
Known Issues:
No visual feedback off the duration of the spells at all
Spell particles need to be added
Shield of Warding does not expire properly but ends in a permanent condition. This is bad :(
Missing Spells:
I have not redone the armor enchantments so far, TODO