Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scriptname ShowCardAction extends ObjectReference
- Message Property CardAction Auto Const
- Event OnActivate(ObjectReference akActionRef)
- CardSelected()
- endEvent
- Function CardSelected()
- int ibutton = CardAction.Show()
- If (iButton == 0)
- Debug.Notification("Deathclaw Card, Attack 3, Health 5")
- ElseIf (iButton ==1)
- PlaceCard()
- ElseIf (iButton == 2)
- endIf
- endFunction
- Function PlaceCard()
- int ibutton = PlaceCard.Show()
- If (iButton == 0)
- Self.MoveTo(Slot01)
- ElseIf (iButton ==1)
- Self.MoveTo(Slot02)
- ElseIf (iButton ==2)
- Self.MoveTo(Slot03)
- ElseIf (iButton ==3)
- Self.MoveTo(Slot04)
- endIf
- endFunction
- ObjectReference Property Slot02 Auto Const
- ObjectReference Property Slot01 Auto Const
- ObjectReference Property Slot03 Auto Const
- ObjectReference Property Slot04 Auto Const
- Message Property PlaceCard Auto Const
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement