More specifically, what I want to do is make a function that checks for infravision range and adds to that up to a certain maximum. However, if the character doesn't have infravision, trying to do maths on infravision causes errors. I've had this issue before with other values (most recently heightened senses), but just given up after a while. This is the current code for the talent, and the way it's gotten the furthest before frakkin' up:

Googling around a bit I found out about using the "or 0" to provide an out for when infravision doesn't exist, but it still gives me an error ("trying to perform arithmetics on field 'getInfra' (a function value)").

This seems like it should be easy to do, and seems essential for quite a number of purposes - anyone can fill me in on how to do it? Thanks!

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum