Results 1 to 9 of 9

Thread: Encyclopedia should let you look at all the images of a Monster

  1. #1
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default Encyclopedia should let you look at all the images of a Monster

    I recently added the hostile intelligent alien to monsters.txt:

    Code:
    hostile intelligent alien	2023	sgalienb1.gif,sgalienb2.gif,sgalienb3.gif,sgalienb4.gif,sgalienb5.gif,sgalienb6.gif,sgalienb7.gif,sgalienb8.gif,sgalienb9.gif,sgalienb10.gif	Atk: 0 Def: 0 HP: 0 Init: -10000 P: humanoid
    Notice that it has 10 different possible images. I believe that Monster Manuel will pick one at random to show you.

    In the Monster section of the Encyclopedia, I believe we pick the first one.

    I would like to modify the HTML we generate for monsters with multiple images. Perhaps like this:

    For a monster with only one image:

    Code:
                         [image]
    For a monster with multiple images:

    Code:
                         [image 1]
    [left arrow (disabled)] 1/10 [right arrow (enabled)]
    If you click on right arrow:

    Code:
                        [image 2]
    [left arrow (enabled)] 2/10 [right arrow (enabled)]
    I know you can put dynamic links into an HTML panel; look at the Mini Browser. I believe it is done with an HTMLEditorKit - technology I know essentially nothing about.

    How hard can it be?
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  2. #2
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default

    Well, that was easy. Rather than adding links in the hand-crafted HTML, I added a new navigation toolbar on the bottom of the frame. Revision 17955.

    Try it with the hostile intelligent alien or any Dreadsylvanian monster to see how it works.

    I'm going to leave this open because I have another idea, which probably only applies to a single monster.

    I'd like it if Ed the Undying could not only cycle through images (which would immediately work by adding the variants to monsters.txt), but would also adjust the displayed stats to correspond to the appropriately decrepit image.

    I'll look at this tomorrow.

  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default

    Or tonight. Revision 17956.

    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #4
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,262

    Default

    Oh! That's NEAT!! I wonder if I should add something like this to my Manuel Improvement relay...

    I note that this doesn't yet work for Slime Tube monsters. Intention to fill those in? I can't think of anything else (besides Ed) that might be missing in the following list...

    Code:
    > ashq foreach m in $monsters[] if(count(m.images) > 1) print(m);
    
    C. H. U. M.
    Cinco de Mayo reveler
    cold bugbear
    cold ghost
    Cold hobo
    cold skeleton
    cold vampire
    cold werewolf
    cold zombie
    Elf Hobo
    factory-irregular skeleton
    guard turtle
    High-Ranking Warbear Officer
    Hobelf
    hostile intelligent alien
    hot bugbear
    hot ghost
    Hot hobo
    hot skeleton
    hot vampire
    hot werewolf
    hot zombie
    Normal hobo
    Servant of Lord Flameface
    sexy sorority ghost
    sexy sorority skeleton
    sexy sorority vampire
    sexy sorority werewolf
    sexy sorority zombie
    sleaze bugbear
    sleaze ghost
    Sleaze hobo
    sleaze skeleton
    sleaze vampire
    sleaze werewolf
    sleaze zombie
    space beast
    spooky bugbear
    spooky ghost
    Spooky hobo
    spooky skeleton
    spooky vampire (Dreadsylvanian)
    spooky werewolf
    spooky zombie
    stench bugbear
    stench ghost
    Stench hobo
    stench skeleton
    stench vampire
    stench werewolf
    stench zombie
    stumbling-drunk congoer (female)
    stumbling-drunk congoer (male)
    Thinknerd Moving Robot
    Thinknerd Packing Robot
    Thinknerd Sorting Robot
    toxic beastie
    VYKEA viking (female)
    VYKEA viking (male)
    Warbear Foot Soldier
    Warbear Officer
    Last edited by Bale; 04-06-2017 at 10:16 PM.

  5. #5
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default

    In order to fill in the Slime Tube monsters, we just need to add the alternate .gif files to list of potential images. I.e., it's just a matter of editing monsters.txt.

    I'm out for the evening, gaming. I'll do it tomorrow, back at my dev computer.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  6. #6
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default

    All the slime tube monsters - Slime, Slime Hand, Slime Mouth, Slime Construct, Slime Colossus - now let you look at all 8 images.
    I'd like them also to all show you the Manuel entries for "Slime Tube Monster".
    So, not perfect yet - but close.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  7. #7
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default

    Revision 17962 lets Slime, Slime Hand, Slime Mouth, Slime Construct, and Slime Colossus show the factoids for "Slime Tube Monster".
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  8. #8
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    648

    Default

    It appears that get_all_properties() believes MonsterDescriptionFrame to be a user property. Also, thanks for making the encyclopedia more awesome !

  9. #9
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,040

    Default

    Revision 17963 adds MonsterDescriptionFrame to list of built-in properties
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •