Results 1 to 7 of 7

Thread: Wei Yan problem - scholar has all his good stats

  1. #1

    Default Wei Yan problem - scholar has all his good stats

    I just triggered the Liu Bei mission event after killing Jingnan and capturing the cities to bring up the Mighty Warriors event when Huang Zhong and Wei Yan join. However, Wei Yan is ordinary and one of my scholars (who is coincidentally also named Wei Yan) is now named Wei Yan General of the Standard - cardinal, and has a full biography, 13 strength, 8 attack , special attributes and so on.

    The actual general unit that spawned as Wei Yan has none of this.
    Last edited by Captain_Deckard; November 30, 2014 at 09:32 PM.

  2. #2
    Seether's Avatar RoTK Workhorse
    Join Date
    Oct 2005
    Location
    FloRida
    Posts
    5,404

    Default Re: Wei Yan problem - scholar has all his good stats

    I just looked at the script, and it is fine (and hasn't been changed in ages). I'm going to assume it was a glitch with the engine... these things happen with mods sometimes.
    Member of the Imperial House of Hader - Under the Benevolent Patronage of y2day
    A Wolf Among Sheep: A Rise of Three Kingdoms AAR

  3. #3
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,129
    Blog Entries
    35

    Default Re: Wei Yan problem - scholar has all his good stats

    It's this script part. I will need to rewrite the give_trait part by using the unique label of the spawned character instead of the 'common' name as the script will apply to the first character of that name, obviously the scholar existed before the spawned character.

    Code:
                spawn_army
                    faction france
                    character    J-1603-WeiYan, named character, age 24, x 107, y 52, portrait A238, label WeiYan_2, hero_ability Righteousness_of_Faith, battle_model weiyan_general
                    unit        JiangJun_WeiYan        exp 2 armour 0 weapon_lvl 0
                end
                inc_counter unitlimit_france 1
                console_command message_collation_set on
                console_command give_trait "J-1603-WeiYan" WeiYan 1
                console_command give_trait "J-1603-WeiYan" JbAAAA0100 1
                console_command give_trait "J-1603-WeiYan" Lz-1603-0 1
                console_command give_trait "J-1603-WeiYan" Jn1001 5
                console_command give_trait "J-1603-WeiYan" Jn2000 2
                console_command give_trait "J-1603-WeiYan" Jn3000 8
                console_command give_trait "J-1603-WeiYan" Jn4000 9
                console_command give_trait "J-1603-WeiYan" Jn5000 8
                console_command give_trait "J-1603-WeiYan" JnA1000 3
                console_command give_trait "J-1603-WeiYan" JnA2000 2
                console_command give_trait "J-1603-WeiYan" JnA3000 2
                console_command give_trait "J-1603-WeiYan" JnA4000 2
                console_command give_trait "J-1603-WeiYan" JnA5000 3
                console_command give_trait "J-1603-WeiYan" JnA6000 2
                console_command give_trait "J-1603-WeiYan" JnA7000 2
                console_command give_trait "J-1603-WeiYan" JnA8000 7
                console_command give_trait "J-1603-WeiYan" JnA9000 2
                console_command give_trait "J-1603-WeiYan" Jnxg2000 2
                console_command give_trait "J-1603-WeiYan" WeiYan1100 1
                console_command give_trait "J-1603-WeiYan" WeiYan1200 1
                console_command give_trait "J-1603-WeiYan" A1030JnSY-A 2
                console_command give_trait "J-1603-WeiYan" C3100JnPX-A 1
                console_command give_trait "J-1603-WeiYan" A1090JnLJ-A 1
                console_command give_trait "J-1603-WeiYan" Jn-orthodox 1










  4. #4

    Default Re: Wei Yan problem - scholar has all his good stats

    I solved the problem by going back to an earlier save and before triggering the event I stuck the Wei Yan scholar on a boat and sank it. This time the event worked as intended and I got the good Wei Yan.

  5. #5
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,129
    Blog Entries
    35

    Default Re: Wei Yan problem - scholar has all his good stats

    That works, too. The changed script will only affect new campaigns anyhow. I went through the rest of the script and made sure all instances of spawning with traits were fixed this way.










  6. #6

    Default Re: Wei Yan problem - scholar has all his good stats

    Not sure when it happened, but it happened again with Ma Liang and a scholar with the same name.

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,129
    Blog Entries
    35

    Default Re: Wei Yan problem - scholar has all his good stats

    The new script will take care of all instances. Doesn't make sense to issue it now as the changes will not be save game compatible and that will be the only change at the moment in the script.










Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •