Temple+ Modding Question

Discussion in 'General Modification' started by _doug_, Feb 21, 2018.

Remove all ads!
  1. _doug_

    _doug_ Member

    Joined:
    Jul 9, 2009
    Messages:
    57
    Likes Received:
    1
    Added a flag to inherit the value from the base race. I turned it on for all but drow and svirfneblin. At this point I am done for this version unless I run into something else...
     
  2. sirchet

    sirchet Force for Goodness Moderator Supporter

    Joined:
    Dec 6, 2003
    Messages:
    3,700
    Likes Received:
    46
    Lolth does have non-drow followers and some drow don't worship Lolth.
     
  3. _doug_

    _doug_ Member

    Joined:
    Jul 9, 2009
    Messages:
    57
    Likes Received:
    1
    Question about calculating distances: I am using the distance_to() method of the character in an attempt to calculate the distance between the character's current location and where they started the round. When I pass the location and offset of their position at the beginning of the round, I get an answer that is different than the path length the first time the character moves. This makes me think that I am doing something wrong. Do you know how I should calculate that distance?
     
  4. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    2,645
    Likes Received:
    67
    I think distance_to is subtracting the character radius.
     
  5. _doug_

    _doug_ Member

    Joined:
    Jul 9, 2009
    Messages:
    57
    Likes Received:
    1
    It seemed to be off by a small amount (2 feet or s0) regardless of how far the character moved so that would make sense. is there a way to get the character radius? Or should I try adding a second method that calculates path distance?
     
  6. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    2,645
    Likes Received:
    67
    Yeah, obj.radius ;)
     
  7. _doug_

    _doug_ Member

    Joined:
    Jul 9, 2009
    Messages:
    57
    Likes Received:
    1
    Thanks for the help! I got things working the way I want now.

    Another Question: Is temple+ allowing sneak attack on invisible opponents a bug or does it intentionally not follow the SRD on this? If it is indeed a bug, I can go ahead and change it with what I am working on.
     
  8. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    2,645
    Likes Received:
    67
    Isn't that a rules interpretation thing? I want to be careful with that sort of thing. If it's controversial, make it a House Rules option. Also don't forget See Invisibility (I think there's a related query)
     
  9. _doug_

    _doug_ Member

    Joined:
    Jul 9, 2009
    Messages:
    57
    Likes Received:
    1
    Here is what the rules say. The SRD seems straightforward unless I am missing something:

    A rogue cannot sneak attack while striking a creature with concealment or striking the limbs of a creature whose vitals are beyond reach.

    I think I could use the CanSense() method for the check which should take care of the details like See Invisibility.
     
  10. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    2,645
    Likes Received:
    67
    Yeah, CanSense is apt.
     
Our Host!