Author Topic: Incantation when using the items  (Read 564 times)

Legacy_Unelith

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Incantation when using the items
« on: June 12, 2013, 12:35:26 pm »


               Hi, i have got a problem.

I have made a prestige class - Warlock. Since i couldn't add a spellbook to new class, i made a spell system for him based on items. But when he uses the item, the conjuration animation doesn't play, and there is no incantation. I tried giving items unique power, and making a script that forces the owner to cast a specific spell, but then, after activating the item, PC played the item activation animation first, what took one round, and then cast the spell, what took one round too. Two rounds for a single spell is too much. How can i make the item spellcasting with the incatations and one round duration? Or is it impossibile?

(Sorry for bad Eng., it isn't my native language)
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Incantation when using the items
« Reply #1 on: June 12, 2013, 05:17:21 pm »


               Trying to get rid of the item animation, in my opinion will be more hassel then it is worth.  

If I was going to set up, what you are trying to do,  I would just use chat commands myself.   There fore the warlock would not have nither the standard bioware spell book or items for casting.   They would simply speak the 'magic word'  for there spell to cast it.   The PC could either cast the spell by typing the 'word' in chat or creating a quick slot macro to speak the word.
               
               

               
            

Legacy_The Amethyst Dragon

  • Hero Member
  • *****
  • Posts: 2981
  • Karma: +0/-0
Incantation when using the items
« Reply #2 on: June 12, 2013, 07:48:02 pm »


               

Lightfoot8 wrote...

Trying to get rid of the item animation, in my opinion will be more hassel then it is worth.  

If I was going to set up, what you are trying to do,  I would just use chat commands myself.   There fore the warlock would not have nither the standard bioware spell book or items for casting.   They would simply speak the 'magic word'  for there spell to cast it.   The PC could either cast the spell by typing the 'word' in chat or creating a quick slot macro to speak the word.

Now that's a good idea, Lightfoot8.

The chat script can force the ActionCastFakeSpellAtObject() action on the caster without the lag for the animations (and projectiles), and scripting can be used to keep track of whatever's powering the spells (mana, spell pool, whatever).

For targeting, just appropriate one of the "instant feats" already included (or make a new one) that sets the target as a variable on the caster, resetting the target object each time it's used.

The only difficulty may be in the caster keeping track of available "magic words" if there are many spells/powers available, but text macros in quickslots can always help.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Incantation when using the items
« Reply #3 on: June 12, 2013, 08:03:45 pm »


               I also really like the chat based system for this, but it is hard to cast a spell at a target with that.

For an ability that requires a target I would use class based feats that show up in the class menu. You could create a set of feats and spells for a generic special ability or a feat/spell pair for each special abillity. In either case you can adjust the 2da to have animations or voice however you want. I made generic spell like ability feats that can be added and removed as item properties on the PC skin with various ranges etc... for my familiar system which you can download here and canibalize for your purposes. Look in the appropriate 2DAs for the lines you need.

2DAs to investigate:
  • cls_feat_ifam.2da   - contains new radial menu feats and spells for the familiars. you would want to crete one for your warlock.
  • feat.2da    - For new abilities see lines 2012+
  • spells.2da    - See new Spells at lines 1000+
  • iprp_feats.2da    - Bonus Feats for new abilities and spells lines 200+ these are item propoerties. i used item properties so that i can give and take away spells on the fly. you probably do not have to do this.
  • iprp_spells.2da    - New Spells added lines 1000+
  • des_crft_spells.2da   - New spells added for item targeting purposes lines 1013+

As far as keeping track goes I would provide text feedback (SendMessageToPC) every time a magic word is cast to tell the player how many uses remain. You could also provide a feat for the class menu which launches a conversation that allows the player to see how many uses remain of various abilities as well as the ability to activate a spell ability. You could also load up the class menu with spell like abilities as the PRC did (and I did for innocuous familiars)
               
               

               


                     Modifié par henesua, 12 juin 2013 - 07:19 .
                     
                  


            

Legacy_Unelith

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Incantation when using the items
« Reply #4 on: June 14, 2013, 02:39:10 pm »


               Thank you all for replying. Like henesua said, chat system would be pretty unfriendly since my class has really a lot of targeted spells. The item system worked nicely, since the items could be dropped on the bar and i could give them icons similar to spell icons, what looked almost like spells and item charges were used to determine remaining uses. But i will check out the feat system you gave me link to in few minutes.


!EDIT!
Ok i tried this, i have made a feat that links to a spell that has all Warlock cantrips as subspells. But now when i get the main feat, my warlock immediatly learns all cantrips. How can i add a requirement to subspells? For example only if i have a specified feat, the assigned subspell appears in the cantrip feat menu.
               
               

               


                     Modifié par Unelith, 15 juin 2013 - 12:09 .