Account
News
Downloads
Community
Wiki
Walkthrough

XPEbroccaCrematorySCRIPT

Editor ID:
XPEbroccaCrematorySCRIPT


Form ID:
00080547


Type:
Object


Script:
scn XPEbroccaCrematorySCRIPT

; This button activates a crematory furnace. Any bones placed in the crematory retort urn are replaced with ashen remains

short Bone01count
short Bone02count
short Bone03count
short Bone04count
short Bone05count
short Bone06count
short Bone07count
short Bone08count
short bone09count ; adding support for SEBoneShard

short BoneAllcount

begin onActivate player

;fire statue #1
XPEbroccaCrematoryStatue01.cast StandardFireDamageTarget1Novice XPEbroccaCrematoryRetortREF
;fire statue #2
XPEbroccaCrematoryStatue02.cast StandardFireDamageTarget1Novice XPEbroccaCrematoryRetortREF
;play fx
XPEbroccaCrematoryRetortREF.pms effectFireDamage
;swap out bones
set Bone01count to (XPEbroccaCrematoryRetortREF.getItemCount skelBigBone01)
set Bone02count to (XPEbroccaCrematoryRetortREF.getItemCount skelBoneThin01)
set Bone03count to (XPEbroccaCrematoryRetortREF.getItemCount skelClavicle01)
set Bone04count to (XPEbroccaCrematoryRetortREF.getItemCount skelPelvis01)
set Bone05count to (XPEbroccaCrematoryRetortREF.getItemCount skelRibcage01)
set Bone06count to (XPEbroccaCrematoryRetortREF.getItemCount skull01)
set Bone07count to (XPEbroccaCrematoryRetortREF.getItemCount SEShamblesSkullClutter)
set Bone08count to (XPEbroccaCrematoryRetortREF.getItemCount SEFracturedBone)
set Bone09count to (XPEbroccaCrematoryRetortREF.getItemCount SEBoneShard)

XPEbroccaCrematoryRetortREF.removeItem skelBigBone01 Bone01Count
XPEbroccaCrematoryRetortREF.removeItem skelBoneThin01 Bone02Count
XPEbroccaCrematoryRetortREF.removeItem skelClavicle01 Bone03Count
XPEbroccaCrematoryRetortREF.removeItem skelPelvis01 Bone04Count
XPEbroccaCrematoryRetortREF.removeItem skelRibcage01 Bone05Count
XPEbroccaCrematoryRetortREF.removeItem skull01 Bone06Count
XPEbroccaCrematoryRetortREF.removeItem SEShamblesSkullClutter Bone07Count
XPEbroccaCrematoryRetortREF.removeItem SEFracturedBone Bone08Count
XPEbroccaCrematoryRetortREF.removeItem SEBoneShard Bone09Count

; add ash
set BoneAllCount to (Bone01Count + Bone02Count + Bone03Count + Bone04Count + Bone05Count + Bone06Count + Bone07Count + Bone08Count + Bone09Count)
XPEbroccaCrematoryRetortREF.additem SEAshenRemains BoneAllCount

; stop FX
XPEbroccaCrematoryRetortREF.sms effectFireDamage

end


Mit der Nutzung dieser Website erklären Sie sich damit einverstanden, dass wir Cookies verwenden. Weitere Informationen hierzu finden Sie in unserer Datenschutzerklärung.
OK