User Tag List

Results 1 to 5 of 5

Thread: Encounters and MonsterGroups

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,959
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.21%

    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 10:01 PM.
    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