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 Share on other sites More sharing options...
Seiai Posted May 27, 2015 Share Posted May 27, 2015 uhm, i would do it just like in the game's code for wickerbottom, but for magic? inst.components.builder.magic_bonus = 1 Link to comment 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 Share on other sites More sharing options...
MrMecky Posted May 27, 2015 Share Posted May 27, 2015 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. Link to comment Share on other sites More sharing options...
Seiai Posted May 27, 2015 Share Posted May 27, 2015 @Blackbando, i suggest u actually look in wickerbottoms prefab and maybe read some more tutorials... attach your characterprefab, if u cant figure it out. Link to comment 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 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 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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.