how to read out a spell's base cost?

Post » Thu Jun 21, 2012 8:02 pm

Well as the topic says:
Does anyone has an idea of how to read a spells base cost? This is not just restricted to CK, if there are 3rd party tools offering such a function like SKSE/Script Dragon pls tell me. For SKSE and CK i havent found a way to do this but maybe you have, so pls tell me :D

thanks
User avatar
Oceavision
 
Posts: 3414
Joined: Thu May 03, 2007 10:52 am

Post » Thu Jun 21, 2012 3:53 pm

according to http://www.gamesas.com/topic/1382093-wipz-skyrim-script-extender-skse/page__hl__skse they don't have a function like that yet though they are taking requests/suggestions so...
User avatar
Katey Meyer
 
Posts: 3464
Joined: Sat Dec 30, 2006 10:14 pm

Post » Thu Jun 21, 2012 5:50 pm

Thanks, requested. I simply don't want to wait till they might add it in a few months. Well, I know a work-heavy workaround: I add each BaseCost of each spell to a globalvariable which I then place inside a formlist. This makes it accessible from almost everywhere. Still, just a "badass" workaround :/.
Anyone any further ideas?
User avatar
Tyrel
 
Posts: 3304
Joined: Tue Oct 30, 2007 4:52 am

Post » Thu Jun 21, 2012 11:32 pm

you could constantly poll the player's magicka stat with getAV
then compare that to the getAV after an OnSpellCast() event

the main issue you'd have there would be getting around magicka damaging effects
User avatar
FirDaus LOVe farhana
 
Posts: 3369
Joined: Thu Sep 13, 2007 3:42 am

Post » Thu Jun 21, 2012 7:02 pm

you could constantly poll the player's magicka stat with getAV
then compare that to the getAV after an OnSpellCast() event

The problem is i need to know this BaseCosts before the OnSpellCast()-Event :wink:. Additionally I try to avoid polling by using fitting events.
User avatar
Kieren Thomson
 
Posts: 3454
Joined: Sat Jul 21, 2007 3:28 am

Post » Thu Jun 21, 2012 6:21 pm

If it reduces your work slightly, UESP Wiki lists all player-usable spells' base costs.

I really wish there were more events than we have access to.
User avatar
Lily Evans
 
Posts: 3401
Joined: Thu Aug 31, 2006 11:10 am

Post » Thu Jun 21, 2012 4:51 pm

I don't know of any other events that would be helpful in this case. The vanilla solutions that I would try are all going to be sloppier and less precise than what SKSE will let you do (eventually)

if you need it before the OnSpellCast() event fires, you could use a scripted ability that uitlizes the IsCasting condition (returns true when the player is charging a spell)

without a GetSpellCost function it won't be much more helpful than OnSpellCast though
User avatar
Oscar Vazquez
 
Posts: 3418
Joined: Sun Sep 30, 2007 12:08 pm


Return to V - Skyrim