C# Class ACR_Traps.CreateTraps

Inheritance: CLRScriptFramework.CLRScriptBase
Datei anzeigen Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Public Methods

Method Description
GenericDamage ( CLRScriptBase script, NWScript.NWScriptEngineStructure2 location, TriggerArea triggerArea, int effectArea, float effectSize, int damageType, int diceNumber, int diceType, int saveDC, int attackBonus, int numberOfShots, uint trapOrigin, int targetAlignment, int targetRace, int minimumToTrigger, int detectDC, int disarmDC, string description ) : void
Spell ( CLRScriptBase script, NWScript.NWScriptEngineStructure2 location, TriggerArea triggerArea, int spellId, int numberOfShots, uint trapOrigin, int targetAlignment, int targetRace, int minimumToTrigger, int detectDC, int disarmDC, string description ) : void

Private Methods

Method Description
GetNearestTrapEmitter ( CLRScriptBase script, NWScript.NWScriptEngineStructure2 loc ) : uint
detectSuffix ( ) : string
triggerAreaToAreaOfEffect ( TriggerArea triggerArea ) : int

This method turns a TriggerArea value into a constant that can be used for the trap trigger.

triggerAreaToDetectArea ( TriggerArea triggerArea ) : int

This method turns a TriggerArea value into a constant that can be used for a trap's detection area.

triggerAreaToTrapVFX ( TriggerArea triggerArea ) : string

This method gets the name of a trap-placement VFX that is appropriate for the trap to be spawned.

uniqueTrapTag ( ) : string

Method Details

GenericDamage() public static method

public static GenericDamage ( CLRScriptBase script, NWScript.NWScriptEngineStructure2 location, TriggerArea triggerArea, int effectArea, float effectSize, int damageType, int diceNumber, int diceType, int saveDC, int attackBonus, int numberOfShots, uint trapOrigin, int targetAlignment, int targetRace, int minimumToTrigger, int detectDC, int disarmDC, string description ) : void
script CLRScriptFramework.CLRScriptBase
location NWScript.NWScriptEngineStructure2
triggerArea TriggerArea
effectArea int
effectSize float
damageType int
diceNumber int
diceType int
saveDC int
attackBonus int
numberOfShots int
trapOrigin uint
targetAlignment int
targetRace int
minimumToTrigger int
detectDC int
disarmDC int
description string
return void

Spell() public static method

public static Spell ( CLRScriptBase script, NWScript.NWScriptEngineStructure2 location, TriggerArea triggerArea, int spellId, int numberOfShots, uint trapOrigin, int targetAlignment, int targetRace, int minimumToTrigger, int detectDC, int disarmDC, string description ) : void
script CLRScriptFramework.CLRScriptBase
location NWScript.NWScriptEngineStructure2
triggerArea TriggerArea
spellId int
numberOfShots int
trapOrigin uint
targetAlignment int
targetRace int
minimumToTrigger int
detectDC int
disarmDC int
description string
return void