ddavison
December 2nd, 2009, 04:39
Post 3 of 4
I also preferred to place a common list of all lookups used throughout the ruleset, so I create a global_lookups.lua script file
--
-- This file is part of the Fantasy Grounds Open Foundation Ruleset project.
-- For the latest information, see https://www.fantasygrounds.com/
--
-- Copyright 2008 SmiteWorks Ltd.
--
-- This file is provided under the Open Game License version 1.0a
-- Refer to the license.html file for the full license text
--
-- All producers of work derived from this material are advised to
-- familiarize themselves with the license, and to take special
-- care in providing the definition of Product Identity (as specified
-- by the OGL) in their products.
--
-- All material submitted to the Open Foundation Ruleset project must
-- contain this notice in a manner applicable to the source file type.
function onInit()
defineLookups();
end
function defineLookups()
-- These are global table values usable in any script
movementModes = {"walk","climb","burrow","fly","swim"};
races = {"Dwarf","Halfling","Elf","Human","Gnome","Half-orc","Half-elf"};
monsterRaces = {"Elan","Kobold","Maenad","Orc","Xeph","Dromite","Half-Giant","Hobgoblin","Satyr","Azer","Centaur","Ogre","Half-Ogre","Sprite","Doppleganger","Minotaur","Gargoyle","Hound Archon","Troll","Jann","Scrag","Ogre Mage","Rakshasa","Hill Giant","Stone Giant","Gnoll","Drow","Lizardfolk","Grimlock","Deep Gnome","Bugbear","Aasimar","Tiefling","Duergar","Aquatic Elf","Gray Elf","High Elf","Wild Elf","Wood Elf","Forest Gnome","Rock Gnome","Goblin","Deep Halfling","Lightfoot Halfling","Tallfellow Halfling"}
abilityScores = {
{Name="Strength",Abbreviation="Str"},
{Name="Dexterity",Abbreviation="Dex"},
{Name="Constitution",Abbreviation="Con"},
{Name="Intelligence",Abbreviation="Int"},
{Name="Wisdom",Abbreviation="Wis"},
{Name="Charisma",Abbreviation="Cha"}};
saves = {
{Name="Fortitude",Abbreviation="Fort"},
{Name="Reflex",Abbreviation="Ref"},
{Name="Willpower",Abbreviation="Will"}};
alignments = {
{Name="Lawful Evil",Abbreviation="LE"},
{Name="Neutral Evil",Abbreviation="NE"},
{Name="Chaotic Evil",Abbreviation="CE"},
{Name="Lawful Neutral",Abbreviation="LN"},
{Name="Neutral",Abbreviation="N"},
{Name="Chaotic Neutral",Abbreviation="CN"},
{Name="Lawful Good",Abbreviation="LG"},
{Name="Neutral Good",Abbreviation="NG"},
{Name="Chaotic Good",Abbreviation="CG"}};
abilityTypes = {
{Name="Extraordinary Abilities", Abbreviation="Ex"},
{Name="Spell-like Abilities", Abbreviation="Sp"},
{Name="Supernatural Abilities",Abbreviation="Su"}};
sizes = {
F = {Name="Fine",Abbreviation="F",ACModifier=8},
D = {Name="Diminutive",Abbreviation="D",ACModifier=4},
T = {Name="Tiny",Abbreviation="T",ACModifier=2},
S = {Name="Small",Abbreviation="S",ACModifier=1},
M = {Name="Medium",Abbreviation="M",ACModifier=0},
L = {Name="Large",Abbreviation="L",ACModifier=-1},
H = {Name="Huge",Abbreviation="H",ACModifier=-2},
G = {Name="Gargantuan",Abbreviation="G",ACModifier=-4},
C = {Name="Colossal",Abbreviation="C",ACModifier=-8}
};
skillTraining = {"Untrained","Trained","Trained Class Skill"};
featTypes = {"Combat","Critical","Item Creation","Metamagic"};
coinNames = {"Copper piece(s)","Silver piece(s)","Gold piece(s)","Platinum piece(s)"};
coinAbbreviations = {"cp","sp","gp","pp"};
weaponRangeType = {"melee","ranged"};
weaponHands = {"light","one-handed","two-handed"};
weaponTrainingType = {"Simple","Martial","Exotic","Siege Weapon","Special","Ammo"};
weaponSize = {"fine","diminutive","tiny","small","medium","large","huge","gargantuan","colossal"};
weaponDamageType = {
bludgeoning = {Name="bludgeoning",Abbreviation="B"},
piercing = {Name="piercing",Abbreviation="P"},
slashing = {Name="slashing",Abbreviation="S"}
};
armorType = {"Light Armor","Medium Armor","Heavy Armor","Shield","Extras"};
actionTypes = {"Standard","Full-Round","Move","Free","Swift","Immediate","Not an Action","Restricted"};
actionTypeList = {
Standard={"Standard action","Attack (melee)","Attack (ranged)","Attack (unarmed)","Activate a magic item other than a potion or oil","Aid another","Cast a spell","Channel Energy","Concentrate to maintain an active spell","Dismiss a spell","Draw a hidden weapon","Drink a potion","Apply an Oil","Escape a grapple","Feint","Light a torch with a tindertwig","Lower spell resistance","Read a scroll","Ready (triggers a standard action)","Stabilize a dying friend","Total defense","Use extraordinary ability","Use skill that takes 1 action","Use spell-like ability","Use supernatural ability"},
FullRound={"Full-round action","Full Attack","Charge","Deliver a coup de grace","Escape from a net","Extinguish flames","Light a torch","Load a heavy or repeating crossbow","Lock or unlock weapon in locked guantlet","Prepare to throw splash weapon","Run","Use skill that takes 1 round","Use a touch spell on up to six friends","Withdraw"},
Move={"Move action","Move","Control a frightened mount","Direct or redirect an active spell","Draw a weapon","Load a hand crossbow or light crossbow","Open or close a door","Mount/Dismount a steed","Move a heavy object","Pick up an item","Sheathe a weapon","Stand up from prone","Ready or drop a shield","Retrieve a stored item"},
Free={"Free action","Cease concentration on a spell","Drop an item","Drop to the floor","Prepare spell components to cast a spell","Speak"},
Swift={"Swift action","Cast a quickened spell"},
Immediate={"Immediate action","Cast feather fall"},
NotanAction={"Delay","5-foot step"}
};
spellComponentNames = {"Verbal","Somatic","Material","Focus","Divine Focus"};
spellComponentAbbreviations = {"V","S","M","F","DF"};
spellRange = {"Personal","Touch","Close","Medium","Long","Unlimited","Other"};
spellRangeDetails = {"affects only caster","affects creature touched","25ft. + 5ft./lvl","100ft. + 10ft./level","400ft. + 40ft./lvl","anywhere","other"};
spellTypes = {"Divine","Arcane","Spell-like Ability","Supernatural Ability","Extraordinary Ability","Natural Ability"};
spellWizardSchools = {"Abjuration","Conjuration","Divination","Enchantment","Evocation","Illusion","Necromancy","Transmutation","Universal"};
spellSavingThrows = {"None","Ref Half","Fort Half","Will Half","Ref Negates","Fort Negates","Will Negates","See Text","Will Partial"}
spellDomains = {"Air","Animal","Artifice","Chaos","Charm","Community","Darkness","Death","Destruction","Earth","Evil","Fire","Glory","Good","Healing","Knowledge","Law","Liberation","Luck","Madness","Magic","Nobility","Plant","Protection","Repose","Rune","Strength","Sun","Travel","Trickery","War","Water","Weather"}
spellDurations = {"permanent (D)","instantaneous","1 min./level","1 min./level (D)","1 round/level (D)","1 round/level","1 hour/level","1 hour/level (D)","1 day/level","1 day/level (D)", "10 min./level", "10 min./level (D)","permanent","concentration, up to 1 round/level (D)","See text","24 hours"}
spellSecondary = {"good","evil","calling","creation","summoning","teleportation","compulsion","healing","evil","scrying","charm","compulsion","figment","glamer","pattern","phantasm","shadow","polymorph","acid","air","chaotic","cold","darkness","death","earth","electricity","fear","fire","force","language-dependent","lawful","light","mind-affecting","sonic","water"}
inventorySlots = {"armor","shield","ring","none","neck","belt","feet","wrists","shoulders","head","eyes","hands","headband","chest","body","pack","stored"};
conditions = {"Blinded","Broken","Confused","Cowering","Dazed","Dazzled","Dead","Deafened","Disabled","Dying","Energy Drained","Entangled","Exhausted","Fascinated","Fatigued","Flat-footed","Frightened","Grappled","Helpless","Incorporeal","Invisible","Nauseated","Panicked","Paralyzed","Petrified","Pinned","Prone","Shaken","Sickened","Stable","Staggered","Stunned","Unconscious"};
spellResistances = {"No","Yes","Yes (harmless)"}
YesNo = {"No","Yes"}
gender = {"Male","Female","Other"}
end
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.