Modding Help Ways to remove items/pixels other than recipes?

Discussion in 'Starbound Modding' started by Denesta, Jan 1, 2014.

  1. The | Suit

    The | Suit Agent S. Forum Moderator

    No problem.
    You can find all the LUA API handelers here
    Code:
    C:\Program Files (x86)\Steam\steamapps\common\Starbound\assets\scripts\API\
     
  2. Denesta

    Denesta Subatomic Cosmonaut

    Yeah, that in hand thing was the first thing i looked at when trying to find a way to remove things but no luck either.

    I did just work out a way to make a crafting interface have a recipe with a random output every time you open it. I just hit another brick wall with that though because it will not randomize again until close and open it again.

    It would work even better with campfire type crafting but a campfire is a container interface and not a crafting interface so i can't open it from a script.
     
  3. HeroIcarus

    HeroIcarus Void-Bound Voyager

    By that do you mean that one could craft an item, then keep crafting to continue getting that same item repeatedly?
     
  4. Supergeek

    Supergeek Scruffy Nerf-Herder

    Just saw this post for the first time.

    I've created a slot machine.

    [​IMG]

    Right now, for testing, I just have to activate it with E, but the release will take a dropped copper ore as payment until we can have objects "charge" pixels.

    There are 7 random "pips" that can come up. Lemons, cherries, bananas, bars, sevens, shamrocks, and diamonds. Rolling 2 or more of each will give a prize, except lemons which are a loser. Cherries give tomatoes, the bananas give bananas. Bars, sevens, and shamrocks give pixels. Diamonds give diamonds.

    I just need to add sounds and it's pretty much done.
     
    The | Suit and Nightmares like this.
  5. The | Suit

    The | Suit Agent S. Forum Moderator

    great job. I actually was wondering if Item.pickup could be applied to an object.

    I just remembered they merged object and entity, both into entity category in angry koala
     
  6. Supergeek

    Supergeek Scruffy Nerf-Herder

    Thanks.

    I use world.itemDropQuery to loop through all the nearby dropped items (just in case there are more than one) and then
    Code:
    if world.entityName(targetId) == "copperore" then
    to see if it's a copper ore, and then
    Code:
    world.takeItemDrop(targetId)
    to eat it. There's more, of course, but these are the important parts.

    I *should* make it take the dropped ores as credits and display the # of credits, and allow you to hit E to roll, but animating those numbers would be tedious.
     
  7. HeroIcarus

    HeroIcarus Void-Bound Voyager

    Combine this with my previous idea (it eating tickets which are purchased with pixels) and you basically have this idea in place
    Please tell me this is going to be released soon. My gambling addiction hungers.
     
  8. The | Suit

    The | Suit Agent S. Forum Moderator

    Aye I remember the code
    But I had a doubt it would work - because it said entity will move toward item.
    So I was wondering if it would glitch out or not.
    Good to know it doesn't
     
  9. Supergeek

    Supergeek Scruffy Nerf-Herder

    Got some great art from Skizot, so I just need to add some audio and it'll be done!
     
  10. Denesta

    Denesta Subatomic Cosmonaut

    Yeah, I would need a way to force the interface to close after every craft.

    Well poop, that is what I was going to play around with this morning. I got to caught up in the random crafting idea last night.

    I always take to long playing around with these things and someone beats me to it. :p
     
  11. Supergeek

    Supergeek Scruffy Nerf-Herder

Share This Page