Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
*Geek Talk & Media
SRD Spells Database 3.5
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Pielorinho" data-source="post: 1120535" data-attributes="member: 259"><p>Hmm -- wouldn't this be better to set off in a validation table, then? It just seems to me inefficient to set it off with a foreign key; instead, you can create a combo-box on the appropriate form, set it so that you can only choose items from a list, and set the list to items on the "school" list. That'll make the database smaller. In your way, each spell will have an extra records, like</p><p> </p><p><span style="font-family: 'Times New Roman'"><span style="font-size: 12px">spell_has_attribute_id: 07</span></span></p><p><span style="font-family: 'Times New Roman'"><span style="font-size: 12px">attribute_type_id: [School]</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'">attribute_id: [Conjuration]</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'">Spell_ID: [Acid Fog]</span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'">value: -</span></span></p><p> </p><p>in addition to the nine records in the attribute table and the one entry in the attribute_type table. My method adds only one field to the database, in the spell's description, as well as adding in a new table for validation purposes.</p><p> </p><p>If you hate new tables, you can avoid it in two ways: first, put all the schools in the attribute table anyway, along with the attribute_type of school, and then set the combo box to validate according to a query on the attribute table for all attributes with the attribute_type of "school". Second, you can manually list the acceptable values for a combo box in the box's properties. I'd not recommend doing the last, because the info on the form won't propagate to other forms or uses of the database; either the first (a separate validation table) or the second (a query based on attributes with the type "school") would work fine.</p><p></p><p></p><p> </p><p>Glad you like the idea! I'm still a little iffy on it: how well does Access do on performing numerical equations on text fields? That is, if a given field contains the values, "9", "3", "5", and "A lump of bitumen", can Access list all fields with a value between 2 and 6? If not, or if it's difficult, it might be best to find a different way to deal with material components. </p><p> </p><p>At the risk of expanding the database further, perhaps the spell_has_attribute table can contain one more field, "attribute_note"? This would be useful on only two current types of attributes -- focuses and material components -- but if someone added in a new type of attribute (maybe, for example, a new type of spell that required a certain skill level as a component, or required a feat as a component, or something like that), they'd have the "notes" field already there for them. It'd be reserved for non-numerical information about the attribute that ends up being unique to a given spell.</p><p> </p><p>This is fun to think about!</p><p>Daniel</p></blockquote><p></p>
[QUOTE="Pielorinho, post: 1120535, member: 259"] Hmm -- wouldn't this be better to set off in a validation table, then? It just seems to me inefficient to set it off with a foreign key; instead, you can create a combo-box on the appropriate form, set it so that you can only choose items from a list, and set the list to items on the "school" list. That'll make the database smaller. In your way, each spell will have an extra records, like [font=Times New Roman][size=3]spell_has_attribute_id: 07 attribute_type_id: [School][/size][/font] [size=3][font=Times New Roman]attribute_id: [Conjuration][/font][/size] [size=3][font=Times New Roman]Spell_ID: [Acid Fog][/font][/size] [size=3][font=Times New Roman]value: -[/font][/size] in addition to the nine records in the attribute table and the one entry in the attribute_type table. My method adds only one field to the database, in the spell's description, as well as adding in a new table for validation purposes. If you hate new tables, you can avoid it in two ways: first, put all the schools in the attribute table anyway, along with the attribute_type of school, and then set the combo box to validate according to a query on the attribute table for all attributes with the attribute_type of "school". Second, you can manually list the acceptable values for a combo box in the box's properties. I'd not recommend doing the last, because the info on the form won't propagate to other forms or uses of the database; either the first (a separate validation table) or the second (a query based on attributes with the type "school") would work fine. Glad you like the idea! I'm still a little iffy on it: how well does Access do on performing numerical equations on text fields? That is, if a given field contains the values, "9", "3", "5", and "A lump of bitumen", can Access list all fields with a value between 2 and 6? If not, or if it's difficult, it might be best to find a different way to deal with material components. At the risk of expanding the database further, perhaps the spell_has_attribute table can contain one more field, "attribute_note"? This would be useful on only two current types of attributes -- focuses and material components -- but if someone added in a new type of attribute (maybe, for example, a new type of spell that required a certain skill level as a component, or required a feat as a component, or something like that), they'd have the "notes" field already there for them. It'd be reserved for non-numerical information about the attribute that ends up being unique to a given spell. This is fun to think about! Daniel [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
SRD Spells Database 3.5
Top