Theme Names
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
6 posts
• Page 1 of 1
Theme Names
by Jaedayr » 22 Oct 2010, 16:50
Should there be a naming convention/guideline for naming themes so that you have a bit of info about the theme? Maybe something like a one or two word theme and the colors? Themes are alphabetized in the selection list so I don't know if it would be better to have the colors first or the theme first. Just bringing this up in case it would be easier to agree on something now rather than making changes later. Also possible, having a short text description that would appear in a window similar to the opponent notes.
Re: Theme Names
by Rob Cashwalker » 22 Oct 2010, 17:27
I didn't bother with fancy names and descriptions at first. I will look into adding those types of things as meta data in the them file. For use in the random encounters mode, the theme will also have to have some sort of trait that links it to the particular creature you encounter.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: Theme Names
by DennisBergkamp » 25 Oct 2010, 17:07
Yeah, exactly. I haven't thought about this a great deal yet, but we should have some kind of structure.
Perhaps at first it will try to find a theme with a filename that contains the creature name (lowercased + underscored). If nothing is found, check for something more general, like creature type(s).
Say, you encounter a Llanowar Elves, these steps could happen:
1. Try to find a theme named "G_llanowar_elves"
2. Try to find any theme containing the string "llanowar_elves"
3. Try to find a theme based on creature type(s) : "G_elf" in this case
4. Still no luck? Then just use the monogreen theme called "G"
How does that sound? Of course, this would only be relevant for "quest" themes.
Perhaps at first it will try to find a theme with a filename that contains the creature name (lowercased + underscored). If nothing is found, check for something more general, like creature type(s).
Say, you encounter a Llanowar Elves, these steps could happen:
1. Try to find a theme named "G_llanowar_elves"
2. Try to find any theme containing the string "llanowar_elves"
3. Try to find a theme based on creature type(s) : "G_elf" in this case
4. Still no luck? Then just use the monogreen theme called "G"
How does that sound? Of course, this would only be relevant for "quest" themes.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Theme Names
by DennisBergkamp » 26 Oct 2010, 06:24
By the way Rob, I just noticed we joined this forum on the same day?! Strange coincidence indeed!
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Theme Names
by Sloth » 26 Oct 2010, 08:43
How about looking through all themes if the creature shows up? And maybe at which probability.DennisBergkamp wrote:How does that sound? Of course, this would only be relevant for "quest" themes.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Theme Names
by Rob Cashwalker » 26 Oct 2010, 15:05
Problem with that is there will be potentially a lot of data to search through... We'd be better off making the theme class global, read through all the themes on start-up, building hashmaps and other data structures that can be used for both searching and generation at any time during the game.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 43 guests