Advertisement
Guest User

Untitled

a guest
May 4th, 2019
2,549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. --[[-------------------------------------------------------------------
  2. Skill Tree Template:
  3. Create your own trees for a unique roleplaying experience!
  4. Powered by
  5. _ _ _ ___ ____
  6. __ _(_) | |_ / _ \/ ___|
  7. \ \ /\ / / | | __| | | \___ \
  8. \ V V /| | | |_| |_| |___) |
  9. \_/\_/ |_|_|\__|\___/|____/
  10.  
  11. _____ _ _ _
  12. |_ _|__ ___| |__ _ __ ___ | | ___ __ _(_) ___ ___
  13. | |/ _ \/ __| '_ \| '_ \ / _ \| |/ _ \ / _` | |/ _ \/ __|
  14. | | __/ (__| | | | | | | (_) | | (_) | (_| | | __/\__ \
  15. |_|\___|\___|_| |_|_| |_|\___/|_|\___/ \__, |_|\___||___/
  16. |___/
  17. ----------------------------- Copyright 2017, David "King David" Wiltos ]]--[[
  18.  
  19. Lua Developer: King David
  20. Contact: http://steamcommunity.com/groups/wiltostech
  21.  
  22. -- Copyright 2017, David "King David" Wiltos ]]--
  23.  
  24. local TREE = {}
  25.  
  26. --Name of the skill tree
  27. TREE.Name = "Ravager"
  28.  
  29. --Description of the skill tree
  30. TREE.Description = "Master the blade, not the mind"
  31.  
  32. --Icon for the skill tree ( Appears in category menu and above the skills )
  33. TREE.TreeIcon = "wos/skilltrees/ravager/main.png"
  34.  
  35. --What is the color for the background of skill icons
  36. TREE.BackgroundColor = Color( 255, 0, 0 )
  37.  
  38. --How many tiers of skills are there?
  39. TREE.MaxTiers = 3
  40.  
  41. --Add user groups that are allowed to use this tree. If anyone is allowed, set this to FALSE ( TREE.UserGroups = false )
  42. TREE.UserGroups = { "vip", "superadmin" }
  43.  
  44. TREE.Tier = {}
  45.  
  46. --Tier format is as follows:
  47. --To create the TIER Table, do the following
  48. --TREE.Tier[ TIER NUMBER ] = {}
  49. --To populate it with data, the format follows this
  50. --TREE.Tier[ TIER NUMBER ][ SKILL NUMBER ] = DATA
  51. --Name, description, and icon are exactly the same as before
  52. --PointsRequired is for how many skill points are needed to unlock this particular skill
  53. --Requirements prevent you from unlocking this skill unless you have the pre-requisite skills from the last tiers. If you are on tier 1, this should be {}
  54. --OnPlayerSpawn is a function called when the player just spawns
  55. --OnPlayerDeath is a function called when the player has just died
  56. --OnSaberDeploy is a function called when the player has just pulled out their lightsaber ( assuming you have SWEP.UsePlayerSkills = true )
  57.  
  58.  
  59. TREE.Tier[1] = {}
  60. TREE.Tier[1][1] = {
  61. Name = "Strength",
  62. Description = "+50 Max Health",
  63. Icon = "wos/skilltrees/ravager/aid.png",
  64. PointsRequired = 1,
  65. Requirements = {},
  66. OnPlayerSpawn = function( ply ) ply:SetMaxHealth( ply:GetMaxHealth() + 50 ) end,
  67. OnPlayerDeath = function( ply ) end,
  68. OnSaberDeploy = function( wep ) end,
  69. }
  70.  
  71. TREE.Tier[1][2] = {
  72. Name = "Combatant",
  73. Description = "Adds 30 base damage to your lightsaber",
  74. Icon = "wos/skilltrees/ravager/comb.png",
  75. PointsRequired = 1,
  76. Requirements = {},
  77. OnPlayerSpawn = function( ply ) end,
  78. OnPlayerDeath = function( ply ) end,
  79. OnSaberDeploy = function( wep ) wep.SaberDamage = wep.SaberDamage + 30 end,
  80. }
  81.  
  82. TREE.Tier[2] = {}
  83. TREE.Tier[2][1] = {
  84. Name = "Tormented Soul",
  85. Description = "Learn to use your rage as a weapon",
  86. Icon = "wos/skilltrees/ravager/tormented_soul.png",
  87. PointsRequired = 1,
  88. Requirements = {
  89. [1] = { 2 },
  90. },
  91. OnPlayerSpawn = function( ply ) end,
  92. OnPlayerDeath = function( ply ) end,
  93. OnSaberDeploy = function( wep ) wep:AddForcePower( "Rage" ) end,
  94. }
  95.  
  96. TREE.Tier[3] = {}
  97. TREE.Tier[3][1] = {
  98. Name = "Final Blow",
  99. Description = "Release an explosion when you die",
  100. Icon = "wos/skilltrees/ravager/phoenix.png",
  101. PointsRequired = 1,
  102. Requirements = {
  103. [2] = { 1 },
  104. },
  105. OnPlayerSpawn = function( ply ) end,
  106. OnPlayerDeath = function( ply ) util.BlastDamage( ply:GetActiveWeapon(), ply, ply:GetPos(), 25, 100 ) end,
  107. OnSaberDeploy = function( wep ) end,
  108. }
  109.  
  110. wOS:RegisterSkillTree( TREE )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement