Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
If you're changing 9 spells all at once, I would actually build that into one foreach if you can? For example:
foreach pick in hero from BaseSpell where "thingid.spell1 | thingid.spell2 | thingid.spell3 | etc etc" eachpick.field[sDC].value += 1 nexteach It'll make your code look a lot nicer, and it'll be comparable performance to your 9 findchilds I think. You can actually find out the performance of a script by going to Develop -> Floating Info Windows -> Show Task Performance. That info window shows you the evaluation time, in microseconds, of all scripts that ran last evaluation. When I'm doing profiling stuff, I typically do 3-5 runs of each to get a good average, then compare the averages against each other. |
#11 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Quote:
|
|
#12 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
||
#13 |
|
|