Advertisement
Guest User

Untitled

a guest
May 25th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. Scriptname ShowCardAction extends ObjectReference
  2.  
  3. Message Property CardAction Auto Const
  4.  
  5. Event OnActivate(ObjectReference akActionRef)
  6. CardSelected()
  7. endEvent
  8.  
  9. Function CardSelected()
  10. int ibutton = CardAction.Show()
  11. If (iButton == 0)
  12. Debug.Notification("Deathclaw Card, Attack 3, Health 5")
  13. ElseIf (iButton ==1)
  14. PlaceCard()
  15. ElseIf (iButton == 2)
  16. endIf
  17. endFunction
  18.  
  19. Function PlaceCard()
  20. int ibutton = PlaceCard.Show()
  21. If (iButton == 0)
  22. Self.MoveTo(Slot01)
  23. ElseIf (iButton ==1)
  24. Self.MoveTo(Slot02)
  25. ElseIf (iButton ==2)
  26. Self.MoveTo(Slot03)
  27. ElseIf (iButton ==3)
  28. Self.MoveTo(Slot04)
  29. endIf
  30. endFunction
  31.  
  32. ObjectReference Property Slot02 Auto Const
  33.  
  34. ObjectReference Property Slot01 Auto Const
  35.  
  36. ObjectReference Property Slot03 Auto Const
  37.  
  38. ObjectReference Property Slot04 Auto Const
  39.  
  40. Message Property PlaceCard Auto Const
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement