User Tag List

Results 1 to 5 of 5

Thread: Encounters and MonsterGroups

  1. #1
    Developer ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,754
    Mentioned
    250 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,586
    Level
    32
    vBActivity - Bars
    Lv. Percent
    85.96%
    Daily Activity
    0%
    Weekly Activity
    70%
    Monthly Activity
    101.58%

    Encounters and MonsterGroups

    We've got encounter and monster group data now! Fuck yeah.

    Monster Groups are stored as -
    -monster
    -min
    -max

    An entire Monster Party (or Troop) is stored as a list of monster groups.

    An Encounter is a collection of monster troops each with a -
    -encounter rate
    -max rate
    (rates are almost like ratios, eg; 3 : 64, however they can be whatever you want)

    Finally an Encounter Region is an abstract idea that inside this region are any number of possible encounters. These are generally a property on a tile, or map, where you'd expect it to tell you what monsters live here.

    Here's how it looks so far:
    Code:
        <Troop name="Minotaur(2-4)">
            <Monster name="Minotaur" min="2" max="4" />
        </Troop>
        <Troop name="Piranha(0-2),Crocodile(0-2),Ochu(1),Hydra(0-1)">
            <Monster name="Piranha" min="0" max="2" />
            <Monster name="Crocodile" min="0" max="2" />
            <Monster name="Ochu" min="1" max="1" />
            <Monster name="Hydra" min="0" max="1" />
        </Troop>
        <Troop name="Piranha(2-4),Crocodile(0-2)">
            <Monster name="Piranha" min="2" max="4" />
            <Monster name="Crocodile" min="0" max="2" />
        </Troop>
        <Troop name="Tarantula(1-2),Black Widow(0-2),Green Slime(0-1),Gray Ooze(0-1)">
            <Monster name="Tarantula" min="1" max="2" />
            <Monster name="Black Widow" min="0" max="2" />
            <Monster name="Green Slime" min="0" max="1" />
            <Monster name="Gray Ooze" min="0" max="1" />
        </Troop>
    Code:
        <Region name="Temple of Fiends">
            <Encounter troop_index="2" rate="12" max_rate="64" />
            <Encounter troop_index="10" rate="12" max_rate="64" />
            <Encounter troop_index="8" rate="12" max_rate="64" />
            <Encounter troop_index="16" rate="12" max_rate="64" />
            <Encounter troop_index="14" rate="6" max_rate="64" />
            <Encounter troop_index="7" rate="6" max_rate="64" />
            <Encounter troop_index="4" rate="3" max_rate="64" />
            <Encounter troop_index="29" rate="1" max_rate="64" />
        </Region>
    The entire compressed xml data for these is just under 6 kb so here they are for great justice.
    Last edited by Gleeok; 12-30-2012 at 09:01 PM.
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

  2. #2
    Cor Blimey! CJC's Avatar
    Join Date
    Dec 2002
    Location
    Fading into the darkness
    Age
    30
    Posts
    1,398
    Mentioned
    150 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,411
    Level
    24
    vBActivity - Bars
    Lv. Percent
    66.41%
    Daily Activity
    0%
    Weekly Activity
    70%
    Monthly Activity
    33.86%
    Am I under the correct assumption that the sum of the region's encounter ratios must come to 1:1? Also, would it be better or worse if these ratios were reduced to lowest terms in a creator's script?

  3. #3
    Developer ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,754
    Mentioned
    250 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,586
    Level
    32
    vBActivity - Bars
    Lv. Percent
    85.96%
    Daily Activity
    0%
    Weekly Activity
    70%
    Monthly Activity
    101.58%
    Nope.The rates could be anything I guess... though I guess some math is in order then. :googly:

    I'm assuming a base encounter probability is a property of a tile, or map, or map tile, ...or property layer of a map, and then when you see that it's time to have an encounter you then figure out what to fight from that list. (I might need to look up how it's handled in FF though.)

    I'm still trying to gather the game data and be able to load it, then be able to use it scripts. When that's done I think I will open all scripts and mechanics up to the community so they can be scrutinized. lol.
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

  4. #4
    Developer ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,754
    Mentioned
    250 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,586
    Level
    32
    vBActivity - Bars
    Lv. Percent
    85.96%
    Daily Activity
    0%
    Weekly Activity
    70%
    Monthly Activity
    101.58%
    Got the monster list done. woot. :)

    All I need now for enemies are all the monster sprites in a texture atlas with a list of rectangles which correspond to the monster id so I can add that info to the xml document... :\
    Attached Files Attached Files
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

  5. #5
    Developer ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,754
    Mentioned
    250 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,586
    Level
    32
    vBActivity - Bars
    Lv. Percent
    85.96%
    Daily Activity
    0%
    Weekly Activity
    70%
    Monthly Activity
    101.58%


    All 244 formations and 128 monsters can now be loaded/saved/fidgeted with, n' stuff. Here's the Ogre-Creep combination for you nostalgic types.
    This post contains the official Gleeok™ seal of approval. Look for these and other posts in an area near you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social