Advertisement
expired6978

SKSETest

May 28th, 2012
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.94 KB | None | 0 0
  1.  
  2. Scriptname SKSETest extends ActiveMagicEffect
  3.  
  4. ; PapyrusActor
  5. ; PapyrusActorBase
  6. ; PapyrusOutfit
  7. ; PapyrusHeadPart
  8. ; PapyrusColorForm
  9. ; PapyrusQuest
  10. ; PapyrusAlias
  11. ; PapyrusRace
  12.  
  13. Event OnEffectStart(Actor akTarget, Actor akCaster)
  14.  
  15. ; PapyrusSKSE
  16. Debug.Trace("====== PapyrusSKSE ========")
  17. Debug.Trace("Major: " + SKSE.GetVersion())
  18. Debug.Trace("Minor: " + SKSE.GetVersionMinor())
  19. Debug.Trace("Beta: " + SKSE.GetVersionBeta())
  20. Debug.Trace("Release: " + SKSE.GetVersionRelease())
  21.  
  22. ; PapyrusActor
  23. Debug.Trace("====== PapyrusActor ========")
  24. Debug.Trace("Actor: " + akTarget)
  25.  
  26. Armor Cuirass = akTarget.GetWornForm(0x00000004) as Armor
  27. Debug.Trace("Form Function GetWornForm(int slotMask) native - slotMask: " + 0x00000004 + " Ret: " + Cuirass)
  28.  
  29. int spellCount = akTarget.GetSpellCount()
  30. Debug.Trace("Int Function GetSpellCount() native - Ret: " + spellCount)
  31. If spellCount >= 1
  32. int sc = 0
  33. While sc < abSpellCount
  34. Spell abSpellFirst = akTarget.GetNthSpell(sc)
  35. Debug.Trace(" Spell Function GetNthSpell(int n) native - n: " + sc + " Ret: " + abSpellFirst)
  36. sc += 1
  37. EndWhile
  38. Endif
  39.  
  40. ; PapyrusActorBase
  41. Debug.Trace("====== PapyrusActorBase ========")
  42. ActorBase akTargetBase = akTarget.GetActorBase()
  43. Debug.Trace("ActorBase: " + akTargetBase)
  44.  
  45. CombatStyle targetCS = akTargetBase.GetCombatStyle()
  46. Debug.Trace("CombatStyle Function GetCombatStyle() native - Ret: " + targetCS)
  47.  
  48. Debug.Trace(" ====== PapyrusCombatStyle ========")
  49. Debug.Trace(" float Function GetOffensiveMult() native - Ret: " + targetCS.GetOffensiveMult())
  50. Debug.Trace(" float Function GetDefensiveMult() native - Ret: " + targetCS.GetDefensiveMult())
  51. Debug.Trace(" float Function GetGroupOffensiveMult() native - Ret: " + targetCS.GetGroupOffensiveMult())
  52. Debug.Trace(" float Function GetAvoidThreatChance() native - Ret: " + targetCS.GetAvoidThreatChance())
  53. Debug.Trace(" float Function GetMeleeMult() native - Ret: " + targetCS.GetMeleeMult())
  54. Debug.Trace(" float Function GetRangedMult() native - Ret: " + targetCS.GetRangedMult())
  55. Debug.Trace(" float Function GetMagicMult() native - Ret: " + targetCS.GetMagicMult())
  56. Debug.Trace(" float Function GetShoutMult() native - Ret: " + targetCS.GetShoutMult())
  57. Debug.Trace(" float Function GetStaffMult() native - Ret: " + targetCS.GetStaffMult())
  58. Debug.Trace(" float Function GetUnarmedMult() native - Ret: " + targetCS.GetUnarmedMult())
  59. Debug.Trace(" float Function GetMeleeAttackStaggeredMult() native - Ret: " + targetCS.GetMeleeAttackStaggeredMult())
  60. Debug.Trace(" float Function GetMeleePowerAttackStaggeredMult() native - Ret: " + targetCS.GetMeleePowerAttackStaggeredMult())
  61. Debug.Trace(" float Function GetMeleePowerAttackBlockingMult() native - Ret: " + targetCS.GetMeleePowerAttackBlockingMult())
  62. Debug.Trace(" float Function GetMeleeBashMult() native - Ret: " + targetCS.GetMeleeBashMult())
  63. Debug.Trace(" float Function GetMeleeBashRecoiledMult() native - Ret: " + targetCS.GetMeleeBashRecoiledMult())
  64. Debug.Trace(" float Function GetMeleeBashAttackMult() native - Ret: " + targetCS.GetMeleeBashAttackMult())
  65. Debug.Trace(" float Function GetMeleeBashPowerAttackMult() native - Ret: " + targetCS.GetMeleeBashPowerAttackMult())
  66. Debug.Trace(" float Function GetMeleeSpecialAttackMult() native - Ret: " + targetCS.GetMeleeSpecialAttackMult())
  67. Debug.Trace(" bool Function GetAllowDualWielding() native - Ret: " + targetCS.GetAllowDualWielding())
  68. Debug.Trace(" float Function GetCloseRangeDuelingCircleMult() native - Ret: " + targetCS.GetCloseRangeDuelingCircleMult())
  69. Debug.Trace(" float Function GetCloseRangeDuelingFallbackMult() native - Ret: " + targetCS.GetCloseRangeDuelingFallbackMult())
  70. Debug.Trace(" float Function GetCloseRangeFlankingFlankDistance() native - Ret: " + targetCS.GetCloseRangeFlankingFlankDistance())
  71. Debug.Trace(" float Function GetCloseRangeFlankingStalkTime() native - Ret: " + targetCS.GetCloseRangeFlankingStalkTime())
  72. Debug.Trace(" float Function GetLongRangeStrafeMult() native - Ret: " + targetCS.GetLongRangeStrafeMult())
  73. Debug.Trace(" float Function GetFlightHoverChance() native - Ret: " + targetCS.GetFlightHoverChance())
  74. Debug.Trace(" float Function GetFlightDiveBombChance() native - Ret: " + targetCS.GetFlightDiveBombChance())
  75. Debug.Trace(" float Function GetFlightFlyingAttackChance() native - Ret: " + targetCS.GetFlightFlyingAttackChance())
  76.  
  77. ; PapyrusOutfit
  78. Outfit targetOutfitD = akTargetBase.GetOutfit(false)
  79. Debug.Trace("Outfit Function GetOutfit(bool bSleepOutfit = false) native - bSleepOutfit: 0 Ret " + targetOutfitD)
  80. If targetOutfitD
  81. Debug.Trace(" ====== PapyrusOutfit =======")
  82. int numOutfitDParts = targetOutfitD.GetNumParts()
  83. Debug.Trace(" int Function GetNumParts() native - Ret: " + numOutfitDParts)
  84. If numOutfitDParts >= 1
  85. int abopd = 0
  86. While abopd < numOutfitDParts
  87. Debug.Trace(" Form Function GetNthPart(int n) native - n: " + abopd + " Ret: " + targetOutfitD.GetNthPart(abopd))
  88. abopd += 1
  89. EndWhile
  90. Endif
  91. EndIf
  92.  
  93. Outfit targetOutfitS = akTargetBase.GetOutfit(true)
  94. Debug.Trace("Outfit Function GetOutfit(bool bSleepOutfit = false) native - bSleepOutfit: 1 Ret " + targetOutfitD)
  95. If targetOutfitS
  96. Debug.Trace(" ====== PapyrusOutfit =======")
  97. int numOutfitSParts = targetOutfitS.GetNumParts()
  98. Debug.Trace(" int Function GetNumParts() native - Ret: " + numOutfitSParts)
  99. If numOutfitSParts >= 1
  100. int abops = 0
  101. While abops < numOutfitSParts
  102. Debug.Trace(" Form Function GetNthPart(int n) native - n: " + abops + " Ret: " + targetOutfitS.GetNthPart(abops))
  103. abops += 1
  104. EndWhile
  105. Endif
  106. Endif
  107.  
  108.  
  109. float targetWeight = akTargetBase.GetWeight()
  110. Debug.Trace("float Function GetWeight() native - Ret: " + targetWeight)
  111.  
  112. int abSpellCount = akTargetBase.GetSpellCount()
  113. Debug.Trace("Int Function GetSpellCount() native - Ret: " + abSpellCount)
  114. If abSpellCount >= 1
  115. int absc = 0
  116. While absc < abSpellCount
  117. Spell abSpellFirst = akTargetBase.GetNthSpell(absc)
  118. Debug.Trace(" Spell Function GetNthSpell(int n) native - n: " + absc + " Ret: " + abSpellFirst)
  119. absc += 1
  120. EndWhile
  121. Endif
  122.  
  123. int abHeadParts = akTargetBase.GetNumHeadParts()
  124. Debug.Trace("int Function GetNumHeadParts() native - Ret: " + abHeadParts)
  125. If abHeadParts >= 1
  126. int abhp = 0
  127. While abhp < abHeadParts
  128. HeadPart abHeadPart = akTargetBase.GetNthHeadPart(abhp)
  129. Debug.Trace("HeadPart Function GetNthHeadPart(int slotPart) native - n: " + abhp + " Ret: " + abHeadPart)
  130.  
  131. ; PapyrusHeadPart
  132. Debug.Trace(" ====== PapyrusHeadPart - " + abhp + "========")
  133. Debug.Trace(" HeadPart: " + abHeadPart)
  134. Debug.Trace(" int Function GetType() native - Ret: " + abHeadPart.GetType())
  135. int extraParts = abHeadPart.GetNumExtraParts()
  136. Debug.Trace(" int Function GetNumExtraParts() native - Ret: " + extraParts)
  137. If extraParts >= 1
  138. int abep = 0
  139. While abep < extraParts
  140. HeadPart abHeadPartep = abHeadPart.GetNthExtraPart(abep)
  141. Debug.Trace(" HeadPart Function GetNthExtraPart(int n) native - n: " + abep + " Ret: " + abHeadPartep)
  142. abep += 1
  143. EndWhile
  144. Endif
  145. Debug.Trace(" FormList Function GetValidRaces() native - Ret: " + abHeadPart.GetValidRaces())
  146.  
  147. abhp += 1
  148. EndWhile
  149. Endif
  150.  
  151. Debug.Trace("float Function GetFaceMorph(int index) native")
  152. Debug.Trace("Index: " + 0)
  153. Debug.Trace("Ret: " + akTargetBase.GetFaceMorph(0))
  154.  
  155. Debug.Trace("int Function GetFacePreset(int index) native")
  156. Debug.Trace("Index: " + 0)
  157. Debug.Trace("Ret: " + akTargetBase.GetFacePreset(0))
  158.  
  159. ColorForm hairColor = akTargetBase.GetHairColor()
  160. Debug.Trace("ColorForm Function GetHairColor() native")
  161. Debug.Trace("Ret: " + hairColor)
  162.  
  163. ; PapyrusColorForm
  164. Debug.Trace("====== PapyrusColorForm ========")
  165. Debug.Trace("int Function GetRed() native - Ret: " + hairColor.GetRed())
  166. Debug.Trace("int Function GetGreen() native - Ret: " + hairColor.GetGreen())
  167. Debug.Trace("int Function GetBlue() native - Ret: " + hairColor.GetBlue())
  168. Debug.Trace("int Function GetHue() native - Ret: " + hairColor.GetHue())
  169. Debug.Trace("int Function GetSaturation() native - Ret: " + hairColor.GetSaturation())
  170. Debug.Trace("int Function GetLuminosity() native - Ret: " + hairColor.GetLuminosity())
  171.  
  172. ; PapyrusQuest
  173. Debug.Trace("====== PapyrusQuest ========")
  174. Quest courierQuest = Quest.GetQuest("WICourier")
  175. Debug.Trace("Quest: " + courierQuest)
  176. Debug.Trace("Quest Function GetQuest(string editorId) global native - editorId: WICourier - Ret: " + courierQuest)
  177. Debug.Trace("string Function GetID() native - Ret: " + courierQuest.GetID())
  178. Debug.Trace("int Function GetPriority() native - Ret: " + courierQuest.GetPriority())
  179. int questAliases = courierQuest.GetNumAliases()
  180. Debug.Trace("int Function GetNumAliases() native - Ret: " + questAliases)
  181. If questAliases >= 1
  182. int cqa = 0
  183. While cqa < questAliases
  184. Alias cqaAlias = courierQuest.GetNthAlias(cqa)
  185. Debug.Trace(" Alias Function GetNthAlias(int index) native - Index: " + cqa + " Ret: " + cqaAlias)
  186.  
  187. ; PapyrusAlias
  188. Debug.Trace(" ====== PapyrusAlias ========")
  189. Debug.Trace(" int Function GetID() native - Ret: " + cqaAlias.GetID())
  190. Debug.Trace(" string Function GetName() native - Ret: " + cqaAlias.GetName())
  191. cqa += 1
  192. EndWhile
  193. Endif
  194.  
  195. Debug.Trace("Alias Function GetAliasByName(string name) native - name: Player - Ret: " + courierQuest.GetAliasByName("Player"))
  196.  
  197. ; PapyrusRace
  198. Debug.Trace("====== PapyrusRace ========")
  199. Race abRace = akTargetBase.GetRace()
  200. Debug.Trace("Race: " + abRace)
  201. int rSpellCount = abRace.GetSpellCount()
  202. Debug.Trace("Int Function GetSpellCount() native - Ret: " + rSpellCount)
  203. If rSpellCount >= 1
  204. int rsc = 0
  205. While rsc < rSpellCount
  206. Spell rSpell = abRace.GetNthSpell(rsc)
  207. Debug.Trace(" Spell Function GetNthSpell(int n) native - n: " + rsc + " Ret: " + rSpell)
  208. rsc += 1
  209. EndWhile
  210. Endif
  211.  
  212. EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement