Aller au contenu

Photo

Simulated spellcasting


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Aedrielle

Aedrielle
  • Members
  • 11 messages
As I have never played a spellcaster in NWN saga I've little understanding of the whole magic system.
Please help :)

Id like to let players to combine spell effects and components to create their own version of a spell.
There is a gui for selecting all elements needed. And there is a custom spell script bound to a mag's only spell to check for all chosen options. Sort of a warlock interface.

It will work in battle no problem.

But:
I'd like to allow for preparing spells in advance as well.
1. make a scroll to use later, or
2. add (through script) a new spell to the spell book.

And now the problems:
I cannot  add every possible combination to the spell.2da There will be too many and the purpose is for players to be creative and come up with unique combinations ;)

* I would need a generic spell for both in spells.2da (and iprp* for scrolls). Is it possible to change a spellbook entry's name (probably not) or as scroll name on the fly (it is just an item? probably yes) to reflect the spell "content"?

* Can I add concentration checks while casting from scrolls (as they just represent prepared spells) ?

* Can I fake it all with ActionCastSpellAtObject() with concentration check and spell failure and all to simulate normal casting?
(If the last one is true, I can use just that to add prepared spells to gui list and fire custom scripts.)

Any other options for doeing something like this?

#2
rjshae

rjshae
  • Members
  • 4 485 messages
That's a potentially huge number of spell combinations to deal with, and it would undoubtedly require considerable work to implement. A possible simplification may be to have a fixed set of formulae that a character can research (kind of like the crafting system, but for spells). There's probably a lot of spells that wouldn't make sense to combine, so you can likely eliminate those as combinations. Perhaps restrict spell combos to the same range, duration, target type and saving throw type. Still, you'd have a mass of work to do, including setting up all the spell descriptions, icons and so forth.

Modifié par rjshae, 10 septembre 2010 - 08:56 .