Gaming
 

LL2 Editing

From Hamumu Wiki

Loonyland 2

Spoiler Warning!
This page contains information that could reveal plot
secrets or ruin puzzles! Read with caution, or not at all!

The Editor that comes included with the Loonyland 2 Collector's Edition has not been explored thoroughly. However, the addon_making_info.txt file that comes in the addons directory of the LL2CE folder has a lot of information.

Image:Huh.PNGThe following information needs to be added to this page:
Hardcoded things, more info

Contents


[edit] Getting the Editor

The Editor is accessible from the main menu by those with Loonyland 2 Collector's Edition installed.

[edit] Playing Your Worlds

To play a custom world, start a new game. Instead of starting with "Go!" immediately, move left and right while "Go!" is selected to change the current campaign.

[edit] Using the Editor

You are viewing information about Loonyland 2 editing. Some information is specific to certain games, indicated by the icons.
Image:Huh.PNGThe following information needs to be added to this page:
Dr. Lunatic derivative editing needs a lot of work almost everywhere

[edit] Basic Controls

Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png

  • Move around using the 8, 4, 6 and 2 keys on the number pad, when Num Lock is on.
  • Delete things by pressing backspace while hovering over them.

[edit] Tagging

Image:IconKidMysticNo.png Image:IconLoonyland.png Image:IconLoonyland2.png

Tagging is an important part of making things work as you want in Loonyland 1 and 2. The tag number is at the bottom-middle of the screen, and this is changed up and down by pressing , (comma) and ; (semi-colon). You place a tag on the highlighted square by pressing t. Tags can be used in specials for many things, and monsters take on the tag of the square they are placed on.

There are several tags with global significance in both Loonyland and Loonyland 2. These are:

  • A square tagged 255 is impassible to non-player monsters (in Loonyland 2, monsters will not be randomly placed here)
  • A square tagged 254 is impassible to unfriendly monsters (goodguys can still pass over it)

[edit] Specials

Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png

All of Kid Mystic, Loonyland, and Loonyland 2 support Specials. These are used for many different effects, including transportation between levels and a variety of other things such as signs and collectibles. Triggers are conditions that cause a special to be activated, and Effects are what happens when the special is activated.

The 'Multiple Uses' special flag allows a special to be triggered more than once. The 'Show Message' special flag causes the special to show a message upon being triggered.

There are two brands of specials: Loonyland and Loonyland 2's complex behemoth, and Kid Mystic's much simpler setup. In Kid Mystic triggers lack the other number, x, and y parameters, and effects lack the tag parameter (Kid Mystic does not use tags). The names of certain triggers and effects are also different between the two brands. Some triggers and effects also do not make sense for certain games, though they are included.

[edit] Triggers

Name When it occurs Trigger value Other value (LL/LL2 only) Trigger X&Y (LL/LL2 only) Games
Player step When the player steps within an N-tile diamond around a tile. Defines N. None. Defines the center tile (the special's location for Kid Mystic) Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Enemy step When an enemy steps within an N-tile diamond around a tile. Defines N. Possibly only specific monster number? Defines the center tile (the special's location for Kid Mystic) Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Player within N tiles When the player is within an N-tile diamond around a tile. Defines N. None. Defines the center tile (the special's location for Kid Mystic) Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Passed N levels Kid Mystic: When the player has passed N levels in that chapter
Loonyland 1/2: Unknown
Defines N. Unknown Unknown Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Have all keychains Kid Mystic: When the player collects all Armageddon Sword pieces (?)
Loonyland 1/2: Unknown
None. Unknown Unknown Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Kill all monster N When there are no monsters of number N alive. Defines N None. None. Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Have N brains Kid Mystic: When the player has N mystic orbs.
Loonyland 1/2: Unknown
Defines N Unknown Unknown Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Shoot item/wall When an item or wall has been shot (good or evil shots) None. None. Defines the item/wall tile (the special's location for Kid Mystic) Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Chain off neighbor special When a special in one of the four adjacent tiles is triggered None. None. None. Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Please fill me in! Please fill me in! Please fill me in! Please fill me in! Please fill me in! Please fill me in!

[edit] Effects

Name What it does Effect value Effect X&Y Effect tag (LL/LL2 only) Games
None Nothing. None. None. None. Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Teleport Teleports something? to a location. Unknown Location of teleportation Presumably monsters of this tag? Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Summon Summons a monster of type N. Defines N. Summon location. Presumably summoned at tagged locations? Image:IconKidMystic.png Image:IconLoonyland.png Image:IconLoonyland2.png
Please fill me in! Please fill me in! Please fill me in! Please fill me in! Please fill me in! Please fill me in!

[edit] Special Tags

[edit] Skill Tags

  1. Defense
  2. Energy
  3. Toughness
  4. Survival
  5. Dodge
  6. Training
  7. Strength
  8. Endurance
  9. Tracking
  10. Luck
  11. Axe Mastery
  12. Stun
  13. Bash
  14. Critical
  15. Persuasion
  16. Flame
  17. Vampirism
  18. Parry
  19. Stomp
  20. Whirl
  21. Throwing
  22. Piercing
  23. Homing
  24. Triple
  25. Ricochet
  26. Air Strike
  27. Static
  28. Poison
  29. Shatter
  30. Axe Trap
  31. Shroom
  32. Stone Spike
  33. Brambles
  34. Lifeberries
  35. Burninate
  36. Ignite
  37. Toasties
  38. Heat Shield
  39. Shock Orb
  40. Berserk
  41. Gale
  42. Tornado
  43. Restoration
  44. Cryozoid
  45. Cold Wave
  46. Ice Cube
  47. Drain
  48. Bonehead
  49. Bone Bomb
  50. Plague

[edit] Talent Tags

  1. Chopping
  2. Tossing
  3. Stoneskin
  4. Criticism
  5. Vivacity
  6. Sneak Attack
  7. Knockout
  8. Finesse
  9. Scavenging
  10. Gladiator
  11. Mental Focus
  12. Combustion
  13. Freezing
  14. Arsenic
  15. Electrocution
  16. Meditation
  17. Spookiness
  18. Green Thumb
  19. Scorching
  20. Windbag
  21. Mobility
  22. Alchemy
  23. Junksmithing
  24. Clockwork
  25. Mining
  26. Haggling
  27. Miser
  28. Mixology
  29. Packrat
  30. Herbalism

[edit] Villager Tags

0. Talking to Yourself

  1. (nobody)
  2. Kinyova Sr.
  3. Bobby Joe
  4. Healiana
  5. Woody Woodsman
  6. Mrs. Smith
  7. Geoffrey
  8. Black Market Bob
  9. Melody (in chains)
  10. Melody (not in chains)
  11. Mickey
  12. Great Guru
  13. Tina Tsarina
  14. Taylor
  15. Phileas
  16. Handyman Hank
  17. The Historian
  18. Guy Magic
  19. Buried Rupert
  20. Rupert Roper
  21. Rosetta Roper
  22. J.P. Toymonger III
  23. Curaga
  24. The Diabolical Onion
  25. The Junksmith
  26. Frankie Beans
  27. Crush
  28. Jimmy Two-Fingers
  29. Smash
  30. Captain Capitan
  31. Major Fishbug
  32. The Clockmaker
  33. Lt. Hornswaggle
  34. Pvt. Public
  35. Betty
  36. Schrodinger
  37. Sharona
  38. Shrumford (old)
  39. Shrumford (young)
  40. Shroud
  41. Baron Von Frostburn
  42. Titan King Melton
  43. Happy Stick Bird


[edit] Text Files

Any Loonyland 2 campaign must have an associated text file; if the world name is myamazingworld.llw, the text file should be named lvl_myamazingworld.txt. This text file follows a special format:

Title of Campaign
Level info
Level info
...

There should be a level info line for each level in the campaign; if there are extra ones, they are ignored, and if there are less than needed than the data from the original Loonyland campaign will be substituted (see LL2 Editing Default Text File). Each level info line should follow this format: {TYPE,{MONS1,MONS2,MONS3,MONS4,MONS5},MONSNUM,{ASBESTOS,BUBBLEWEED,CILANTRO,DEVILGRASS,ELDERBERRY,FROSTBANE,CRACKS},SONG}, // COMMENT

  • TYPE: The type of level. This should be one of:
    • 0 for a normal, monster-filled level.
    • LF_TOWN for a town/respawn point.
    • LF_ARENA for an arena match. This modifies some game rules.
  • MONS1-MONS5: Monster identifiers for monsters that appear. Leftmost is most likely to appear, rightmost is least likely to appear. See LL2 Editing Constants below
  • MONSNUM: The number of monsters that should be randomly placed.
  • ASBESTOS-CRACKS: The maximum number (the actual number is random) of herbs/mining cracks of that type that will appear.
  • SONG: The song number. This should be one of:
    • A number, for the song named songXXX.ogg
    • SONG_TOWN, for the town song
    • SONG_CAVES, for caves
    • SONG_WINTER, for the woods
    • SONG_BOSS, for the throne room, HSB fight, and arena matches
    • SONG_UNDERWORLD, for the underworld
    • SONG_FACTORY, for the Toy Factory and Castle von Frostburn
  • COMMENT: this part is optional, and is usually used to serve as a reminder as to what level this entry matches

Here's a trick: start a character in your new game (or if you have one already, play that character), and then exit immediately back to the title screen. At the top of the title screen, it will print out the first error it found in your text file, and which line it's on. If there's nothing there, then you have no errors in your text file.

[edit] Variables

Many of the specials in Loonyland 2 work with variables. The range 516 to 900 is free for use by a world designer, and the rest are reserved in one form or another. Each variable can hold a value from 0 to 255, though 0 and 1 are the most common. If a "quest assigned" variable is enabled, the "New Quest" box will pop up. If you set a "quest completed" variable, the "Quest Done" box will pop up, the quest will automatically be marked assigned, and you will get 100xp for the quest (or 1000xp in Madcap).

  • 0 to 49: Quest assigned variables (for quest N)
  • 50 to 99: Quest completed variables (for quest N-50)
  • 100: Number of kills for a Prove Yourself quest
  • 101 to 199: Collected present N-100?
  • 200: Has the Magic Hat been killed?
  • 201: Has the Stone Rose been killed?
  • 202-216: Have been to certain places.
    • What places?
  • 217: Has Melody been unlocked?
  • 218: Is the Toy Factory destroyed?
  • 219: Has the Stinky Sock boss been killed?
  • 220-221: Have the choppable trees been chopped?
  • 222: How many rats remain in Mickey's cellar (0 means you can get money from Mickey)
  • 240-255: Temporary variables, cleared when leaving a level
  • 256-305: Has a treasure chest been opened? (for chest tagged N-256)
  • 306: Has Klonk been killed?
  • 307: Toys killed count for Mickey's quest
  • 308: Bears killed for Hank's quest
  • 309: 0 for Onion side, 1 for Snuggly Bunny side
  • 310: Has Killbor been defeated?
  • 311: Have the Magic Glasses been attained?
  • 312: Number of swords collected in Arena sword level
  • 313-320: Has a rope bridge been built? (for bridge tagged N-313)
  • 321: Has Ratatouille been defeated?
  • 322: Have you chatted with the Onion to decide your alignment?
  • 323: Has the first floor of the Factory been cleared?
  • 324: Has the Burning Bush been killed?
  • 325: Has the Trigun been killed?
  • 326-329: Has a merchant been shaken down? (Variable 326 also used by Snuggly Bunnies for their quest)
  • 330: Has the supply base been destroyed?
  • 331: Has the rumble been won?
  • 332: Has the player broken out of prison?
  • 333: Has the Junksmith been killed?
  • 334: Has the highway mission been completed? (Snuggly Bunny)
  • 335-349: How many of each item are used in your clockwork bot
    • Which one is which item?
  • 350: Lower half of the Clockbot's current health for going between levels (see variable 452)
  • 351: Which talent you are talking to the Guru about
  • 352: Has the Historian received the library book?
  • 353-357: Has a crystal barrier been opened? (barrier tagged N-353)
  • 358: Has Gourdzilla been killed?
  • 359-360: Bodzhas left alive on the two sides of Shroom Forest
    • 359: Which side?
    • 360: Which side?
  • 361: Has Shrumford been youngified?
  • 362-371: Has a Bokbok been rescued? (Bokbok tagged N-362)
  • 372: Number of Bokboks that have been returned
  • 373: Has the Furnace been lit?
  • 374: Timer for the Justhef Axe
  • 375-384: Has a Titanic Titan been slain? (Titan tagged N-375)
  • 385: The Captain's status at the furnace. One of:
    • 0: None
    • 1: Arrived
    • 2: Active
    • 3: Dead
  • 386-410: Has a tip been shown? (Tip N-386)
  • 411: Has Frostburn's front door been smashed?
  • 412-416: Current life of the Prototype puppets
  • 417: Has Baron von Frostburn been defeated?
  • 418: Has Titan King Melton been defeated?
  • 419-422: Has a switch in Frostburn been flipped? (Switch tagged N-419)
  • 423: Has a Mimic been tamed for the Magicsmith? One of:
    • 0: No mimic tamed
    • 1: Tamed for Magicsmith
    • 2: Tamed for Loony
    • 3: Tamed for Magicsmith and Loony
  • 424-427: Has a switch in Frostburn floor 2 been flipped? (Switch tagged N-424)
  • 427-432: Which spell is in place in each of the 5 spots in the spell menu
  • 433: Has the HSB spoken to the player?
  • 434: Is the player in Madcap mode?
  • 435-445: How many of each type of Madcap crystal has been purchased
    • 435: Might crystals
    • 436: Life crystals
    • 437: Shield crystals
    • 438: Curse crystals
    • 439: Health crystals
    • 440: Shock crystals
    • 441: Fire crystals
    • 442: Ice crystals
    • 443: Wind crystals
    • 444: Nature crystals
    • 445: Death crystals
  • 446-449: The three modifiers you are using. (Modifier N-446)
  • 450: Number of Crystal Points available
  • 451: How long until you can Parry again
  • 452: Upper half of the Clockbot's life variable (see variable 350)
  • 453-472: Profile control settings. Do not change these!
  • 483: Player sound volume. Do not change this!
  • 484: Player music volume. Do not change this!
  • 485: Is the commentary enabled? Do not change this!
  • 486-511: Kill counters, two bytes each
    • Which monsters for each counter?
  • 512: Arena wins
  • 513: Player deaths
  • 514: Has the Flame skill been paid for this attack?
  • 515: Number of trees Klonk has smashed

[edit] Constants

Image:Huh.PNGThe following information needs to be added to this page:
Constants and suchlike

Constants have numbers, names, and 'values'. The number is used when referring to the constant in a special, the name is used for identification and in text files in the case of monster constants, and the 'value' is what the constant means.

[edit] Monster Constants

Monster constants are used in Text Files for specifying randomly generated monsters.

0. MONS_NONE: no monster

  1. MONS_LOONY: the player
  2. MONS_TEDDY: a Teddy
  3. MONS_VILLAGER: a villager
  4. ...

[edit] Quest Constants

Quest numbers are useful for quest variables (see Variables).

  1. QUEST_WOOD: collect 10 logs for the Woodsman
  1. QUEST_PRESENTS: collect all 99 presents
  2. QUEST_PROVE: kill 20 monsters to prove yourself to Kinyova
  3. QUEST_PROVE2: kill 50 more monsters for Kinyova
  4. QUEST_HERBS: collect 10 frostbane herbs for the healer
  5. QUEST_SHARPEN: find the sharpening stone and return it to the woodsman
  6. QUEST_MIMIC: tame mimic
  7. QUEST_CRYSTAL: get the crystal of binding
  8. QUEST_AXES: collect axes for axes r us
  9. QUEST_BOBSWIFE: find Black Market Bob's wife
  10. QUEST_BOBSWIFE2: unlock bob's wife
  11. QUEST_GURU: Guru find all talents
  12. QUEST_RATS: Rat Problem, kill all rats in cabin basement
  13. QUEST_UNDIES: Asbestos Underwear
  14. QUEST_GLADIATOR: reach Gladiator rank 5
  15. QUEST_TOYS: keep toys away from Mickey
  16. QUEST_BOOK: return the library book
  17. QUEST_LETTER: deliver a letter for Healiana
  18. QUEST_ROPES: save ropemaker
  19. QUEST_BALLOON: get ropes for balloon
  20. QUEST_HANDY: bring tools to handyman
  21. QUEST_SOUP: tin cans for ropewife
  22. QUEST_BEARS: slay cave bears
  23. QUEST_BIGBEAR: slay cave bear boss
  24. QUEST_DEVILGRASS: collect devil grass
  25. QUEST_DELIVERY: bring Curaga the item from Magic Guy
  26. QUEST_TITANS: kill ice hounds
  27. QUEST_SKILLS: find every skill
  28. QUEST_FACTORY: destroy toy factory
  29. QUEST_FACTORY2: destroy factory power core
  30. QUEST_ALLIES: obtain some allies (join Onion or Bunny) (split quests)
  31. QUEST_QUESTS: do 3 quests for your side
  32. QUEST_CLOCKJUNK: clockwork or junksmith
  33. QUEST_EASYMINER: candy from a baby or mine stuff
  34. QUEST_HIGHWAY: highway robbery or patrol
  35. QUEST_SHAKEDOWN: shutdown or shakedown
  36. QUEST_SUPPLIES: destroy enemy supply base
  37. QUEST_RUMBLE: rumble with enemies
  38. QUEST_LEADER: slay the enemy leader (end split quests)
  39. QUEST_FURNACE: fix the furnace
  40. QUEST_FRAGILE: sounding crystal needed to get one furnace part
  41. QUEST_PLANTS: second furnace part by killing gourdzilla
  42. QUEST_FOREST: third furnace part by cleansing forest
  43. QUEST_BOKBOK: get bokboks for sharonda, earn binding crystal
  44. QUEST_HIPPY: collect 20 Seeds
  45. QUEST_TITANS2: kill titanic titans
  46. QUEST_BARON: kill baron
  47. QUEST_TOYS2: collect toy repair items
  48. QUEST_CHAMPION: beat final battle in arena
  49. QUEST_HAPPYSTICK: kill happy stick bird

[edit] Sound Constants

Sound numbers are useful in Specials that play a sound.

0. SND_MENUCLICK: clicking noise used for menus

  1. SND_MENUSELECT: when a menu item is chosen
  2. SND_MENUCANCEL: when the menu is exited
  3. SND_PAUSE: when the game is paused
  4. ...


[edit] Hardcoded Things

  • Any campaigns MUST have at least 6 levels. This is because, in a new adventure, Loony starts where you have placed him in Level 05, which is Woody's Cabin in the original game. (The level numbers start from 0.)
  • The following monsters will not work properly when placed:
    • Cryozoid
    • Toasties
    • Lifeberry Bushes
    • Shrooms
    • Crystal Gates
  • To place the player's mimic, just place a mimic monster in a 'safe area'. Of course, it'll only appear when the player has tamed their own mimic.
  • In order to tag the Guru correctly, you have to place a villager tagged '12', with the relevant talent tag in the square below.
  • Magic items and Artifacts placed directly with the editor won't actually do anything.
  • If you want to put any Mimics for the player to feed, put them in level 28. They will disappear anywhere else.
  • The "Welcome to Eisburg" tip will appear when the player first enters level 00.