Spawn event troops

For specific technical issues and questions.

Spawn event troops

PostPosted by Mirith » Sat Oct 22, 2016 02:02

Hello!

I was wondering... Is there way, how to spawn event troops - unsullied in capital? I mean by command. Just for test purposes. I'd like to see, how it works.

And also, are there province modifiers affecting only enemy troops? Like -20% enemy movement speed.
Mirith
 
Posts: 116
Joined: Mon Oct 10, 2016 23:19

Re: Spawn event troops

PostPosted by Mirith » Sat Oct 22, 2016 23:09

Uhm?
Mirith
 
Posts: 116
Joined: Mon Oct 10, 2016 23:19

Re: Spawn event troops

PostPosted by SinStar87 » Sat Oct 22, 2016 23:34

Mainly not sure what you mean by 'command'. If you mean an event, my landless adventurer and cheat mod has code for event troops.

You could have an event with;
trigger = {
in_command = yes
NOT = { <trait/modifier that lowers speed> }
location = {
holder_scope = {
any_current_enemy = {
character = ROOT
}
}
}
}

immediate = {
add_<trait/modifier>
}

then another event for when they leave enemy territory, but it'd be resource intensive since it'd have to have low mtth.
User avatar
SinStar87
 
Posts: 3138
Joined: Sat Feb 09, 2013 17:24

Re: Spawn event troops

PostPosted by Mirith » Sun Oct 23, 2016 01:15

Well i meant, if its possible to spawn in game event troops, mainly unsullied via command console.
For instance by event, what offers you newly trained unsullied. Aka... If O force trigger event of offering. Unsullied, will it gove to me the troops?

And also... Are there really modifiers, mainly province modifiers affecting only enemies? I'd like to finally write down about. Rhoynar expansion, but im out of technical information (still learning painfully, how to mod).
Mirith
 
Posts: 116
Joined: Mon Oct 10, 2016 23:19

Re: Spawn event troops

PostPosted by SinStar87 » Sun Oct 23, 2016 01:26

IDK how the event is setup, my cheat mod has a decision to spawn troops in the capital, you can edit to spawn unsullied.

Pretty sure not.
User avatar
SinStar87
 
Posts: 3138
Joined: Sat Feb 09, 2013 17:24

Re: Spawn event troops

PostPosted by Mirith » Sun Oct 23, 2016 03:31

Okey. Thank you very much :)

And looks like province modifiers will probably be more efficient as character modifiers :/
Mirith
 
Posts: 116
Joined: Mon Oct 10, 2016 23:19

Re: Spawn event troops

PostPosted by Tiffany » Sat Sep 23, 2017 02:53

Create a mod with a decisions folder and put this in a text file there:

Code: Select all
decisions = {

   show_custom_cheats = {

      potential = {
          ai = no
            NOT = { has_character_flag = show_custom_cheats }
      }

      allow = {
         always = yes
      }

      effect = {
            set_character_flag = show_custom_cheats
      }

      revoke_allowed = {
         always = no
      }

        ai_will_do = {
            factor = 0
        }
   }

   hide_custom_cheats = {

      potential = {
          ai = no
            has_character_flag = show_custom_cheats
      }

      allow = {
         always = yes
      }

      effect = {
            clr_character_flag = show_custom_cheats
      }

      revoke_allowed = {
         always = no
      }

        ai_will_do = {
            factor = 0
        }
   }

   spawn_unsullied_10k = {

      potential = {
          ai = no
            has_character_flag = show_custom_cheats
      }

      allow = {
         always = yes
      }

      effect = {
         hidden_tooltip = {
            capital_scope = {
               ROOT = {
                  spawn_unit = {
                     province = PREV
                     owner = ROOT
                     disband_on_peace = no
                     troops = {
                        unsullied = { 10000 10000 }
                     }
                     attrition = 0
                     reinforces = yes
                     reinforce_rate_multiplier 5                     
                  }
               }
            }
         }
      }

      revoke_allowed = {
         always = no
      }

        ai_will_do = {
            factor = 0
        }
   }
}


This will spawn 10k unsullied at your capital. The decision will be available in the intrigue menu.
Tiffany
 
Posts: 2
Joined: Fri Sep 15, 2017 03:21


Return to Technical Discussion

Who is online

Users browsing this forum: No registered users and 0 guests