cabroose Posted February 29, 2012 Share Posted February 29, 2012 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 More sharing options...
DarkLylyth Posted February 29, 2012 Share Posted February 29, 2012 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 More sharing options...
cabroose Posted February 29, 2012 Author Share Posted February 29, 2012 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() >= racewendigoGame.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 More sharing options...
DarkLylyth Posted February 29, 2012 Share Posted February 29, 2012 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 More sharing options...
cabroose Posted February 29, 2012 Author Share Posted February 29, 2012 (edited) 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 autoperk property Da11cannibalism auto event oninit(actor target) if (target.getactorbase().getrace() == wendigorace) game.getplayer().addperk(da11cannibalism)endifendevent which compiled fine but still does not work...urgh... Edited February 29, 2012 by cabroose Link to comment Share on other sites More sharing options...
Jerry60k Posted February 29, 2012 Share Posted February 29, 2012 Try making a new spell and call the DA11 spell effects in that spell. Set your new spell as an ability. I will look at this this evening also if you still have problems. Link to comment Share on other sites More sharing options...
cabroose Posted February 29, 2012 Author Share Posted February 29, 2012 appreciate the help jerry :) the difficulty here is, the perk adds an extra option when looting bodies (while sneaking). without that...erm...functionality? yeah lets go with that....without that, the spell wouldn't work. :( i think... Link to comment Share on other sites More sharing options...
cabroose Posted February 29, 2012 Author Share Posted February 29, 2012 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 autoperk property da11cannibalism autoQuest 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")endifendfunction 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 More sharing options...
DarkLylyth Posted February 29, 2012 Share Posted February 29, 2012 (edited) 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 autoperk property da11cannibalism autoQuest 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")endifendfunction 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 :Pthanks 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 February 29, 2012 by DarkLylyth Link to comment Share on other sites More sharing options...
cabroose Posted February 29, 2012 Author Share Posted February 29, 2012 HA...i have no idea :P it was in the perk script so i figured it was important /shrug. just so you know, for some reason it will always give the blessing of namira, even if you change all the spells. kinda working on that one ;) Link to comment Share on other sites More sharing options...
Recommended Posts