Results 1 to 2 of 2

Thread: Minor Scripts

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Minor Scripts

    This thread will be for fixing up/putting together minor scripts.

  2. #2
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Minor Scripts

    Shinobi Training Script

    Code:
    ;**********Script 2M-2 - Ninja Training**********
    ;
    ;|Author| Augustus Lucifer
    ;|Purpose| This script allows the player to get skilled 'ninja' represented by spies and ;assassins if they recruit a light infantry unit.
    ;|Changelog|
    ; o Script Created 12-08-08 ~ AL
    ; o Temporarily removed the RandomPercent to test ~ AL
    ; o Changed script from Mission-based to Accept/Decline 12-15-08 ~ AL
    ; o 12-17-08 GED
    ;     Changed monitors from conditions to events, and used EventCounterType
    ;     Added lines to set accept/decline back to 0
    ;     Commented out terminate_monitor
    ;
    ;
    ;
    monitor_event GovernorUnitTrained FactionIsLocal
      	and FactionType taira
      	and TrainedUnitCategory infantry
      	and SettlementName Heian-kyo
      		add_events
       			event counter ninja_training_accepted
       			event counter ninja_training_declined
       			date 0
      		end_add_events
      		historic_event ninja_training true
      		;terminate_monitor
     end_monitor
    
    monitor_event EventCounterType ninja_training_accepted
      
    	if I_EventCounter ninja_training_accepted == 1
       		spawn_character taira Hanzo Hattori, spy, subterfuge 8, age 20, x 426, y 235
       		set_event_counter ninja_training_accepted 0
      	end_if
      	;terminate_monitor
     end_monitor
     
    monitor_event EventCounter EventCounterType ninja_training_declined
    
      if I_EventCounter ninja_training_declined == 1
       	spawn_character taira Hanzo Hattori, assassin, subterfuge 8, age 20, x 426, y 235
       	set_event_counter ninja_training_declined 0
      end_if
      ;terminate_monitor
     end_monitor
    
    ;	monitor_conditions I_EventCounter ninja_training_heiankyo = 1
    ;
    ;		set_event_counter ninja_training_heiankyo 0
    ;		
    ;		add_events
    ;			event counter ninja_training_accepted
    ;			event counter ninja_training_declined
    ;		end_add_events
    ;
    ;		historic_event ninja_training true
    ;
    ;		if I_EventCounter ninja_training_accepted = 1
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 426, y 235
    ;
    ;		end_if
    ;
    ;		if I_EventCounter ninja_training_declined = 1
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 426, y ;235
    ;		end_if
    ;	
    ;	end_monitor
    
    ;	monitor_event GovernorUnitTrained FactionIsLocal
    ;		and FactionType taira
    ;		and TrainedUnitCategory infantry
    ;
    ;		add_events
    ;			event counter ninja_training_accepted
    ;			event counter ninja_training_declined
    ;			date 0
    ;		end_add_events
    ;	
    ;		historic_event ninja_training true
    ;	
    ;	if I_EventCounter ninja_training_accepted = 1
    ;
    ;		if IsRegionOneOf Kagoshima_Region
    ;		
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 377, y 206
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Daifuzu_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 377, y 218
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Iyo_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 398, y 218
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Hagi_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 386, y 227
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Hamade_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 394, y 232
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Aki_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 403, y 230
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Owada-no-Tomari_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 417, y 232
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Nara_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 425, y 228
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Heian-kyo_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 426, y 235
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Obama_Region
    ;
    ;		spawn_character taira Hattori Hanzo, spy, subterfuge 8, age 20, x 436, y 246
    ;
    ;		end_if
    ;	
    ;	end_if
    ;	
    ;	if I_EventCounter ninja_training_accepted = 1
    ;
    ;		if IsRegionOneOf Kagoshima_Region
    ;	
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 377, y ;206
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Daifuzu_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 377, y ;218
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Iyo_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 398, y ;218
    ;
    ;		end_if
    ;
    ;		if IsRegionOneOf Hagi_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 386, y ;227
    ;		
    ;		end_if
    ;
    ;		if IsRegionOneOf Hamada_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 394, y ;232
    ;		
    ;		end_if
    ;
    ;		if IsRegionOneOf Aki_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 403, y ;230
    ;		
    ;		end_if
    ;
    ;		if IsRegionOneOf Owada-no-Tomari_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 417, y ;232
    ;		
    ;		end_if
    ;
    ;		if IsRegionOneOf Nara_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 425, y ;228
    ;		
    ;		end_if
    ;
    ;		if IsRegionOneOf Heian-kyo_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 426, y ;235
    ;		
    ;		end_if
    ;
    ;		if IsRegionOneOf Obama_Region
    ;
    ;		spawn_character taira Hattori Hanzo, assassin, subterfuge 8, age 20, x 436, y ;246
    ;		
    ;		end_if
    ;	
    ;	end_if
    ;	
    ;	end_monitor
    This one has some kinks to work out and needs expanding upon. The main problem, as in the unique victory script, is that it doesn't seem to be recognizing the accept/decline counters but is still randomly spawning an assassin/spy.

Posting Permissions

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