Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname SKSETest extends ActiveMagicEffect
- ; PapyrusActor
- ; PapyrusActorBase
- ; PapyrusOutfit
- ; PapyrusHeadPart
- ; PapyrusColorForm
- ; PapyrusQuest
- ; PapyrusAlias
- ; PapyrusRace
- Event OnEffectStart(Actor akTarget, Actor akCaster)
- ; PapyrusSKSE
- Debug.Trace("====== PapyrusSKSE ========")
- Debug.Trace("Major: " + SKSE.GetVersion())
- Debug.Trace("Minor: " + SKSE.GetVersionMinor())
- Debug.Trace("Beta: " + SKSE.GetVersionBeta())
- Debug.Trace("Release: " + SKSE.GetVersionRelease())
- ; PapyrusActor
- Debug.Trace("====== PapyrusActor ========")
- Debug.Trace("Actor: " + akTarget)
- Armor Cuirass = akTarget.GetWornForm(0x00000004) as Armor
- Debug.Trace("Form Function GetWornForm(int slotMask) native - slotMask: " + 0x00000004 + " Ret: " + Cuirass)
- int spellCount = akTarget.GetSpellCount()
- Debug.Trace("Int Function GetSpellCount() native - Ret: " + spellCount)
- If spellCount >= 1
- int sc = 0
- While sc < abSpellCount
- Spell abSpellFirst = akTarget.GetNthSpell(sc)
- Debug.Trace(" Spell Function GetNthSpell(int n) native - n: " + sc + " Ret: " + abSpellFirst)
- sc += 1
- EndWhile
- Endif
- ; PapyrusActorBase
- Debug.Trace("====== PapyrusActorBase ========")
- ActorBase akTargetBase = akTarget.GetActorBase()
- Debug.Trace("ActorBase: " + akTargetBase)
- CombatStyle targetCS = akTargetBase.GetCombatStyle()
- Debug.Trace("CombatStyle Function GetCombatStyle() native - Ret: " + targetCS)
- Debug.Trace(" ====== PapyrusCombatStyle ========")
- Debug.Trace(" float Function GetOffensiveMult() native - Ret: " + targetCS.GetOffensiveMult())
- Debug.Trace(" float Function GetDefensiveMult() native - Ret: " + targetCS.GetDefensiveMult())
- Debug.Trace(" float Function GetGroupOffensiveMult() native - Ret: " + targetCS.GetGroupOffensiveMult())
- Debug.Trace(" float Function GetAvoidThreatChance() native - Ret: " + targetCS.GetAvoidThreatChance())
- Debug.Trace(" float Function GetMeleeMult() native - Ret: " + targetCS.GetMeleeMult())
- Debug.Trace(" float Function GetRangedMult() native - Ret: " + targetCS.GetRangedMult())
- Debug.Trace(" float Function GetMagicMult() native - Ret: " + targetCS.GetMagicMult())
- Debug.Trace(" float Function GetShoutMult() native - Ret: " + targetCS.GetShoutMult())
- Debug.Trace(" float Function GetStaffMult() native - Ret: " + targetCS.GetStaffMult())
- Debug.Trace(" float Function GetUnarmedMult() native - Ret: " + targetCS.GetUnarmedMult())
- Debug.Trace(" float Function GetMeleeAttackStaggeredMult() native - Ret: " + targetCS.GetMeleeAttackStaggeredMult())
- Debug.Trace(" float Function GetMeleePowerAttackStaggeredMult() native - Ret: " + targetCS.GetMeleePowerAttackStaggeredMult())
- Debug.Trace(" float Function GetMeleePowerAttackBlockingMult() native - Ret: " + targetCS.GetMeleePowerAttackBlockingMult())
- Debug.Trace(" float Function GetMeleeBashMult() native - Ret: " + targetCS.GetMeleeBashMult())
- Debug.Trace(" float Function GetMeleeBashRecoiledMult() native - Ret: " + targetCS.GetMeleeBashRecoiledMult())
- Debug.Trace(" float Function GetMeleeBashAttackMult() native - Ret: " + targetCS.GetMeleeBashAttackMult())
- Debug.Trace(" float Function GetMeleeBashPowerAttackMult() native - Ret: " + targetCS.GetMeleeBashPowerAttackMult())
- Debug.Trace(" float Function GetMeleeSpecialAttackMult() native - Ret: " + targetCS.GetMeleeSpecialAttackMult())
- Debug.Trace(" bool Function GetAllowDualWielding() native - Ret: " + targetCS.GetAllowDualWielding())
- Debug.Trace(" float Function GetCloseRangeDuelingCircleMult() native - Ret: " + targetCS.GetCloseRangeDuelingCircleMult())
- Debug.Trace(" float Function GetCloseRangeDuelingFallbackMult() native - Ret: " + targetCS.GetCloseRangeDuelingFallbackMult())
- Debug.Trace(" float Function GetCloseRangeFlankingFlankDistance() native - Ret: " + targetCS.GetCloseRangeFlankingFlankDistance())
- Debug.Trace(" float Function GetCloseRangeFlankingStalkTime() native - Ret: " + targetCS.GetCloseRangeFlankingStalkTime())
- Debug.Trace(" float Function GetLongRangeStrafeMult() native - Ret: " + targetCS.GetLongRangeStrafeMult())
- Debug.Trace(" float Function GetFlightHoverChance() native - Ret: " + targetCS.GetFlightHoverChance())
- Debug.Trace(" float Function GetFlightDiveBombChance() native - Ret: " + targetCS.GetFlightDiveBombChance())
- Debug.Trace(" float Function GetFlightFlyingAttackChance() native - Ret: " + targetCS.GetFlightFlyingAttackChance())
- ; PapyrusOutfit
- Outfit targetOutfitD = akTargetBase.GetOutfit(false)
- Debug.Trace("Outfit Function GetOutfit(bool bSleepOutfit = false) native - bSleepOutfit: 0 Ret " + targetOutfitD)
- If targetOutfitD
- Debug.Trace(" ====== PapyrusOutfit =======")
- int numOutfitDParts = targetOutfitD.GetNumParts()
- Debug.Trace(" int Function GetNumParts() native - Ret: " + numOutfitDParts)
- If numOutfitDParts >= 1
- int abopd = 0
- While abopd < numOutfitDParts
- Debug.Trace(" Form Function GetNthPart(int n) native - n: " + abopd + " Ret: " + targetOutfitD.GetNthPart(abopd))
- abopd += 1
- EndWhile
- Endif
- EndIf
- Outfit targetOutfitS = akTargetBase.GetOutfit(true)
- Debug.Trace("Outfit Function GetOutfit(bool bSleepOutfit = false) native - bSleepOutfit: 1 Ret " + targetOutfitD)
- If targetOutfitS
- Debug.Trace(" ====== PapyrusOutfit =======")
- int numOutfitSParts = targetOutfitS.GetNumParts()
- Debug.Trace(" int Function GetNumParts() native - Ret: " + numOutfitSParts)
- If numOutfitSParts >= 1
- int abops = 0
- While abops < numOutfitSParts
- Debug.Trace(" Form Function GetNthPart(int n) native - n: " + abops + " Ret: " + targetOutfitS.GetNthPart(abops))
- abops += 1
- EndWhile
- Endif
- Endif
- float targetWeight = akTargetBase.GetWeight()
- Debug.Trace("float Function GetWeight() native - Ret: " + targetWeight)
- int abSpellCount = akTargetBase.GetSpellCount()
- Debug.Trace("Int Function GetSpellCount() native - Ret: " + abSpellCount)
- If abSpellCount >= 1
- int absc = 0
- While absc < abSpellCount
- Spell abSpellFirst = akTargetBase.GetNthSpell(absc)
- Debug.Trace(" Spell Function GetNthSpell(int n) native - n: " + absc + " Ret: " + abSpellFirst)
- absc += 1
- EndWhile
- Endif
- int abHeadParts = akTargetBase.GetNumHeadParts()
- Debug.Trace("int Function GetNumHeadParts() native - Ret: " + abHeadParts)
- If abHeadParts >= 1
- int abhp = 0
- While abhp < abHeadParts
- HeadPart abHeadPart = akTargetBase.GetNthHeadPart(abhp)
- Debug.Trace("HeadPart Function GetNthHeadPart(int slotPart) native - n: " + abhp + " Ret: " + abHeadPart)
- ; PapyrusHeadPart
- Debug.Trace(" ====== PapyrusHeadPart - " + abhp + "========")
- Debug.Trace(" HeadPart: " + abHeadPart)
- Debug.Trace(" int Function GetType() native - Ret: " + abHeadPart.GetType())
- int extraParts = abHeadPart.GetNumExtraParts()
- Debug.Trace(" int Function GetNumExtraParts() native - Ret: " + extraParts)
- If extraParts >= 1
- int abep = 0
- While abep < extraParts
- HeadPart abHeadPartep = abHeadPart.GetNthExtraPart(abep)
- Debug.Trace(" HeadPart Function GetNthExtraPart(int n) native - n: " + abep + " Ret: " + abHeadPartep)
- abep += 1
- EndWhile
- Endif
- Debug.Trace(" FormList Function GetValidRaces() native - Ret: " + abHeadPart.GetValidRaces())
- abhp += 1
- EndWhile
- Endif
- Debug.Trace("float Function GetFaceMorph(int index) native")
- Debug.Trace("Index: " + 0)
- Debug.Trace("Ret: " + akTargetBase.GetFaceMorph(0))
- Debug.Trace("int Function GetFacePreset(int index) native")
- Debug.Trace("Index: " + 0)
- Debug.Trace("Ret: " + akTargetBase.GetFacePreset(0))
- ColorForm hairColor = akTargetBase.GetHairColor()
- Debug.Trace("ColorForm Function GetHairColor() native")
- Debug.Trace("Ret: " + hairColor)
- ; PapyrusColorForm
- Debug.Trace("====== PapyrusColorForm ========")
- Debug.Trace("int Function GetRed() native - Ret: " + hairColor.GetRed())
- Debug.Trace("int Function GetGreen() native - Ret: " + hairColor.GetGreen())
- Debug.Trace("int Function GetBlue() native - Ret: " + hairColor.GetBlue())
- Debug.Trace("int Function GetHue() native - Ret: " + hairColor.GetHue())
- Debug.Trace("int Function GetSaturation() native - Ret: " + hairColor.GetSaturation())
- Debug.Trace("int Function GetLuminosity() native - Ret: " + hairColor.GetLuminosity())
- ; PapyrusQuest
- Debug.Trace("====== PapyrusQuest ========")
- Quest courierQuest = Quest.GetQuest("WICourier")
- Debug.Trace("Quest: " + courierQuest)
- Debug.Trace("Quest Function GetQuest(string editorId) global native - editorId: WICourier - Ret: " + courierQuest)
- Debug.Trace("string Function GetID() native - Ret: " + courierQuest.GetID())
- Debug.Trace("int Function GetPriority() native - Ret: " + courierQuest.GetPriority())
- int questAliases = courierQuest.GetNumAliases()
- Debug.Trace("int Function GetNumAliases() native - Ret: " + questAliases)
- If questAliases >= 1
- int cqa = 0
- While cqa < questAliases
- Alias cqaAlias = courierQuest.GetNthAlias(cqa)
- Debug.Trace(" Alias Function GetNthAlias(int index) native - Index: " + cqa + " Ret: " + cqaAlias)
- ; PapyrusAlias
- Debug.Trace(" ====== PapyrusAlias ========")
- Debug.Trace(" int Function GetID() native - Ret: " + cqaAlias.GetID())
- Debug.Trace(" string Function GetName() native - Ret: " + cqaAlias.GetName())
- cqa += 1
- EndWhile
- Endif
- Debug.Trace("Alias Function GetAliasByName(string name) native - name: Player - Ret: " + courierQuest.GetAliasByName("Player"))
- ; PapyrusRace
- Debug.Trace("====== PapyrusRace ========")
- Race abRace = akTargetBase.GetRace()
- Debug.Trace("Race: " + abRace)
- int rSpellCount = abRace.GetSpellCount()
- Debug.Trace("Int Function GetSpellCount() native - Ret: " + rSpellCount)
- If rSpellCount >= 1
- int rsc = 0
- While rsc < rSpellCount
- Spell rSpell = abRace.GetNthSpell(rsc)
- Debug.Trace(" Spell Function GetNthSpell(int n) native - n: " + rsc + " Ret: " + rSpell)
- rsc += 1
- EndWhile
- Endif
- EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement