1. Please be advised of a few specific rules and guidelines for this section.

Outdated [ M|R ] Mad Doctor's Experiements [sg]v09

A modders asset of examples of various things I made for my mods.

  1. The | Suit

    The | Suit Agent S. Forum Moderator

    did you do entity.break()
    or just break()?
     
  2. Inny

    Inny Cosmic Narwhal

    entity.break().
     
  3. The | Suit

    The | Suit Agent S. Forum Moderator

    seems entity.break was removed no idea why.
    guess you will need to do spawn object + smash instead
     
  4. Inny

    Inny Cosmic Narwhal

    I tried this:
    liqType, liqAmount = world.liquidAt({pos[1], pos[2]-2})
    ...
    world.destroyLiquid({pos[1], pos[2]-2})

    But it doesn't work.
    Info: Count Down Finished
    Error: Exception while invoking lua function 'update'. (LuaException) Error code 2, [string "/objects/farmables/wheat/consumeLiq.lua"]:23: attempt to index global 'pos' (a nil value)
     
  5. The | Suit

    The | Suit Agent S. Forum Moderator

    I think I used posOrg you will need to use the same method as the code I used just add a -2 to the end of [2]
    [2] = y value

    edit:
    Keep in mind pos is not part of the game
    its simply a variable I made by saving entity.posistion() into

    so its
    pos = entity.posistion()
    and the values are pos[1], pos[2]

    where 1 = x value
    and 2 = y
     
  6. Inny

    Inny Cosmic Narwhal

    Ah, OK, thanks. It's working now.
    I guess it's not possible to make a crop to stop growing instead of destroying it?
     
  7. The | Suit

    The | Suit Agent S. Forum Moderator

    Farming script is completely hardcoded.
    So if you want ability to stop its growth you will need to rewrite the farming script your self and use a custom object.
     
  8. greenRAM

    greenRAM Giant Laser Beams

    I really love the allergy idea. From the description of the boltbulb I had assumed that only the glitch could eat it without some negative effect. The same with the hot peppers, but with the humans as the only ones able to eat it raw.

    Allergies for the produce to fit their discriptions sounds like something that the vanilla game needs.
     
    Inny likes this.
  9. The | Suit

    The | Suit Agent S. Forum Moderator

    The allergy idea from what i remember was originally a feature suggested in early development. But it never made it into beta.
     
  10. Mackinz

    Mackinz The Waste of Time

    It's still planned, if item descriptions are any metric to judge by.
     
  11. The | Suit

    The | Suit Agent S. Forum Moderator

    xxswatelitexx updated [ M|R ] Mad Doctor's Experiements with a new update entry:

    Liquid Transfer and Wheat Farmable Update

    Read the rest of this update entry...
     

Share This Page