Jump to content

Recommended Posts

Posted

@tunaisafish

 

Thanks! :thumbsup:

 

 

@AwesomeSkyrimDude

 

Example:

 

 

  Reveal hidden contents

 

 

 

@avenger404

 

 

 

 

 

@phnx

 

Maybe there's something weird about the conditions, and you just can't use them to create new things... Try using just one condition:

 

GetMovementDirection == 0

 

So the magic effect should become active whenever the player is standing still.

 

 

@Linky1

 

Add this script to your spells:

 

 

  Reveal hidden contents

 

 

 

@scrivener07

 

:thumbsup:

  • Replies 272
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

I'm stuck again. :(

 

I want a different unit (my conjured minion) to do something when I cast a spell. For the sake of this example let's say I want to heal it 20 points. The problem is, either I place a MagicEffect on myself and use event OnSpellCast but then I don't know how to refer to my minion actor. Or else I place the MagicEffect on the minion instead, but then the script won't respond when I cast a spell myself, only when the minion casts a spell.

 

:facepalm:

Edited by EnaiSiaion
Posted

So their solutions are either:

"Replace all summoning spells" (unacceptable)

"Use the unreliable area search function and have 50% chance to grab your charmed warlock's atronach instead of yours"

 

I almost got what I needed - a spell that causes the target minion to instantly RemoteCast a spell back at you, thereby placing a MagicEffect on you that can listen for OnSpellCast while the akCaster is the minion.

 

This would have worked perfectly if the minion didn't cast the spell in the direction he is facing instead of at me.

BEH

Posted (edited)

I got it working how I want now basically, figured another way with no loop, just need to tweak times now to something that feels right. I am curious though, what if I only wanted this effect to apply to players that are single wielding one handed swords? I should be able to set those conditions on the perk itself right?

 

Edit: One other question, I currently have it set up where the perk has 2 levels, at level one you can only ever stagger the enemy, at level 2 you can disarm with very good timing. I have seperate scripts running to do this, would it be better to have only 1? Cause right now I think its running both together and that seems unnecessary.

Edited by AwesomeSkyrimDude
Posted (edited)

@EnaiSaion

 

So are you using the random search function or did you figure out some other way to find a reference to your summon?

 

 

@AwesomeSkyrimDude

 

The conditions in the perk window are only used if you happen to be adding the perk through the skills menu.

 

If you were using a perk entry point, you could also condition when the perk comes into effect. But there is no way to place conditions on a perk that adds an ability, so you will have to set the conditions on the ability itself.

 

I really haven't messed around much with perks, so I don't know if they're both running. I don't think so, but I don't know for sure.

Edited by fg109
Posted (edited)

I think they are based on the debug notification I have set up that it's outputting to me. Maybe there's something else going on though I don't know.

 

Edit: I think I know how I'm gonna change stuff around now and everything should be good. I notice though that in your code example you said "GetEquippedItemType(0) == 7" and said that means melee weapon, is there a specific value for 1 handed swords?

Edited by AwesomeSkyrimDude
Posted (edited)

Ah ok thank you.

 

Edit: (Man I edit my posts a lot, I figure its better than making new ones all the time) Ok I have it working only with one handed swords but I think its still running both scripts together, I see there is a removespell command and I was going to put that in the script for the second level of the perk to make it remove the first one but I have to have then classified as abilities to be applied by the perk, not spells, and from what I can tell there is no removeability command.

Edited by AwesomeSkyrimDude
Posted

Abilities are considered spells.

 

An alternative, instead of removing abilities, is to only have 1 ability. The first rank of the perks adds the ability to the player. The second rank of the perk does nothing. The ability will have two magic effects. The first one is conditioned to run when the player has rank 1 but not rank 2 in the perk. The second runs when the player has both ranks of the perk.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...