XIDMaps
Class SSH101c

source: C:\XIII\XIDMaps\Classes\SSH101c.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Info
         |
         +--XIII.MapInfo
            |
            +--XIDMaps.Map16_SSH1
               |
               +--XIDMaps.SSH101c
Direct Known Subclasses:None

class SSH101c
extends XIDMaps.Map16_SSH1

//----------------------------------------------------------- // //-----------------------------------------------------------
Variables
 int GoalZeroTargets


Function Summary
 void FirstFrame()
     
//_____________________________________________________________________________
 void SetGoalComplete(int N)
     
//_____________________________________________________________________________



Source Code


00001	//-----------------------------------------------------------
00002	//
00003	//-----------------------------------------------------------
00004	class SSH101c extends Map16_SSH1;
00005	
00006	var int GoalZeroTargets;
00007	var(SSH101cSetUp) int NumberOfDeadBeforeGoal1;
00008	var(SSH101cSetUp) MagneticPassTrigger PassTrigger;
00009	var(SSH101cSetUp) XIIIPawn MagneticPassHolder;
00010	var(SSH101cSetUp) name EventMagneticCardPick;
00011	
00012	// Obj 00 = Buter NumberOfDeadBeforeGoal1 persos.
00013	// Obj 01 = Sortir de la map.
00014	
00015	//_____________________________________________________________________________
00016	function SetGoalComplete(int N)
00017	{
00018	    if ( N == 0 )
00019	    {
00020	      GoalZeroTargets ++;
00021	      if ( GoalZeroTargets<NumberOfDeadBeforeGoal1 )
00022	        return;
00023	    }
00024	
00025	    if ( N == 0 )
00026	    {
00027	      SetPrimaryGoal(1);
00028	      TriggerEvent('portesecour', self, XIIIPawn);
00029	    }
00030	
00031	    super.SetGoalComplete(N);
00032	}
00033	
00034	//_____________________________________________________________________________
00035	function FirstFrame()
00036	{
00037	    local inventory Inv;
00038	
00039	    Super.FirstFrame();
00040	
00041	    if ( MagneticPassHolder != none )
00042	    {
00043			Inv = GiveSomething(class'PRock03MagneticCard', MagneticPassHolder );
00044			Inv.Event = PassTrigger.Tag;
00045			XIIIItems(Inv).EventCausedOnPick = EventMagneticCardPick;
00046	    }
00047	}
00048	
00049	//_____________________________________________________________________________
00050	
00051	
00052	defaultproperties
00053	{
00054	     NumberOfDeadBeforeGoal1=8
00055	     iLoadSpecificValue=191
00056	}

End Source Code