Jump to content

giving a custom race a perk as a racial...


cabroose

Recommended Posts

aloha, sorry to bother you...

 

Trying to create my own playable race, based on the wendigo. I'm trying to give this race the ability to munch on corpses from the get go. but i've tried everything i can think of and its not working. i made a copy of the da11cannibalism perk and set the conditions to check for my race. applied both the cannibalism abilities to my race powers thing. but none of it is working.

 

what am i too thick to notice?

 

appreciate any help garnered from this :)

Link to comment
Share on other sites

its funny, because Im creating a gnoll custom race that has the same racial ability :/

 

from what I can gather, you would have to create a papyrus script on a magic effect that adds the Cannibalism perk to the PC.

 

http://www.creationkit.com/AddPerk_-_Actor

 

The Add perk command can be found here. However, I am a first time programmer, and have so far been unable to get the script to work. I am wondering if you perhaps would need some kind of syntax before and after

Link to comment
Share on other sites

yeah i have tried that but i keep getting some crappy error about EoF or something...

 

been messing around with

 

Scriptname cannibalscr extends perk hidden

 

Function AddPerk(Perk DA11Cannibalism) native

 

Game.GetPlayer().GetRace() >= racewendigo

Game.GetPlayer().AddPerk(DA11cannibalism)

 

 

this kinda BS...but i need a monkey with a type writer cuz i cant code for peanuts :(

Link to comment
Share on other sites

http://forums.nexusmods.com/index.php?/topic/563322-scripting-help/page__p__4569625__hl__%2Badd+%2Bperk__fromsearch__1#entry4569625

 

This thread kind of helped me understand programming a bit. I wonder if it might help you. I used the third one down, and it compiled succesfully. It hasn't worked in game yet, but its a start. I think it might be that I'm not putting in the Cannibalism perk ID correctly. Do you know where I could find that?

Link to comment
Share on other sites

http://forums.nexusmods.com/index.php?/topic/563322-scripting-help/page__p__4569625__hl__%2Badd+%2Bperk__fromsearch__1#entry4569625

 

This thread kind of helped me understand programming a bit. I wonder if it might help you. I used the third one down, and it compiled succesfully. It hasn't worked in game yet, but its a start. I think it might be that I'm not putting in the Cannibalism perk ID correctly. Do you know where I could find that?

 

 

in the editor the cannibalism perk is "DA11cannibalism"

 

currently trying a spell, based on a new magical effect i created with a script of

 

Scriptname cannibal extends Perk

 

race property Wendigorace auto

perk property Da11cannibalism auto

 

event oninit(actor target)

if (target.getactorbase().getrace() == wendigorace)

game.getplayer().addperk(da11cannibalism)

endif

endevent

 

which compiled fine but still does not work...urgh...

Edited by cabroose
Link to comment
Share on other sites

excuse the double post...

 

I appear to have solved my lil problem, figured i would share my solution with darklylyth since he/she/misc was/is/was in the same boat/car/pony.

 

what i did waaaasss....created a new magical effect, constant and on self. with the code

 

Scriptname cannibal extends Perk

 

race property Wendigorace auto

perk property da11cannibalism auto

Quest Property PlayerVampireQuest Auto

 

Spell Property DA11CannibalismAbility Auto

 

Spell Property DA11CannibalismAbility02 Auto

 

Function Fragment_0(ObjectReference akTargetRef, Actor akActor)

Game.GetPlayer().StartCannibal(akTargetRef as Actor)

DA11CannibalismAbility.Cast(Game.GetPlayer(), Game.GetPlayer())

DA11CannibalismAbility02.Cast(Game.GetPlayer(), Game.GetPlayer())

 

;Game.GetPlayer().AddSpell(DA11CannibalismAbility)

;Game.GetPlayer().AddSpell(DA11CannibalismAbility02, abVerbose= false)

endfunction

 

 

function addperk(actor akactor)

if akactor ==(game.getplayer().getrace() == wendigorace)

game.getplayer().addperk(da11cannibalism)

debug.notification("it worked...yaaay")

endif

endfunction

 

impressive eh? mostly just copied and pasted from various other items in the creation kit but to hell with you it works, kinda.

 

next, create a spell, ability, constant and self...use the above effect and set that as a racial ability and...with anyluck...you should be munching corpses in no time.

 

i'm off to enjoy this sense of satisfaction while it lasts :P

Link to comment
Share on other sites

excuse the double post...

 

I appear to have solved my lil problem, figured i would share my solution with darklylyth since he/she/misc was/is/was in the same boat/car/pony.

 

what i did waaaasss....created a new magical effect, constant and on self. with the code

 

Scriptname cannibal extends Perk

 

race property Wendigorace auto

perk property da11cannibalism auto

Quest Property PlayerVampireQuest Auto

 

Spell Property DA11CannibalismAbility Auto

 

Spell Property DA11CannibalismAbility02 Auto

 

Function Fragment_0(ObjectReference akTargetRef, Actor akActor)

Game.GetPlayer().StartCannibal(akTargetRef as Actor)

DA11CannibalismAbility.Cast(Game.GetPlayer(), Game.GetPlayer())

DA11CannibalismAbility02.Cast(Game.GetPlayer(), Game.GetPlayer())

 

;Game.GetPlayer().AddSpell(DA11CannibalismAbility)

;Game.GetPlayer().AddSpell(DA11CannibalismAbility02, abVerbose= false)

endfunction

 

 

function addperk(actor akactor)

if akactor ==(game.getplayer().getrace() == wendigorace)

game.getplayer().addperk(da11cannibalism)

debug.notification("it worked...yaaay")

endif

endfunction

 

impressive eh? mostly just copied and pasted from various other items in the creation kit but to hell with you it works, kinda.

 

next, create a spell, ability, constant and self...use the above effect and set that as a racial ability and...with anyluck...you should be munching corpses in no time.

 

i'm off to enjoy this sense of satisfaction while it lasts :P

thanks a ton cabroose :DDD you just saved me several nights of frustration :) When my mod is finished, I will add you into my list of contributors :)

 

Quick Q, what does the vampire quest part come from, and what is it used for?

Edited by DarkLylyth
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...