Results 1 to 9 of 9

Thread: Help?

  1. #1
    Calisthenis of Dyrrachium's Avatar Senator
    Join Date
    Feb 2010
    Location
    I'm not entirely sure.
    Posts
    1,236

    Default Help?

    I'm trying to create a garrison script for Ancyra. I put a script in data\scripts\show_me, added lines in export_advice.txt and export_descr_advice.txt (you can see them in the content box), but when I attack Ancyra and hold the siege for 1 turn, nothing happens! What's gone wrong?

    Code
    Code:
    script						
    						
    	declare_show_me					
    						
    	suspend_unscripted_advice true					
    						
    	if I_SettlementOwner Ancyra = slavs					
    	and not I_MapName xgm\data\world\maps\campaign\custom\Galatians\descr_strat.txt					
    						
    		console_command create_unit Ancyra "warband galatian" 4 4 2 2				
    		console_command create_unit Ancyra "warband galatian" 2 4 2 2				
    		console_command create_unit Ancyra "barb heavy spearmen gaul" 3 3 2 2				
    		console_command create_unit Ancyra "barb naked fanatics" 3 4 1 2	
    		console_command create_unit Ancyra "barb archer" 2 5 2 2
    		console_command create_unit Ancyra "merc heavy cavalry galatian" 2 6 2 2				
    		console_command create_unit Ancyra "barb beserker gaul" 2 8 2 2				
    						
    	end_if					
    						
    	if I_SettlementOwner Ancyra = gauls					
    	and I_MapName xgm\data\world\maps\camapaign\custom\Galatians\descr_strat.txt					
    						
    		console_command create_unit Ancyra "warband galatian" 4 4 2 2				
    		console_command create_unit Ancyra "warband galatian" 2 4 2 2				
    		console_command create_unit Ancyra "barb heavy spearmen gaul" 3 3 2 2				
    		console_command create_unit Ancyra "barb naked fanatics" 3 4 1 2	
    		console_command create_unit Ancyra "barb archer" 2 5 2 2
    		console_command create_unit Ancyra "merc heavy cavalry galatian" 2 6 2 2				
    		console_command create_unit Ancyra "barb beserker gaul" 2 8 2 2				
    						
    	end_if					
    						
    	wait 3					
    						
    	suspend_unscripted_advice false					
    						
    end_script
    Code:
    ¬-------------------
    
    {Garrison_Ancyra_Text_01_Title} Ancyra calls its citizens to arms!
    
    {Garrison_Ancyra_Text_01_Text1}
    Faced with invasion, Ancyra is arming its citizens to defend the city. (Click on "show me")
    
    ¬-------------------
    Code:
    AdviceThread Garrison_Ancyra_Thread
        GameArea Campaign
    
        Item Garrison_Ancyra_Text_01
            Suppressible n
            Uninhibitable
            Verbosity  0
            Threshold  1
            MaxRepeats  0
            RepeatInterval  1
            Attitude Excited
            Presentation Default
            Title Garrison_Ancyra_Text_01_Title
            On_display scripts\show_me\Garrison_Ancyra.txt
            Text Garrison_Ancyra_Text_01_Text1
    Meh.

  2. #2
    DimeBagHo's Avatar Praeses
    Join Date
    Mar 2005
    Location
    Auckland
    Posts
    7,943

    Default Re: Help?

    Have you set up the triggers?

  3. #3
    Calisthenis of Dyrrachium's Avatar Senator
    Join Date
    Feb 2010
    Location
    I'm not entirely sure.
    Posts
    1,236

    Default Re: Help?

    No. Where do I find them?
    Last edited by Calisthenis of Dyrrachium; August 24, 2010 at 04:58 AM.
    Meh.

  4. #4
    DimeBagHo's Avatar Praeses
    Join Date
    Mar 2005
    Location
    Auckland
    Posts
    7,943

    Default Re: Help?

    In the second half of export_descr_advice.txt. The top of the file contains the definitions of the advice threads. After that there's a bunch of triggers that determine when the advice threads are activated. The triggers for the garrisons are somewhat complicated. You need to make a quite a lot of them: two for each faction that you want to be able to trigger the garrison, one for family members and one for lesser generals.

  5. #5
    Calisthenis of Dyrrachium's Avatar Senator
    Join Date
    Feb 2010
    Location
    I'm not entirely sure.
    Posts
    1,236

    Default Re: Help?

    Code:
    and I_CharacterTypeNearTile dacia general, 2 137,151
    What does the first number mean?
    Meh.

  6. #6
    DimeBagHo's Avatar Praeses
    Join Date
    Mar 2005
    Location
    Auckland
    Posts
    7,943

    Default Re: Help?

    The first number is the maximum distance between the location (the other two numbers), and the character, for the trigger to activate. If you set it to 1 then some squares around the city might not activate the trigger.

  7. #7
    Calisthenis of Dyrrachium's Avatar Senator
    Join Date
    Feb 2010
    Location
    I'm not entirely sure.
    Posts
    1,236

    Default Re: Help?

    And the other two numbers are the co-ordinates of the city?
    Meh.

  8. #8
    DimeBagHo's Avatar Praeses
    Join Date
    Mar 2005
    Location
    Auckland
    Posts
    7,943

    Default Re: Help?

    Quote Originally Posted by Calisthenis of Dyrrachium View Post
    And the other two numbers are the co-ordinates of the city?
    Yes. You can use a console command to get locations. Place the pointer over the city, then bring up the command console with the ~ key, and type 'show_cursorstat' (without the quotes).

  9. #9

    Default Re: Help?

    how do i edit unit sixe in XGM?. i want to change the size of the amoured egyprion axe men from 50 to 80.

Posting Permissions

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