Results 1 to 9 of 9

Thread: Need hel;p with Ai modding..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Masticator of Oreos Member Foz's Avatar
    Join Date
    Dec 2006
    Posts
    968

    Default Re: Need hel;p with Ai modding..

    Quote Originally Posted by Carl
    Thanks for that Foz, I didn't realise they where redundent, so I figured those triggers maybe wern't working right and thus the engine was ignoring them. Thus resulting in them not being used...

    p.s. some of the stuff didn't highlight properly, but i've added in the < and > than signs on many turn based triggers as they appeared to be missing, have I added thosse correctly?
    LOL. Nope. I'd have pointed it out if they were bold, but as it was I didn't see that at all. The point of max and min entries is that you don't have to use any logic except equals then. For instance take the following trigger (first I saw that you changed the logic sign in):

    Code:
    			<decision_entry>
    				<!--
    					If we are allied and have only been allied for a short duration, no invasion set up, cannot force invade
    				-->
    				<max_entry	num_turns_allied<="3" stance="Allied"/>
    				<faction_attitude	can_force_invade="false"/>
    			</decision_entry>
    min_entry always represents the minimum needed for it to apply, while max_entry is the maximum allowable for it to apply. In this case, we want to only use the trigger if we've been allied 3 or less turns. Thus the maximum allowable case is 3 turns, so we set:

    <max_entry num_turns_allied="3" stance="Allied"/>

    This tells the game that 3 is the maximum allowed value of num_turns_allied for the trigger to still apply - all lower values are assumed to also apply unless a minimum is specified in the min_entry. So the reason = is used everywhere is because min_entry and max_entry already imply >= and <= respectively. All we have to do is set the boundary values - i.e. the "equal" part of the <= or >=.


    See my Sig+ below! (Don't see it? Get info here)

  2. #2
    Senior Member Senior Member Carl's Avatar
    Join Date
    Dec 2006
    Posts
    1,461

    Default Re: Need hel;p with Ai modding..

    Thanks Foz , I suspect they are the problem here. I've never done any AI coding here so i never figured that bit out, thanks for the explanation. I DID try to highlight them, but they didn't highlight for some reason.

    Thanks Again.

    Carl.
    Find my ProblemFixer Purehere.

    This ProblemFixer fixes the following: 2-Hander bug, Pike Bug, Shield Bug, Chasing Routers, Cav not Charging, Formation Keeping Improved, Trait Bugs, and Ancillary Bugs.

    BETA Testers needed for the current version of RebuildProblemFixer. Thread here

  3. #3
    Masticator of Oreos Member Foz's Avatar
    Join Date
    Dec 2006
    Posts
    968

    Default Re: Need hel;p with Ai modding..

    No problem Carl, happy to help as always.


    See my Sig+ below! (Don't see it? Get info here)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO