Results 1 to 4 of 4

Thread: how to use random_name in mtw2?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Icon1 how to use random_name in mtw2?

    Hi,
    sorry i'm new in modding so my question may seem very stupid

    I have Mtw2 vanilla 1.3 and i try some simple modification to campaign script. i try to spawn a new general and i get it if i use somting like

    spawn_army
    faction milan
    character random_name, named character, age 30, x 135, y 111
    traits GoodCommander 4, GoodTrader 2, GoodSiegeDefender 2
    unit SE Bodyguard exp 2 armour 0 weapon_lvl 0
    end

    but the spawned general has no name.

    If i substitute random_name with a valid name for the faction the name is corectly displayed in the game.

    Since my target is to spawn random generals with rate depending on dificulty level, i would like to get random name for them and not write infinite length script with 200 or more diferent spawn_army statement.

    the question is: do I mistake somethink?
    how to make random_name to work?
    Is random_name working only after Kingdoom installation?

    thaks

    Trux.

  2. #2
    konny's Avatar Artifex
    Join Date
    Jul 2007
    Location
    Germania Inferior
    Posts
    3,631

    Default Re: how to use random_name in mtw2?

    I think it is a Kingdom only feature, because code definitly should work.

    Team member of: Das Heilige Römische Reich, Europa Barbarorum, Europa Barbarorum II, East of Rome
    Modding help by Konny: Excel Traitgenerator, Setting Heirs to your preference
    dHRR 0.8 beta released! get it here
    New: Native America! A mini-mod for Kingdoms America

  3. #3
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: how to use random_name in mtw2?

    only for kingdoms...
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  4. #4

    Default Re: how to use random_name in mtw2?

    Quote Originally Posted by Swagger View Post
    only for kingdoms...
    Ach...

    No proplem i will arange that in a differnt way

    Thaks a lot to everyone

Posting Permissions

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