View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old September 29th, 2010, 09:36 AM
I think bodrin is talking about something more basic actually. Just a search-able document that stores Script examples with informative headings.

In example here is a recent question I answered that would be helpful when doing many feats. The title of the script could be "How to script a class ability to only work when wearing medium or heavy armor only."
Code:
~Post-Attributes 10,000
~If hero is wearing Medium or Heavy Armor then apply DR 5/-
if (hero.tagis[Hero.MedArmor] + hero.tagis[Hero.HeavyArmor] <> 0) then
    ~Do your stuff here for when wearing Heavy/Medium armor
endif
I was in agreement before about this as I have dozens of Example Scripts I keep locally so I can just Copy and Paste code. I mean who wants to write stuff from scratch. Plus Mathias has to have hundreds of great scripts that would help people out.

If these where all on a search-able wiki site it would be really nice. Though their is the other side of this argument. The Forums can be searched already and I do it very often to find information, but many people just post a question instead of searching....

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.
ShadowChemosh is offline   #3 Reply With Quote