Custom Valyrian Swords Questions.

For specific technical issues and questions.

Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 06:38

So i have added tons of custom swords to agot in my own personal submods not published yet im still new to modding and i had a few questions about how to get the swords to be inheritable by my children after I ineveitably die Ive searched all over to see if i could find a solution but i cant seem to find one any help would be greatly appreciated thanks! :D
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 06:57

Edit NVM doesn't have inheritance code in it.
Last edited by SinStar87 on Fri Aug 18, 2017 08:00, edited 1 time in total.
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 07:40

I have swords already added i just dont know how to make them inheritable
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by salatrin » Fri Aug 18, 2017 07:48

im pretty sure the reason he mentioned that mod to you is so you can check the code he used to see how HE made his own custom sword inheritable as part of the main mod to get a better idea of what YOU need to do to do the same.

As its easier to see how someone else did it with their own little submod as opposed to checking through all the files in the main mod to see how its done as the submods sole purpose would be to do the very thing your looking to do, so alot less that you would need to look through to see how its done
salatrin
 
Posts: 68
Joined: Thu May 04, 2017 23:27

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 07:51

oh i see lol ok thank You Sin Love you're Mods btw :)
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 07:58

my bad I thought it had the inheritance code in it. Here's the code for generic swords, basically just change out valyrian_steel for whatever your trait code is and do it for each new sword.
Spoiler: show
Code: Select all
      if = {
         limit = { trait = valyrian_steel NOT = { has_character_flag = do_not_inherit_sword } }
         if = {
            limit = {
               is_ruler = yes
               current_heir = {
                  dynasty = ROOT
                  is_alive = yes 
                  NOT = { trait = valyrian_steel }
               }
            }
            current_heir = {
               add_trait = valyrian_steel
               character_event = { id = 250277 }
            }
            add_trait = dead_target
         }
         if = {
            limit = { NOT = { trait = dead_target } is_patrician = yes }
            family_palace = {
               current_heir = {
                  if = {
                     limit = { NOT = { trait = valyrian_steel  } }
                     add_trait = valyrian_steel
                     character_event = { id = 250277 }
                     ROOT = { add_trait = dead_target }
                  }   
               }               
            }            
         }
         if = { #grandchild if dynasty head
            limit = {
               NOT = { trait = dead_target }
               NOT = { dynasty = 0 }
            }
            dynasty_head = {
               if = {
                  limit = {
                     NOT = { character = ROOT }
                     is_alive = yes
                     NOT = { trait = valyrian_steel  }
                     can_inherit_titles_trigger = yes
                     grandchild_of_root_trigger = yes
                  }
                  add_trait = blackfyre
                  character_event = { id = 250277 }
                  ROOT = { add_trait = dead_target }
               }   
            }   
         }
         if = {
            limit = { NOT = { trait = dead_target } }
            random_child = {
               limit = {
                  dynasty = ROOT
                  is_alive = yes
                  can_inherit_titles_trigger = yes
                  NOT = { trait = valyrian_steel }
                  NOT = {
                     ROOT = {
                        any_child = {
                           dynasty = ROOT
                           is_alive = yes
                           NOT = { character = PREVPREV }
                           is_older_than = PREVPREV
                           NOT = { lower_tier_than = PREVPREV }
                           can_inherit_titles_trigger = yes
                           NOT = { trait = valyrian_steel }
                        }
                     }
                  }
               }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
               ROOT = { add_trait = dead_target }
            }   
         }
         if = {
            limit = { NOT = { trait = dead_target } }
            random_child = {
               limit = { dynasty = ROOT is_alive = yes NOT = { trait = valyrian_steel } }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
               ROOT = { add_trait = dead_target }
            }   
         }   
         if = {
            limit = { NOT = { trait = dead_target } }
            random_sibling = {
               limit = { dynasty = ROOT is_alive = yes NOT = { trait = valyrian_steel } }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
               ROOT = { add_trait = dead_target }
            }   
         }   
         if = {
            limit = { NOT = { trait = dead_target } }
            random_dynasty_member = {
               limit = { is_alive = yes NOT = { trait = valyrian_steel } }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
               ROOT = { add_trait = dead_target }
            }
         }
         if = {
            limit = { NOT = { trait = dead_target } }
            random_child = {
               limit = { is_primary_heir = yes is_alive = yes NOT = { trait = valyrian_steel } }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
               ROOT = { add_trait = dead_target }
            }
         }
         if = {
            limit = { NOT = { trait = dead_target } }
            random_child = {
               limit = { is_alive = yes NOT = { trait = dragon } NOT = { trait = valyrian_steel } }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
               ROOT = { add_trait = dead_target }
            }
         }
         if = {
            limit = {
               NOT = { trait = dead_target }
               spouse = { is_alive = yes NOT = { trait = valyrian_steel } }      
            }
            spouse = { add_trait = valyrian_steel character_event = { id = 250277 } }
            add_trait = dead_target
         }
         if = {
            limit = {
               NOT = { trait = dead_target }   
               liege = { NOT = { character = ROOT } NOT = { trait = valyrian_steel } }
            }
            liege = { add_trait = valyrian_steel character_event = { id = 250277 } }
            add_trait = dead_target
         }
         if = {
            limit = {
               NOT = { trait = dead_target }   
               current_heir = { NOT = { character = ROOT } NOT = { trait = valyrian_steel } }
            }
            current_heir = {
               add_trait = valyrian_steel
               character_event = { id = 250277 }
            }
            add_trait = dead_target
         }
         if = {
            limit = {
               NOT = { trait = dead_target }   
            }
            random_vassal = {
               limit = { NOT = { trait = valyrian_steel } }
               add_trait = valyrian_steel
               character_event = { id = 250277 }
            }
         }
         remove_trait = dead_target
      }
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 08:00

I belive i saw that kind of code in one of the text files but i didnt know what pat i should copy and edit so this helps alot thank you :D
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 08:02

You're welcome :) Good luck with it.
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 08:26

another question im looking at the text files atm and i cant figure out where this would go would it be in events ?
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 08:48

Yeah as I said, I thought that that mod had the inheritance code. It doesn't, here's an example mod for my personal dynasty sword.
https://www.dropbox.com/s/tttyift81y6nm ... le.7z?dl=0
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 09:06

i just dont know what file to put the inheritance code in lol im looking at youre mods and the example but it doesnt show what file to paste it in unless im not seeing things right :P
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 09:14

sword_example_events.0 make copies of the code in the immediate = {} section for every sword you add and then just change collins_sword with your sword code. Easiest way to do this is copy the code to a new file and replace_all in that file then copy it back to the mod file, rinse and repeat. then add an entry for each sword underneath the others in the valyrian_steel.999
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 09:41

ok ive got it all saved in a new text document i have done everything but i need to know the name of the file im supposed to be editing in events is it valyrian_steel_events? Would it just be easier to just make them reforgeible options?
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 10:12

you should be editing the event file sword_example_events from the dropbox link
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 10:14

oh so easy! thank you!
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 10:15

You're welcome again :)
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Fri Aug 18, 2017 11:28

The mod doesnt seem to be working ill get in game and add the trait onto my character but there is no icon im not sure what im doing wrong i made sure it was a fresh install as well and still nothing im taking a break for the night im exhausted ill try again tommarow night.
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Fri Aug 18, 2017 17:51

You'd have to post your mod for download so people can see. Best guess without that, you didn't make an interface file to like your graphic to the trait.
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Re: Custom Valyrian Swords Questions.

PostPosted by BerichasDawn » Sat Aug 19, 2017 01:40

i was using youre mod that you linked i tested youre sword and it didnt work .. so i fiddled with it got it to show up in game but it was a blank so i tried to add the file youre talking about and it still didnt work but ill figure it out sorry to bug you again :P
BerichasDawn
 
Posts: 15
Joined: Fri Aug 18, 2017 06:01

Re: Custom Valyrian Swords Questions.

PostPosted by SinStar87 » Sat Aug 19, 2017 01:49

Alright my bad, I forgot the interface file when pulled it out my mod. Updated the link.
User avatar
SinStar87
 
Posts: 3129
Joined: Sat Feb 09, 2013 17:24

Next

Return to Technical Discussion

Who is online

Users browsing this forum: No registered users and 1 guest