Jump to content

Photo

Trying to replicate Wuuthrad effect, but for humans.

script wuuthrad perk script help help

  • Please log in to reply
2 replies to this topic

#1
BerzerkerKidd

BerzerkerKidd

    Journeyman

  • Members
  • Pip
  • 21 posts

So, I'm trying to make a bow that does the opposite effect of Wuuthrad, so instead of it doing +%20 damage to elven races, I want it to do +%20 damage to human races. Problem is, it just won't work no matter how closely I copy the script that adds the WuuthradPerk... any tips or ideas?

 

 

Here's what I have so far, as well as any relevant info

Scriptname DoveMagicBowDamageScript extends ObjectReference  
{Perk Property MEADovePerk auto

Event OnEquipped(Actor akActor)
	akActor.AddPerk(MEADovePerk)
EndEvent

Event OnUnEquipped(Actor akActor)
	akActor.RemovePerk(MEADovePerk)
EndEvent}

Perk Property MEADovePerk  Auto  

Properties:

Property name: MEADovePerk

Type: Perk

Value: MEADovePerk

 

I also made the perk in the exact same way as the CA06BladeOfYsgramorPerk, but obviously subbing in my weapon under 'weapon' and the human races as the targets

 

 

 

Any help is super appreciated! Thank you in advance!


Edited by BerzerkerKidd, 23 September 2020 - 02:57 AM.


#2
aoh125

aoh125

    Journeyman

  • Members
  • Pip
  • 47 posts

Whats with the { and } ?  Maybe removing them might make it work as intended. also you are defining the property twice unless im missing something about those signs and they do have a purpose in this.

 

if this is just for the player then below may apply/help but if not i dont think npc's can benefit from perks anyway.

 

you could also try using game.getplayer.AddPerk(MEADovePerkor playerref instead of akactor. not sure if it would matter in this case but some things its picky about that. playerref would require adding in another property but is ultimately supposed to be faster. Actor Property PlayerRef Auto  

PlayerRef.AddPerk(MEADovePerk)


Edited by aoh125, 24 September 2020 - 11:26 PM.


#3
BerzerkerKidd

BerzerkerKidd

    Journeyman

  • Members
  • Pip
  • 21 posts

Whats with the { and } ?  Maybe removing them might make it work as intended. also you are defining the property twice unless im missing something about those signs and they do have a purpose in this.

 

if this is just for the player then below may apply/help but if not i dont think npc's can benefit from perks anyway.

 

you could also try using game.getplayer.AddPerk(MEADovePerkor playerref instead of akactor. not sure if it would matter in this case but some things its picky about that. playerref would require adding in another property but is ultimately supposed to be faster. Actor Property PlayerRef Auto  

PlayerRef.AddPerk(MEADovePerk)

 

Sorry for late reply! but I literally just copied the script that's attached to wuuthrad, so anything that you see is what Bethesda did, I just swapped the wuuthrad perk with my own... so unless wuuthrad doesn't work either, which tbh with their track record I wouldn't honestly be surprised, then idk how they did it :/ I'll try what you mentioned at some point and see if that works







Also tagged with one or more of these keywords: script, wuuthrad, perk, script help, help

Page loaded in: 1.088 seconds