enderalse/source/scripts/_00e_fs_blueprintcontainerspellsc.psc

50 lines
1.7 KiB
Plaintext

Scriptname _00E_FS_BlueprintContainerSpellSC extends ActiveMagicEffect
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnEffectStart(Actor akTarget, Actor akCaster)
If akCaster != PlayerREF
; Do nothing
ElseIf PlayerREF.IsInCombat()
_00E_FS_BlueprintContainerNotInCombat.Show()
Else
_00E_FS_BlueprintContainerActorREF.SetPlayerTeammate(True, True)
Int iButton = _00E_FS_Blueprint_Message.Show(0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000)
If iButton == 0
AddBlueprints()
ElseIf iButton == 1
TakeBlueprints()
ElseIf iButton == 2
return
EndIf
EndIf
EndEvent
;=====================================================================================
; Functions
;=====================================================================================
Function AddBlueprints()
_00E_FS_BlueprintContainerActorREF.ShowGiftMenu(True, _00E_FS_BlueprintList, True, False)
EndFunction
Function TakeBlueprints()
_00E_FS_BlueprintContainerActorREF.ShowGiftMenu(False, _00E_FS_BlueprintList, True, False)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
Actor Property PlayerREF Auto
Actor Property _00E_FS_BlueprintContainerActorREF Auto
Message Property _00E_FS_Blueprint_Message Auto
FormList Property _00E_FS_BlueprintList Auto
Message Property _00E_FS_BlueprintContainerNotInCombat Auto