Blackbando Posted May 26, 2015 Share Posted May 26, 2015 Hello again! I require some help on how to add a perk to my character.I am using Extended Sample Character, and am trying to do what wickerbottom has (All science machine recipes known, science machine giving her alchemy engine level) but for magic (Already has prehastitator recipes known, prehastitator is like Shadow Manipulator.)I currently have no clue how to do this, and even tried using someone else's advice on how to do regular wickerbottom science perk from a different topic (It didn't work, probably involves where to put it.) Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/ Share on other sites More sharing options...
Seiai Posted May 27, 2015 Share Posted May 27, 2015 (edited) uhm, i would do it just like in the game's code for wickerbottom, but for magic? inst.components.builder.magic_bonus = 1 Edited May 27, 2015 by Seiai Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-640999 Share on other sites More sharing options...
Blackbando Posted May 27, 2015 Author Share Posted May 27, 2015 Yes, I tried that, but, as stated above, I don't know WHERE to put it, since the mod crashed last time I tried doing both regular science AND another attempt but naming it magic (In the opposite order.) Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641014 Share on other sites More sharing options...
MrMecky Posted May 27, 2015 Share Posted May 27, 2015 (edited) I pretty sure it goes inside your characters prefab code like so, local fn = function(inst) inst.components.builder.magic_bonus = 1 end Inside where all your other characters stats go. Edited May 27, 2015 by MrMecky Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641051 Share on other sites More sharing options...
Seiai Posted May 27, 2015 Share Posted May 27, 2015 (edited) @Blackbando, i suggest u actually look in wickerbottoms prefab and maybe read some more tutorials... attach your characterprefab, if u cant figure it out. Edited May 27, 2015 by Seiai Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641295 Share on other sites More sharing options...
Blackbando Posted May 27, 2015 Author Share Posted May 27, 2015 @Seiai and @MrMeckyThank you for the help, but, it didn't EXACTLY work.This time, the science version worked, but changing science to magic didn't work. Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641306 Share on other sites More sharing options...
Seiai Posted May 27, 2015 Share Posted May 27, 2015 @Blackbando, well, then try this: inst.components.builder.magic_bonus = 2 Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641336 Share on other sites More sharing options...
MrMecky Posted May 28, 2015 Share Posted May 28, 2015 Having a magic bonus of 2, like @Seiai suggested, will give your character the ability to create prestihatitator items. inst.components.builder.magic_bonus = 2 Having a magic bonus of 3 will give your character the ability to create shadow manipulator Items without such a station. inst.components.builder.magic_bonus = 3 It might also be worth noting that both the science machine and the alchemy machine provide a magic bonus of 1, meaning if your character has a magic bonus of 2 then your character will be able to craft shadow manipulator items from both the regular science machines. Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641522 Share on other sites More sharing options...
Mobbstar Posted May 28, 2015 Share Posted May 28, 2015 Magic is a level higher so it isn't teased from the beginning. The science machine actually gives you one point for magic (which only unlocks the prehatitattrattitaitor) Link to comment https://forums.kleientertainment.com/forums/topic/54457-magic-wickerbottom-perk/#findComment-641624 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now