Jump to content


Photo

opcode 243: destroy item charges - or generally, infinite-use items


11 replies to this topic

#1 subtledoctor

subtledoctor
  • Modders
  • 2314 posts
  • Gender:Male

Posted 18 January 2018 - 08:33 PM

Anyone have any idea if this can take a negative value, to recharge items?

 

EDIT - or, generally, is there a way to have an item be usable at-will, without a kludge like giving it 99 uses per day, or something?


Edited by subtledoctor, 22 January 2018 - 09:27 AM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#2 CamDawg

CamDawg

    Just a simple country Hyper-Chicken

  • Gibberling Poobah
  • 9388 posts
  • Gender:Not Telling

Posted 18 January 2018 - 09:19 PM

List itself as the used-up item?


I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#3 kjeron

kjeron
  • Members
  • 84 posts

Posted 18 January 2018 - 11:02 PM

Set the ability to zero maximum charges.

Edited by kjeron, 18 January 2018 - 11:03 PM.


#4 subtledoctor

subtledoctor
  • Modders
  • 2314 posts
  • Gender:Male

Posted 19 January 2018 - 09:01 PM

Set the ability to zero maximum charges.

 

Excellent.  Gonna use this in my psionics mod.

 

Also have it working nicely for spontaneous specialist casting. 


Edited by subtledoctor, 19 January 2018 - 09:07 PM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#5 subtledoctor

subtledoctor
  • Modders
  • 2314 posts
  • Gender:Male

Posted 19 January 2018 - 10:34 PM

Except, damn, I guess that means abandoning the spellcasting speed/aura cleansing mechanics of regular spells. Using items seems to be 1) once/round... regardless of Alacrity? And 2) somewhat slow... not 'casting speed 10,' but not 'casting speed 0' either. And 3) Uninterruptible.

Hmm... not sure I can live with all 3 of those...

On the bright side I think an infinite-use quickslot misc item can work wonderfully as a toggle to turn spontaneous casting on and off.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#6 Avenger

Avenger
  • Modders
  • 3762 posts
  • Gender:Male
  • Location:Hungary

Posted 19 January 2018 - 11:28 PM

I would like to help, but it is unclear what exactly you need. The 'cast spell' opcodes use (have option to use) the same actions that you get with normal casting, so alacrity shouldn't be a problem.

Opcode 243 works on multiple items in the inventory.  It can recharge items (which i didn't know)!

 

Speed of items is really a problem, especially if you use them to cast spells. Only the newest EE supports the targeting mode of 'self immediate' (7) in items.

Is that what you actually need? An item that casts your spells?



#7 subtledoctor

subtledoctor
  • Modders
  • 2314 posts
  • Gender:Male

Posted 20 January 2018 - 12:11 PM

2 different applications:

 

1) An item of type "miscellaneous" to be used from a quickslot.  Activating it will increase the possessor's caster level and his spells will thus have a different function.  The initial ability that increases caster level must be able to activate instantly, and the player must then immediately be able to cast a spell.

 

My brief test last night, on BGEE v2.4/iOS, indicates that header target 7 does not work.  And when I use target 5, the item ability takes a couple seconds to activate.  Seems to be a bit slow, like drinking a potion or something.  H\What I need here is, using the item and then casting a spell should not be very much different (time-wise) from simply casting a spell in the on its own.  Instantaneous effect, plus no aura clouding, is an absolute necessity.  Also it must be usable at-will, infinitely.

 

(This is for my "spontaneous specialists" mod.  Each specialist kit has the ability to use their memorized spell slots to cast any spell in their specialty school, instead of the memorized spell. So a conjurer with only magic missiles left in memory will always have the ability to instead summon a monster; and an invoker with only summoning spells memorized will always have the ability to instead blast away with magic missiles; illusionists with only Acid Arrows memorized will have the ability to turn invisible; etc.)

 

2) Psionics.  I need 4 abilities to appear, each of which uses opcode 214 with header target 7 to choose from several other spells.  This can be done via a quickslot item using opcode 214; or preferably, it can be an item in a different slot (headgear) with 4 ability headers to be activated from the "item abilities" button (each of which will use opcode 214 as described).  These are my psionic powers.  I've balanced the system around instantaneous use and with no aura clouding.  While that is not an utter necessity, it would be ideal. 

 

My psionics are casting time 0 and with no aura clouding (opcode 214, target 7, just like NRD) so you can use them more than once per round.  However, each successive use imposes a brief casting speed penalty, so using them that quickly will force you to concentrate longer and harder, and be subject to interruption.  I think it's a risk that works well, and I would like to preserve it.  But to do so via an item, it must be able to activate (from a quickslot or from the item abilities button) as quickly as you can activate a spell from the innate abilities bar.  That part seems to be in doubt.

 

(The ultimate point of moving these from the innates bar, where they currently work fine, is that at-will innate abilities jump over to the far right every time you use them, and it's driving me mad.  Infinite-use items, coded as I described above, would keep the psionic/caster level abilities in the same place, which is good UI practice and makes it much more pleasant for the player to use them.)


Edited by subtledoctor, 20 January 2018 - 07:44 PM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#8 Grammarsalad

Grammarsalad
  • Modders
  • 457 posts
  • Gender:Male

Posted 20 January 2018 - 09:56 PM

...
Opcode 243 works on multiple items in the inventory.  It can recharge items (which i didn't know)!
 
...


Wait, really?!? Is it a matter of setting a negative value in param 2?

#9 Avenger

Avenger
  • Modders
  • 3762 posts
  • Gender:Male
  • Location:Hungary

Posted 20 January 2018 - 11:02 PM

 

...
Opcode 243 works on multiple items in the inventory.  It can recharge items (which i didn't know)!
 
...


Wait, really?!? Is it a matter of setting a negative value in param 2?

 

it is the number of charges to subtract from the current charges. So, i guess, it works both ways. 



#10 subtledoctor

subtledoctor
  • Modders
  • 2314 posts
  • Gender:Male

Posted 22 January 2018 - 04:57 AM

Confirmed that header target 7 does not work for a quickslot item. Shame.

Is it worth putting something on Redmine about it?

If not, I'm going to abandon this idea and go back to "follow the queen" at-will innate abilities. At least for spontaneous spell conversion. I'll have to think about/playtest whether it works okay for psionics...

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#11 Avenger

Avenger
  • Modders
  • 3762 posts
  • Gender:Male
  • Location:Hungary

Posted 22 January 2018 - 09:15 AM

Confirmed that header target 7 does not work for a quickslot item. Shame.

Is it worth putting something on Redmine about it?
 

Nope, it is already there.



#12 subtledoctor

subtledoctor
  • Modders
  • 2314 posts
  • Gender:Male

Posted 22 January 2018 - 09:37 AM

Btw here's a little screencast of my ipad showing how spontaneous specialist casting works using an item to toggle it on and off.  Imoen the Illusionist goes back and forth between regular casting and spontaneous casting, and then casts an Illusion spell that she did not have memorized.  We'll probably just use an innate ability as the toggle mechanism until items support header target 7.

Attached Files


Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users