Results 1 to 9 of 9

Thread: needs help about spawn_character and kill_character

Hybrid View

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

    Default needs help about spawn_character and kill_character

    I made a short scripting about kill a labeled diplomat (Grima123),and add a new diplomat to give france.

    but it didn't work.

    monitor_event PreFactionTurnStart FactionType milan
    and DiplomaticStanceFromFaction france = AtWar
    and I_CharacterExists Grima123
    spawn_character france Grima, diplomat, age 42, portrait Grima, x 164, y 189
    console_command kill_character Grima123
    terminate_monitor
    end_monitor

  2. #2
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: needs help about spawn_character and kill_character

    Can you show the entry for Grima123?


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  3. #3

    Default Re: needs help about spawn_character and kill_character

    did you mean this at descr_strat.txt?

    character Grima, diplomat, male, age 42, label Grima123, portrait Grima, x 184, y 153
    traits NaturalDiplomatSkill 1 , GoodDiplomat 1

  4. #4
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: needs help about spawn_character and kill_character

    Ok so where exactly does the script not work?


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  5. #5

    Default Re: needs help about spawn_character and kill_character

    not this scripting only.
    all scriptings weren't work.

  6. #6

    Default Re: needs help about spawn_character and kill_character

    logs here

    17:35:44.939 [game.script] [error] Script parsing error at line 7086, column 53 in mods/Third_Age/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    Unrecognised character data string (portrait)
    17:35:44.939 [game.script] [error] Script parsing error at line 7090, column 1 in mods/Third_Age/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    Couldn't create a script from file mods/Third_Age/data/world/maps/campaign/imperial_campaign/campaign_script.txt

  7. #7
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: needs help about spawn_character and kill_character

    In order to do modding properly you need to get to a state where all things do work. You need to create a script that does work. Then add your new portion, and see if it works there.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  8. #8

    Default Re: needs help about spawn_character and kill_character

    i think i was wrong here.



    spawn_character france Grima, diplomat, age 42, portrait Grima, x 164, y 189


    and i change it like this

    spawn_character france Grima, diplomat, age 42, x 164, y 189, portrait Grima


    amazing,it worked

  9. #9
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: needs help about spawn_character and kill_character

    Oh, great.

    Yeah, try to follow CA's usage on these things. Usually their commands expect input in a certain order, and if it's out of order then sometimes things break.

    Also, try to put labels at the end of the line, which again follows strict CA usage.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

Posting Permissions

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