Results 1 to 14 of 14

Thread: problem with using RiotRisk

Hybrid View

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

    Default problem with using RiotRisk

    What's wrong with this script?:
    PHP Code:
    monitor_event SettlementTurnStart SettlementName Varna
        
    and not I_SettlementOwnerVarna normans
        set_counter bunt_varna 0
        
    and RiotRisk >= 20
            set_counter bunt_varna 1
    end_monitor 
    Log says: don't recognise this token: and

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: problem with using RiotRisk

    You put a command before it. They should come after the conditions.

  3. #3

    Default Re: problem with using RiotRisk

    Don't get you.

    First i would to make it using loop "if". Unfortunately it doesn't work too.
    PHP Code:
    monitor_event SettlementTurnStart SettlementName Varna
        
    and not I_SettlementOwnerVarna normans
        
    if RiotRisk >= 20
            set_counter bunt_varna 1
        end_if
        
    if RiotRisk 20
            set_counter bunt_varna 0
        end_if
    end_monitor 
    In this matter log says:
    12:46:13.843 [game.script] [error] Script execution error for <if>, at line 3261, in mods/oikoumene/data/world/maps/campaign/imperial_campaign/campaign_script.txt:
    <settlement> is unavailable from event <>
    Last edited by attyla; March 12, 2012 at 06:51 AM.

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: problem with using RiotRisk

    Can't have a command before a condition, which is what you tried to do.

    For if statements you have to find conditions that don't have any requirements.

  5. #5

    Default Re: problem with using RiotRisk

    where is the command???
    I only can see set_counter, but it should be after the made condition.
    Last edited by attyla; March 12, 2012 at 11:17 AM.

  6. #6
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: problem with using RiotRisk

    'set_counter' - It's there in your OP.

  7. #7

    Default Re: problem with using RiotRisk

    What is OP? I'm completely confused. Can you say me what should i do to fix this problem?

  8. #8
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: problem with using RiotRisk

    OP = Original Post(or Original Poster).

    Put commands, like set_counter, after the conditions in a monitor or the script will not work and you will get the error message you mentioned in the OP.

    I'm not going to do it for you. I've done it for you on numerous occasions and this is a very very basic problem. I think you just need to trust that the solution will come to you and keep thinking about it until it does. Solving this is well within your reach.
    Last edited by Taiji; March 12, 2012 at 11:49 AM.

  9. #9

    Default Re: problem with using RiotRisk

    I don't wont to force you to make that for me. I only would like to know what i make wrong. I simply don't understand my mistake. If i understand you well i only need to make two separated monitors to state condition on value 1 and 0. Something like that:
    PHP Code:
    monitor_event SettlementTurnStart SettlementName Varna
        
    and not I_SettlementOwnerVarna normans
        
    and RiotRisk >= 20
            set_counter bunt_varna 1
    end_monitor  

    monitor_event SettlementTurnStart SettlementName Varna
        
    and not I_SettlementOwnerVarna normans
        
    and RiotRisk 20
            set_counter bunt_varna 0
    end_monitor 
    Do i think correct?

  10. #10
    Aikanár's Avatar no vaseline
    Join Date
    Mar 2009
    Location
    Sanctuary
    Posts
    12,516
    Blog Entries
    3

    Default Re: problem with using RiotRisk

    I_SettlementOwnerVarna = normans
    I_SettlementOwner Varna = normans


    Son of Louis Lux, brother of MaxMazi, father of Squeaks, Makrell, Kaiser Leonidas, Iskar, Neadal, Sheridan, Bercor and HigoChumbo, house of Siblesz

    Not everything that counts can be counted, and not everything that can be counted counts.

  11. #11

    Default Re: problem with using RiotRisk

    Emperor of Hell
    I made it and log says nothing. I only hope, that it fixed my problem

    Aikanár
    PHP Code:
    I_SettlementOwnerVarna normans
    I_SettlementOwner Varna 
    normans 
    That's the typo only and on the forum only - sorry
    Last edited by attyla; March 12, 2012 at 04:16 PM.

  12. #12
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: problem with using RiotRisk

    Quote Originally Posted by attyla View Post
    I don't wont to force you to make that for me. I only would like to know what i make wrong. I simply don't understand my mistake.
    Do you know what a command is?

    Do you know what a condition is?

    If the answer to both of these questions is yes then you should understand my first post. If it's no then I wonder why you didn't ask me to explain what they are, just like you asked me to explain 'OP'...

  13. #13
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: problem with using RiotRisk

    I think the condition RiotRisk doesn't work in if loops. Those separate monitors will fix it but maybe there is another condition you can use in an if loop (don't have the docudemons here to check it myself).

  14. #14
    Aikanár's Avatar no vaseline
    Join Date
    Mar 2009
    Location
    Sanctuary
    Posts
    12,516
    Blog Entries
    3

    Default Re: problem with using RiotRisk

    No problem


    Son of Louis Lux, brother of MaxMazi, father of Squeaks, Makrell, Kaiser Leonidas, Iskar, Neadal, Sheridan, Bercor and HigoChumbo, house of Siblesz

    Not everything that counts can be counted, and not everything that can be counted counts.

Posting Permissions

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