Results 1 to 30 of 82

Thread: alpaca's Script-O-Rama

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #31
    Notepad user Member Red Spot's Avatar
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    491

    Default Re: alpaca's Script-O-Rama

    well I've got the ones linked in this topics main post (double checked) and it surelly isnt in those files ...

    I'll do a forum search to see if I can find some newer ..

    edit;
    ok that was easy enough, the 1.2 docudemon files;
    https://forums.totalwar.org/vb/showt...ight=docudemon
    https://forums.totalwar.org/vb/showthread.php?t=83119
    /edit

    edit2;
    and a redone version;
    Code:
    ;SET FOLLOWING EVENT IN DESCR_EVENTS TO START THE RESPAWNING!!!
    ;;;event	counter 	faction_respawn_trigger
    ;;;date	1
    
    ;Interval set at 40-80 years -> 80-160 turns.
    ;faction_respawn_event  ==> global spawn starter event
    
    ;faction_respawn_england  ==> per faction spawn event
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    script
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;the trigger on a seperate event so it can be used in like EDB, kill it once it has done its job!
    ;;;
    	monitor_event EventCounter EventCounterType faction_respawn_trigger
    		and EventCounter >= 1
    
    		add_events
    			event	counter	faction_respawn_event
    			date	1
    		end_add_events
    			terminate_monitor
    	end_monitor
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;COPY FOR OTHER FACTIONS!!!
    ;;;
    	monitor_event FactionTurnStart FactionType england
    		and Treasury <= 10000
    
    		if I_LocalFaction england
    			terminate_monitor
    		end_if
    		console_command add_money england, 12000
    	end_monitor
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;check after the player did his/her turn, else we could miss out on yet an other victory.
    ;;;
    	monitor_event FactionTurnEnd FactionIsLocal
    		and I_EventCounter faction_respawn_event >= 1
    
    ;;;
    ;;;COPY FOR OTHER FACTIONS!!!
    ;;;
    		if I_FactionLeaderTrait england Factionleader == 0
    			add_events
    				event	counter	faction_respawn_england
    				date	3 25
    			end_add_events
    		end_if
    ;;;
    
    ;;;
    ;;;reset the counter and call the event again in order to have better control over the spawn-intervals.
    ;;;
    		set_event_counter faction_respawn_event 0
    		add_events
    			event	counter	faction_respawn_event
    			date	38 78
    		end_add_events
    
    	end_monitor
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;COPY FOR OTHER FACTIONS!!!
    ;;;
    	monitor_event EventCounter EventCounterType faction_respawn_england
    		and EventCounter >= 1
    
    		spawn_army 
    			faction england
    			character	William, named character, age 30, x 100, y 150, family
    			traits GoodCommander 4 , Loyal 4 , ContentGeneral 3 , BattleChivalry 3 , GoodRiskyAttacker 2 , Fertile 2
    			unit		NE Bodyguard			exp 2 armour 1 weapon_lvl 1
    		end
    	end_monitor
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    	wait_monitors
    
    end_script
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    /edit


    G
    Last edited by Red Spot; 08-16-2007 at 15:32.

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