will this attribute cause any problems?

Have a really dumb question? Ask it here to get help from the experts (or those with too much time on their hands)

Moderator: Moderator

Post Reply
Message
Author
xnd
Archmage
Posts: 307
Joined: Sat Mar 21, 2015 7:33 pm

will this attribute cause any problems?

#1 Post by xnd »

hunted_difficulty_immune = true

I set this in the race lua because the ability to summon the pc's evil clone + and the ability that makes the pc fight 2 of each enemy, that i used the hunter talent to cause to happen, meant that summoning the evil twin makes it double and then it and its double simultaneously makes the pc double more, so it becomes like 2bad vs 3good instead 1 vs 1, so I set this to make the pc not get doubled by not being affected by hunter as per its:

if actor and self:reactionToward(actor) < 0 and not actor:attr("hunted_difficulty_immune") then

and so far this seems to work: the regular enemies all get a clone, but the pc's evil twin and the pc do not clone each other. but does this do anything else that could bug it?

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: will this attribute cause any problems?

#2 Post by HousePet »

Would be safer to use your own attribute name.
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply