Results 1 to 5 of 5

Thread: help with scripting

Hybrid View

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

    Icon5 help with scripting

    i'm trying to execute a script in the campaign_script after i spawn an army with a named character.

    the script i'm trying to make is the named character from the spawned army is to become married to a princess then becomes the faction's heir, and remove the former heir from being the current heir.

    is this the basic lines of it:

    Code:
        monitor_event CharacterMarriesPrincess faction <faction_name>
            if I_EventCounter <event> == 1
                <character_name>, <princess_name>
            end_if
            monitor_event BecomesFactionHeir faction <faction_name>
                <character_name(from above)>
                console_command give_trait Factionheir
            end_monitor
            monitor_event CeasedFactionHeir faction <faction_name>
                <character_name(exheir)>
                console_command give_trait Exheir
            end_monitor
        end_monitor
    Last edited by LordGodfrey; October 18, 2009 at 06:01 PM. Reason: putting in the code part.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: help with scripting

    Not sure about the marriage part and if the heir stuff will work. But you will certainly have to make the current heir an ex-heir first before you can make the new guy the heir.
    Your entry CharacterMarriesPrincess is simply a monitor and not a command. Can't remember reading about a command with marriage.











  3. #3

    Icon1 Re: help with scripting

    so make sure the current heir becomes ex-heir then make new guy heir. Then how would i make it a command? I was asking also for syntax/form for what is needed to be in each one. No offense, thanks for the help. Who would i talk to for more help on this?

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: help with scripting

    Augustus Lucifer is quite a handy guy with a script.
    Konny comes to mind as well.










  5. #5
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: help with scripting

    There's no commands relating to marriage, so you can't force marriages via script. In fact there's little if any commands that do anything with regards to the family tree, something that some mods have despaired about given the way they intend to handle factions.

Posting Permissions

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