Advertisement
NonEuclideanCat

Utility Scripts Excerpts

Dec 15th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. OnPreThingCreation
  2. {
  3. -- Utility
  4.  
  5. function EquipWeapon( name )
  6. CreateCard({ Name = name, Type = "WEAPON" })
  7. DrawCard({ Name = name, Type = "WEAPON" })
  8. PlayCard({ Name = name, Type = "WEAPON" })
  9. end
  10.  
  11. function EquipWeaponInSlot( name, slot )
  12. CreateCard({ Name = name, Type = "WEAPON" })
  13. DrawCard({ Name = name, Type = "WEAPON" })
  14. PlayCard({ Name = name, Type = "WEAPON", Slot = slot })
  15. end
  16.  
  17. function DrawAndPlayCardInSlot( name, slot )
  18. DrawCard({ Name = name, Type = "WEAPON" })
  19. PlayCard({ Name = name, Type = "WEAPON", Slot = slot })
  20. end
  21.  
  22. function DrawAndPlayCardInSlotForPlayer( name, slot, playerType )
  23. DrawCard({ Name = name, Type = "WEAPON", PlayerIndex = playerType })
  24. PlayCard({ Name = name, Type = "WEAPON", Slot = slot, PlayerIndex = playerType })
  25. end
  26.  
  27. function EquipPlayerTwoWeapon( name )
  28. CreateCard({ Name = name, Type = "WEAPON", PlayerIndex = 2 })
  29. DrawCard({ Name = name, Type = "WEAPON", PlayerIndex = 2 })
  30. PlayCard({ Name = name, Type = "WEAPON", PlayerIndex = 2 })
  31. end
  32.  
  33. function EquipPlayerTwoWeaponInSlot( name, slot )
  34. CreateCard({ Name = name, Type = "WEAPON", PlayerIndex = 2 })
  35. DrawCard({ Name = name, Type = "WEAPON", PlayerIndex = 2 })
  36. PlayCard({ Name = name, Type = "WEAPON", PlayerIndex = 2, Slot = slot })
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement