Results 1 to 4 of 4

Thread: "On Player Victory" Event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    UndyingNephalim's Avatar Primicerius
    Patrician Artifex

    Join Date
    Jan 2011
    Posts
    3,967

    Default "On Player Victory" Event

    Is there an "On Player Victory" type event? I'd like to trigger some effects when a player wins a battle. Even better would be a an event based on a victory against a specific faction.

    Something like "monitor_event "OnPlayerVictory" faction england

    Is there something like that in script? I can't seem to find any events in the Docudemons that are related to winning a battle.

  2. #2

    Icon1 Re: "On Player Victory" Event

    Try this:
    Code:
    	monitor_event PostBattle WonBattle
        		and CharacterIsLocal
    		and GeneralFoughtFaction scotland
                    historic_event Local_Won_Scotland
    	end_monitor

  3. #3
    UndyingNephalim's Avatar Primicerius
    Patrician Artifex

    Join Date
    Jan 2011
    Posts
    3,967

    Default Re: "On Player Victory" Event

    Quote Originally Posted by TNZ View Post
    Try this:
    Code:
        monitor_event PostBattle WonBattle
                and CharacterIsLocal
            and GeneralFoughtFaction scotland
                    historic_event Local_Won_Scotland
        end_monitor
    Perfect. Is there perhaps a way to spawn an army at the location of the battle after the victory? What I'm trying to do is give the illusion that the player is raising the dead from the defeated faction in the battle. If there's not a way to do that then it's fine, I'll just do some workaround where they "transport corpses to a city" and resurrect the dead there.

  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: "On Player Victory" Event

    PostBattle exports the region ID, so you could test for the region and spawn units in that region. Further then that I don't think it's worthwhile.










Posting Permissions

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