Spell Issue, and a couple of Questions

Post » Sat Nov 17, 2012 9:17 am

Hi, I was hoping someone might be able to help me with a few things?

1.
I have a spell which works like a progressive disease. I've assigned a Global Value to track the days of infection, and I've set the spell up so that If Global=Number, effect of that number happens:

So for example, If the Global is '0', then the 0-th effect applies. If the Global is 4, the 4-th (actually 5th) effect applies), and so on.

The Spell is added to the player correctly, and works when the Global is 0, but once the global changes, the spell effects disappear completely. The way my Script is, I can tell the spell is STILL applied to the Player, but it's not showing up at all...

Any idea what might be up there?

2.
How do I make the PC Essential? I know I can use "Game.GetPlayer().SetEssential(True)", but this kicks out an error. And from looking at the Wiki, it looks like I need the base actor or something?

3.
I am having issues with Cast... Specifically, my Spell is not casting... What I have is:
ZSASotVCastMarker.MoveTo(Game.GetPlayer())TrapFireball04.Cast(ZSASotVCastMarker, Game.GetPlayer())

Any idea where I am going wrong?

4.
Any way to have faster than 1-second updates? I've set the 'RegisterForUpdate' to 0.000001, but it is still a second at the least...

Thanks for any help :smile:
User avatar
Maddy Paul
 
Posts: 3430
Joined: Wed Feb 14, 2007 4:20 pm

Post » Sat Nov 17, 2012 9:19 am

To make the player essential you would use this:
Game.GetPlayer().GetActorBase().SetEssentail()
I don't think you need to put true in because that's the default value but if it doesn't compile then try putting in true.

For your script I think removing zsasotVCastMarker should solve your problem because you have it set to cast from the marker and the player. I think, not sure if that will fix it but that's what I got so far. Let me know how it goes, best of luck :biggrin:
User avatar
barbara belmonte
 
Posts: 3528
Joined: Fri Apr 06, 2007 6:12 pm


Return to V - Skyrim