Advertisement
Guest User

index nil

a guest
Apr 27th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | None | 0 0
  1. talents = {
  2.         [ActorTalents.T_X_BURROW] = 1,
  3.         [ActorTalents.T_X_FEAST] = 1,
  4.         [ActorTalents.T_X_BODY] = 1,
  5.         [ActorTalents.T_X_THROW] = 1,
  6.         [ActorTalents.T_X_SENSE] = 1,   --[says index nil for this line]
  7.         [ActorTalents.T_WIELD_IT_ANYWAY] = 1,
  8.         [ActorTalents.T_TELEPORT_POINT_0] = 1,
  9.         [ActorTalents.T_MUST_KILL_ANOTHER] = 1,
  10.     },
  11.  
  12.  
  13. --[below is the talent it refers to. it is basically the way it was but i keep getting errors when trying to do anything with it]
  14.  
  15. newTalent{
  16.     name = "Tremorsense",
  17.     shortname = "X_SENSE",
  18.     image = "talents/earth_s_eyes.png",
  19.     -- code adapted from Earth's Eyes
  20.     type = {"race/xorn", 1},
  21.     require = racial_req1,
  22.     -- mode = "passive",
  23.     points = 5,
  24.     random_ego = "utility",
  25.     no_unlearn_last = true,
  26.     cooldown = 0,
  27.     radius = function(self, t) return math.ceil(self:combatTalentScale(t, 6.1, 11.5)) end,
  28.     radius_esp = function(self, t) return math.floor(self:combatTalentScale(t, 3.5, 5.5)) end,
  29.     requires_target = true,
  30.     no_npc_use = true,
  31.     action = function(self, t)
  32.         self:magicMap(self:getTalentRadius(t), self.x, self.y)
  33.         game:playSoundNear(self, "talents/spell_generic2")
  34.         return true
  35.     end,
  36.     info = function(self, t)
  37.         local radius = self:getTalentRadius(t)
  38.         local radius_esp = t.radius_esp(self, t)
  39.         return ([[Using your connection to Nature and your ability to feel vibrations through the Earth, you can see your surrounding area in a radius of %d.  Also, while meditating, you are able to detect the presence of creatures around you in a radius of %d.]]):
  40.         format(radius, radius_esp)
  41.     end,
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement