Results 1 to 30 of 34

Thread: Challenge for all modders out there

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #24
    Simulation Monkey Member The_Mark's Avatar
    Join Date
    Dec 2004
    Location
    Helsinki, Finland
    Posts
    2,613

    Default Re: Challenge for all modders out there

    Heh..

    Code:
    ;******************************************************************************************************************
    ;	Setting up Battle with Script Commands
    ;******************************************************************************************************************
    
    	prepare_for_battle
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;
    ;;;	Label Units & Groups & LOCATIONS
    ;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;*************
    ;juliis
    ;*************
    
    	label_unit 0 0 0	julii_hastati
    	label_unit 0 0 1	julii_general
    
    
    ;*************
    ;brutiis
    ;*************
    
    	label_unit 1 0 0	brutii_archers
    			
    
    ;**********************
    ; start
    ;**********************
    
    	ai_active_set off
    	
    	unit_order_move_to_missile_range brutii_archers julii_hastati run
    		
    	end_script
    You just had it done further..

    And yes, there's a big danger of misspelling, I spelled bruti instead of brutii in the move order line.. instant CTD.. Maybe my previous statements were a bit too optimistic.

    Quote Originally Posted by Duke John
    I foresee some problems with being unable to changing facing of an AI army towards the players army.
    That is a big problem. I was literally stunned by the lack of any commands returning a position/direction.. those would've made this a lot easier. Of course we could jury-rig a solution with trigonometry or something, but it'd be quite awkward to place a multi-line equation in each and every monitor needing them.. This is assuming the script language supports them. At this point I really miss OFP scripts.. the flexibility.. Hell, someone made a runge-kutta-solver-thingy with them!

    Back to the topic. A spell-checker could be useful, but it wouldn't help with misspelled variables/labels resulting in CTD.. A fully-fledged scripting proggy? But then, of course, we could just try to write them..

    Code:
    set_counter COUNTER1 1
    
    while COUNTER1 > 0
    	if I_UnitPercentageAmmoLeft ROMAN_ARCHER1 < 70
    		unit_order_attack_unit ROMAN_GENERAL GAUL_GENERAL run
    		set_counter COUNTER1 -1
    	end_if
    end_while
    Couldn't the counter, while and if- bits be replaced with:
    Code:
    monitor_conditions I_UnitPercentageAmmoLeft ROMAN_ARCHER1 < 70
    Last edited by The_Mark; 03-08-2005 at 21:22.

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