Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "GeneralWithAncKilled (M2-Scripting)"

From TWC Wiki
Jump to navigationJump to search
(New page: __TOC__ *'''Type:''' Condition *'''Trigger Requirements:''' character_record *'''Parameters:''' ancillary name *'''CA Exa...)
 
(Detailed Description)
 
(5 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
*'''Parameters:''' ancillary name
 
*'''Parameters:''' ancillary name
 
*'''CA Example:''' GeneralWithAncKilled holy_grail
 
*'''CA Example:''' GeneralWithAncKilled holy_grail
*'''CA Description:''' Test to see if a general with specified ancillary was killed in the  
+
*'''CA Description:''' Test to see if a general with specified ancillary was killed in the battle
 
 
battle
 
 
*'''Battle/Strat:''' Both
 
*'''Battle/Strat:''' Both
 
*'''Class:''' GENERAL_ANC_KILLED
 
*'''Class:''' GENERAL_ANC_KILLED
Line 14: Line 12:
 
== Detailed Description ==
 
== Detailed Description ==
  
None currently
+
Definitly bugged. Tested wit MTW2 TATW2.1 By spawning a small army and gave the general of that army the one_ring. After killing that general definitly in battle my winning general received nothing.
 +
 
 +
Tested workaround have the disadvantage it have to be done for each ancillary that want to be transfered this way.:
 +
In Campaign_script.txt set the corresponding event counter whoHaveTheRing at Character turn start or end if the character have the ring.
 +
 
 +
;------------------------------------------
 +
Trigger one_ring_bearer_killed_execute
 +
    WhenToTest GeneralPrisonersRansomedCaptor
 +
 
 +
    Condition RansomType execute
 +
        and I_EventCounter whoHaveTheRing > 0              ; somebody had it before
 +
        and not I_WorldwideAncillaryExists one_ring true    ; but now it does not exist anymore
 +
       
 +
    AcquireAncillary one_ring chance  100
 +
   
 +
;------------------------------------------
 +
Trigger one_ring_bearer_killed_PostBattle
 +
    WhenToTest PostBattle
  
 +
    Condition WonBattle
 +
        and I_EventCounter whoHaveTheRing > 0              ; somebody had it before
 +
        and not I_WorldwideAncillaryExists one_ring true    ; but now it does not exist anymore
 +
       
 +
    AcquireAncillary one_ring chance  100
  
 
== Sample Scripts ==
 
== Sample Scripts ==
Line 24: Line 44:
 
== Sample Triggers ==
 
== Sample Triggers ==
  
None Currently
+
Trigger one_ring
 
+
    WhenToTest PostBattle
 +
    Condition WonBattle
 +
          and IsGeneral 
 +
          and GeneralWithAncKilled one_ring
 +
    AcquireAncillary one_ring chance  100
  
 
== See Also ==
 
== See Also ==
 
*[[Conditions (M2-Scripting)]] - For links to other condition pages and information on parameters.
 
*[[Conditions (M2-Scripting)]] - For links to other condition pages and information on parameters.
 +
 +
 +
[[Category:M2TW Scripting Condition]]

Latest revision as of 03:41, 23 September 2010

  • Type: Condition
  • Trigger Requirements: character_record
  • Parameters: ancillary name
  • CA Example: GeneralWithAncKilled holy_grail
  • CA Description: Test to see if a general with specified ancillary was killed in the battle
  • Battle/Strat: Both
  • Class: GENERAL_ANC_KILLED


Detailed Description

Definitly bugged. Tested wit MTW2 TATW2.1 By spawning a small army and gave the general of that army the one_ring. After killing that general definitly in battle my winning general received nothing.

Tested workaround have the disadvantage it have to be done for each ancillary that want to be transfered this way.: In Campaign_script.txt set the corresponding event counter whoHaveTheRing at Character turn start or end if the character have the ring.

------------------------------------------

Trigger one_ring_bearer_killed_execute

   WhenToTest GeneralPrisonersRansomedCaptor
   Condition RansomType execute
       and I_EventCounter whoHaveTheRing > 0               ; somebody had it before
       and not I_WorldwideAncillaryExists one_ring true    ; but now it does not exist anymore
       
   AcquireAncillary one_ring chance  100
   
------------------------------------------

Trigger one_ring_bearer_killed_PostBattle

   WhenToTest PostBattle
   Condition WonBattle
       and I_EventCounter whoHaveTheRing > 0               ; somebody had it before
       and not I_WorldwideAncillaryExists one_ring true    ; but now it does not exist anymore
       
   AcquireAncillary one_ring chance  100

Sample Scripts

None Currently


Sample Triggers

Trigger one_ring

   WhenToTest PostBattle
   Condition WonBattle
         and IsGeneral   
         and GeneralWithAncKilled one_ring
   AcquireAncillary one_ring chance  100

See Also