View Single Post
insaneurge
Member
 
Join Date: May 2011
Posts: 53

Old January 20th, 2018, 09:19 AM
Quote:
Originally Posted by Mathias View Post
Take another look at what you've written.

The first line says "add our level to our stored value".

The second line says "add half the bonus that's currently being applied to all skills to the stored value"

I think your second line is backwards, based on what you're describing - you want to add half your stored value to the bonus that's being applied to all skills.
Something like this?

Code:
~ Generate our level for bonus
      field[abValue].value += field[xAllLev].value

#skillbonus[AllSkills] += round(field[abValue].value/2,0,-1)
When I recompile I get an error box with the following

Quote:
Attempt to access field 'xAllLev' that does not exist for thing 'SWSkills'
Location: 'eval' script for Thing 'SWSkills' (Eval Script '#1') near line 2
- - -
Attempt to access field 'abValue' that does not exist for thing 'SWSkills'
Location: 'eval' script for Thing 'SWSkills' (Eval Script '#1') near line 2
- - -
Attempt to access field 'abValue' that does not exist for thing 'SWSkills'
Location: 'eval' script for Thing 'SWSkills' (Eval Script '#1') near line 2
- - -
Attempt to access field 'abValue' that does not exist for thing 'SWSkills'
Location: 'eval' script for Thing 'SWSkills' (Eval Script '#1') near line 4

Last edited by insaneurge; January 20th, 2018 at 09:31 AM.
insaneurge is offline   #3 Reply With Quote