View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 12th, 2019, 04:04 AM
Quote:
Originally Posted by PGoodman13 View Post

Code:
perform hero.childfound[wpUnarmed].field[wpDamage].value += 2
Getting a different syntax error now when I try to compile/test it: "Error in string expression." I don't happen to see an error there, but I'm a game writer and not a developer.
Quote:
Originally Posted by Farling View Post
I think "perform" invokes a function, whereas "blah += 2" is an expression that would normally be on its own line. (But I'm not fully up to speed on their scripting language.)
Glad i didn't break anything.

And Farling is correct. Just drop the perform. Since you are working with the value of a field, you don't need it.

The way i look at it is if you're doing something to the overall pick (on the hero) or thing (item in general) you need the perform. otherwise if you're working with values/text of a particular item, you don't. That help?

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #127 Reply With Quote