Results 1 to 13 of 13

Thread: army spawn/re emerging faction based on settlement riot

Hybrid View

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

    Default army spawn/re emerging faction based on settlement riot

    ok well as the heading states i am trying to get a re emerging faction via spawning an army based on the event of a settlement riot i have of course made the faction horde able but this is what i tried which failed badly

    ;----------------RE EMERGING FACTIONS--------------------;

    monitor_event disaster_riot SettlementName Cardiff
    and disaster_riot == 1

    if I_FactionLeaderTrait wales Factionleader == 0

    spawn_army
    faction wales
    character Jebe, named character, age 30, x 165, y 275, family ;command 8, dread 9, loyalty 7, piety 1
    traits GoodCommander 2 , Bloodthirsty 2 , BattleDread 4 , StrategyDread 2 , PublicFaith 1 , Loyal 2 , ContentGeneral 3 ;command 8, dread 9, loyalty 7, piety 1
    unit NE Bodyguard exp 6 armour 0 weapon_lvl 0
    unit NE Catapult exp 1 armour 0 weapon_lvl 0
    end

    end_monitor

    can anyone tell me if something like this is possible or the event i should be linking it to etc any responses kindly appreciated and plus repped anyone can i trigger it off CityRiots and settlementName cardiff perhaps any clues guys ???????????
    Last edited by Soul Firez; July 12, 2009 at 08:19 AM.

    Heroes Hordes & beyond The official submod of KGCM (click the sig)

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

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

    Default Re: army spawn/re emerging faction based on settlement riot

    Well "disaster_riots" isn't an Event, which is why that doesn't work. No event uses any _ just for reference, only commands do that.

    You should use CityRiots or GovernorCityRiots. You can also use the event "Disaster" with the condition "DisasterType riot" if you want to monitor the disaster and not be city-specific(no quotes obviously), but it would be much less specific and therefore harder to pinpoint.

    Not sure what you're trying to do with the "and disaster_riot == 1" line. Trying to use a counter for something? If so you need "and I_CompareCounter disaster_riot == 1" or "and I_EventCounter disaster_riot == 1". But I'm not sure what you're doing with it so can't give advice in that respect.

  3. #3
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: army spawn/re emerging faction based on settlement riot

    also if you're using an 'if' you need an 'end_if'
    the end you have there is just for the spawn section... I'd think that should be stopping the script loading - you need to set your log file to trace and check to see if it's complaining - format you need is

    monitor_event.....
    and...

    if....

    spawn_army...
    ..................
    end

    end_if

    end_monitor
    Also not sure what you're trying to do with
    if I_FactionLeaderTrait wales Factionleader == 0

    unless you changed the traits file that's an impossible condition as the trigger for the trait is:
    Trigger factionleader
    WhenToTest BecomesFactionLeader


    Affects Factionleader 1 Chance 100
    so if they're alive as faction and have leader - he will have that trait.....
    if you're trying to get this to fire after death of faction, not sure this is right way to go around it!

  4. #4

    Default Re: army spawn/re emerging faction based on settlement riot

    thanks guys yeah i went through the docudom put out and change the script to CityRiots SettlementName Cardiff and the the compare faction leader traits = 0 part was the condition that wales was dead eg has no leader as i was hoping to re emerge the faction by spawning an army with a general with the family in his traits to well re start the family tree

    Its an attempt to get a dead faction to spawn if you miss treat its lands people sort of a rebelion attempt will try a few things thanks for the advice i hope i am clearer now on what i was chasing will keep trying to get it to work i have changed it now to this (which still doesnt work )

    monitor_event CityRiots SettlementName Cardiff
    and I_FactionLeaderTrait wales Factionleader = 0
    spawn_army
    faction wales
    character Meilir, named character, age 30, x 165, y 275, family ;command 8, dread 9, loyalty 7, piety 1
    traits GoodCommander 4 , Energetic 1 , StrategyChivalry 4, Intelligent 1
    unit NE Bodyguard exp 6 armour 0 weapon_lvl 0
    unit Saethwyr exp 0 armour 0 weapon_lvl 0
    unit Saethwyr exp 0 armour 0 weapon_lvl 0
    unit Gwent Raiders exp 0 armour 0 weapon_lvl 0
    unit Gwent Raiders exp 0 armour 0 weapon_lvl 0
    unit Meirionnydd Spearmen exp 0 armour 0 weapon_lvl 0
    unit Meirionnydd Spearmen exp 0 armour 0 weapon_lvl 0
    end
    end_monitor

    what would you use perhaps as a good condition to check if the faction was dead as i couldnt find anything like it in the docudm so i figure looking for a trait that didnt exist and as such would= o would be the way to go

    but at least the advice has pointed me at some seriously wrong things i did
    Last edited by Soul Firez; July 13, 2009 at 05:33 AM.

    Heroes Hordes & beyond The official submod of KGCM (click the sig)

  5. #5
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: army spawn/re emerging faction based on settlement riot

    I'm not convinced that the
    and I_FactionLeaderTrait wales Factionleader = 0
    bit will work to tell it faction is dead - because you're trying to check the trait of someone who doesn't exist.....

    take that bit out to check rest of event actually works when city riots - if it does and that is actually the problem, I'd suggest give your Welsh faction leader an ancillary that gets passed on to next leader automatically (or even gets given to all Welsh leaders) - set conditions so they are only faction that ever gets given it and then use

    and not I_WorldwideAncillaryExists .......

    as the bit of trigger that decides if Welsh are dead (sure there should be some easier way but can't find any promising looking conditions at moment)

  6. #6

    Default Re: army spawn/re emerging faction based on settlement riot

    yeah i took it out and the rest works so i tried the condition if I_NumberOfSettlements wales = 0 with my end if condition being if the character i wanted to spawn already existed seemed logical and darn it all no go and yes i can see how your idea will work problem there is i want to be able to do it for all factions i would need to make a seperate ancillary for every nation there has to be a condition that will see a specific faction is dead guess i keep running through themall till one pops

    Wait a minute they already have specific crown ancillaries hmmm i am of to see if i can get it to trigger using that that may be sheer brilliance thanks makanyne

    yes that works almost perfectly only prob is of course it will keep spawning that character if the vity continues to rivolt he becomes leader hier and family members hmm tried to change to if not I_cown_walesAncilliary withthe end if I_Character exists but then it didnt workagain but hey atleats i am alot closer LOl thank you
    Last edited by Soul Firez; July 13, 2009 at 10:58 AM.

    Heroes Hordes & beyond The official submod of KGCM (click the sig)

Posting Permissions

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