Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- talents = {
- [ActorTalents.T_X_BURROW] = 1,
- [ActorTalents.T_X_FEAST] = 1,
- [ActorTalents.T_X_BODY] = 1,
- [ActorTalents.T_X_THROW] = 1,
- [ActorTalents.T_X_SENSE] = 1, --[says index nil for this line]
- [ActorTalents.T_WIELD_IT_ANYWAY] = 1,
- [ActorTalents.T_TELEPORT_POINT_0] = 1,
- [ActorTalents.T_MUST_KILL_ANOTHER] = 1,
- },
- --[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]
- newTalent{
- name = "Tremorsense",
- shortname = "X_SENSE",
- image = "talents/earth_s_eyes.png",
- -- code adapted from Earth's Eyes
- type = {"race/xorn", 1},
- require = racial_req1,
- -- mode = "passive",
- points = 5,
- random_ego = "utility",
- no_unlearn_last = true,
- cooldown = 0,
- radius = function(self, t) return math.ceil(self:combatTalentScale(t, 6.1, 11.5)) end,
- radius_esp = function(self, t) return math.floor(self:combatTalentScale(t, 3.5, 5.5)) end,
- requires_target = true,
- no_npc_use = true,
- action = function(self, t)
- self:magicMap(self:getTalentRadius(t), self.x, self.y)
- game:playSoundNear(self, "talents/spell_generic2")
- return true
- end,
- info = function(self, t)
- local radius = self:getTalentRadius(t)
- local radius_esp = t.radius_esp(self, t)
- 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.]]):
- format(radius, radius_esp)
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement