View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 2,885

Old July 7th, 2014, 07:45 PM
Quote:
Originally Posted by mirtos View Post
Im trying to create a "rage-like" ability that follows pathfinders basis of rounds/day vs the times/day, and base it on con modifier. thats the problem im having.
.
.
.
The section thats not working right:
Code:
      total = 2 + (level * 2) + hero.child[aCON].field[Bonus].value
Its ignoring the con bonus. Also, id like it to to be based on "real con bonus" vs "temporary con bonus".

Thoughts and help would be useful.

Thanks!
If you haven't gotten an answer by tomorrow morning, I'll take a look at this when I get in front of HL. First though, when are running this script? If it's ignoring the CON bonus, it could simply be running too early. If the timing is ok, you could try breaking that line up into two parts. For example:

Code:
      total = (level * 2)
      total += 2 + hero.child[aCON].field[Bonus].value
If that works then its something to do with the structure of the equation.

PS. "perform" has replaced the need for a variable. For example:

Code:
      var result as number
      if (hero.tagis[Alignment.Lawful] <> 0) then
        result = assign[Helper.SpcDisable]
      	endif
can instead be done as:

Code:
      if (hero.tagis[Alignment.Lawful] <> 0) then
        perform assign[Helper.SpcDisable]
      endif
Sendric is offline   #2 Reply With Quote