Jump to content


Photo

changing item abilities


  • Please log in to reply
7 replies to this topic

#1 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 17 April 2018 - 06:45 AM

Okay, here is maybe a simpler question.

 

Does anyone have a sense of whether/how you can change the item abilities granted by an equipped item?

 

Think of, say, the Ring of Energy: you hit the backpack icon, and it has the pseudo-Agannazar's Scorcher ability.

 

What if I want to switch that for a Fireball ability?  So the Ring would mimic the Wand of Fire, letting you use one ability or the other.  Can that be done for equipped items, not just quickslot items?  Either with an actual facility to change the item header used, or alternatively triggered by some manner of spell?



#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5148 posts

Posted 17 April 2018 - 07:03 AM

Let's use Near Infinity. You just open the .itm file, double click the Magical (3) ability responsible, then double click the Cast spell effect 146 opcode effect and then change the resource on it to a different one. Which weidu you can do similar thing... I don't have Ring of Energy, so that's from a mod.
And yeah, the opcode 146 uses spells... which tend to alert the Cowled Wives in BG2 with fireballs etc, cause those are arcane magic.

Edited by The Imp, 17 April 2018 - 07:08 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 17 April 2018 - 07:21 AM

No, I don't mean change the item.  I mean allow you to toggle it back and forth in-game.  Like I said, look at the Wand of Fire: it chucks Fireballs at enemies, but if you right-click it and choose the other ability, it starts shooting Scorcher rays instead.  Right-cllick and go back to the first ability: now it's back to Fireballs.

 

I want to replicate that with something that does not sit in a quickslot.

 

And, if possible, condition the ability to toggle it on some characteristic of the character.  So you can't toggle it until you have a certain proficiency, or a certain kit, or make the toggle ability only usable by a certain gender, etc.



#4 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5148 posts

Posted 17 April 2018 - 07:51 AM

Wand of fire has just two Magical (3) abilities. One for fireball, the other for the Sco...

Edited by The Imp, 17 April 2018 - 07:59 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#5 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 17 April 2018 - 07:53 AM

If an item has multiple abilities, you just select one from the backpack/equipment menu button.
The quickslot toggle is just a UI feature designed to save you time selecting between fireball or scorcher whenever you use the wand.
 

And, if possible, condition the ability to toggle it on some characteristic of the character.

I very much doubt it, even if you tried modding the UI.


Retired from modding.


#6 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5148 posts

Posted 17 April 2018 - 08:34 AM

I very much doubt it, even if you tried modding the UI.
Erhm, an ability could be made to change the current ability tabs... for a kitted wizard. This is because of the spells it uses could be tagged with the kit usability. The item itself would not need to originally do a thing, except have a spell that casts an #214 effect that changes the item to a different one, one that has an effect to revert the item and have what ever other effects the kit should have from the item. It's not brilliant, but should be possible at least.

Edited by The Imp, 17 April 2018 - 08:36 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#7 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 17 April 2018 - 10:58 AM

I had that thought. The "toggle" ability could simply remove the item itself from your inventory and replace it with an alternate version.

I don't remember to what extent the "create item in slot" opcode is bugged. This would need to create an undroppable item in either the helmet slot or the mythical ammo4 slot.

#8 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 18 April 2018 - 06:54 PM

To answer my own question: opcode 143 is bugged when adding items to weapon slots, but it works just fine to put items in other slots.  Put an undroppable item in the helmet slot, and as long as it has the "use without identifying" flag its item abilities will immediately appear in the UI.

 

Which means I can simply switch out one item for another, and vice versa, in order to "toggle" item abilities.  :)