Results 1 to 5 of 5

Thread: Great Heathen Army event

  1. #1
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    397

    Default Great Heathen Army event

    Hello friends, long time since i´ve came here, but covid gave me a small vacations, so let´s mod a bit .So...has the title says, i need help in this heathen army event because i´m making a small mod about britain dark ages and want to implement this.....i´m zer0 in scripting so unfortunately this must be a copy paste because i can´t understand scripting very well, sorry about that ...., basically i need a script that spawn an army in the shores of Newcastle Upon Tyne and that army must go to York, besige the town and capture it....I will try to make danes playable in brittania campaign if not i´ll use just the rebels/slave faction.Sorry to ask this kind of help but i asked this once and gently some guys tried to help giving me some exemples and tutorials but it didn't work I couldn't do this myself.Can someone help me in this?Many thanks in advance .......by the way, here are some images of my litle mod if you want to give an opinion I would appreciate it. See you soon .
    Attached Thumbnails Attached Thumbnails 0487.JPG   0490.JPG  
    Homo Homini Lupus

  2. #2
    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,125
    Blog Entries
    35

    Default Re: Great Heathen Army event

    That shouldn't be too difficult. First spawn the army, then move it, then besiege. And then use the 'auto_win' command when attacking the settlement. Note that the 'label' entry is crucial here. And the spawn should not be more then 5 tiles away from the target. Example is from 1648.

    Code:
        monitor_event FactionTurnEnd FactionType hre
            spawn_army
                faction hre
                character    random_name, named character, label stral_attack1, age 38, x 268, y 353
                unit        1648 Bodyguard        exp 1 armour 0 weapon_lvl 0
                unit        Grenadiere        exp 1 armour 0 weapon_lvl 0
                unit        Pikeniere        exp 1 armour 0 weapon_lvl 0
                unit        Pikeniere        exp 1 armour 0 weapon_lvl 0
                unit        Pikeniere        exp 1 armour 0 weapon_lvl 0
                unit        Buergerwehr        exp 1 armour 0 weapon_lvl 0
                unit        Buergerwehr        exp 1 armour 0 weapon_lvl 0
                unit        Buergerwehr        exp 1 armour 0 weapon_lvl 0
                unit        Buergerwehr        exp 1 armour 0 weapon_lvl 0
            end
            reveal_tile 268, 353             ; lifting fog of war on that tile
            add_events
                event    historic    heathen_army          ; requires supporting entry in text\historic_events
                date    0
                position 268, 353                ; enables location button in message window
            end_add_events
            terminate_monitor
        end_monitor
    
        monitor_event FactionTurnEnd FactionType hre    ; next turn
            if not I_CharacterExists stral_attack1                ; making sure the army still exists
                 terminate_monitor                                     ; else disable monitor
            end_if
            move stral_attack1 270, 355                          ; moving next to the settlement
            console_command auto_win attacker
            siege_settlement stral_attack1, Rostock, attack
            hide_all_revealed_tiles                                   ; hiding the revealed tile again
            terminate_monitor
        end_monitor
    Last edited by Gigantus; June 16, 2022 at 10:47 PM.










  3. #3
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    397

    Default Re: Great Heathen Army event

    Thank´s Gigantus, sorry my late answer, i´ll implement this with the necessary changes
    Homo Homini Lupus

  4. #4
    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,125
    Blog Entries
    35

    Default Re: Great Heathen Army event

    Let me know if you run into issues.










  5. #5
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    397

    Default Re: Great Heathen Army event

    Hello Gigantus, yesterday i tried to add the script but i made something wrong because the script didn´t fire up....and enabled all the game script, here what i have posted:

    monitor_event FactionTurnEnd FactionType norway
    spawn_army
    faction norway
    character random_name, named character, label stral_attack1, age 38, x 108, y 66
    unit danish bodyguard exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking carls exp 1 armour 0 weapon_lvl 0
    unit viking churls exp 1 armour 0 weapon_lvl 0
    unit viking churls exp 1 armour 0 weapon_lvl 0
    unit viking churls exp 1 armour 0 weapon_lvl 0
    unit viking churls exp 1 armour 0 weapon_lvl 0
    unit viking churls exp 1 armour 0 weapon_lvl 0
    end
    reveal_tile 108, 66 ; lifting fog of war on that tile
    add_events
    event historic heathen_army ; requires supporting entry in text\historic_events
    date 3
    position 108, 66 ; enables location button in message window
    end_add_events
    terminate_monitor
    end_monitor

    monitor_event FactionTurnEnd FactionType norway ; next turn
    if not I_CharacterExists stral_attack1 ; making sure the army still exists
    terminate_monitor ; else disable monitor
    end_if
    move stral_attack1 102, 72 ; moving next to the settlement
    console_command auto_win attacker
    siege_settlement stral_attack1, York, attack
    hide_all_revealed_tiles ; hiding the revealed tile again
    terminate_monitor
    end_monitor

    Ok....i made 02 new units, viking carls and viking churls, added to norway ( this was only to experiment because the family member....i´ll try to make denmark playable in britannia campaign), the goal is to spawn in turn 03 and march to York and capture it.The historic event fires but no army spawn and all the game script stops working...no norway reinforcements, 04 turns campaign, etc....can you help me in this?What i made wrong?I´m stucked here almost 02 years .Thanks in advance .
    Last edited by HELLEKIN; June 25, 2022 at 06:51 PM.
    Homo Homini Lupus

Posting Permissions

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