Jump to content

Ramibuk

Member
  • Posts

    97
  • Joined

  • Last visited

Community Answers

  1. Ramibuk's post in Moving dead bodies was marked as the answer   
    Good one ExcentricCreation,this actualy move sprite but only after restart and sprite is flying in middleair so i need to update it somehow.
     
    this is working core of my test code  
    Also im adding dead body as SpecialTileObject so its not in StaticMovingObjects but  in MovingObjects  and it cant be picked up again right now.
     
    I will  try few more things later with updating corpse and adding different types of objects.
  2. Ramibuk's post in Multiple Items Resultting from Recipe was marked as the answer   
    script dont take more results.Some items needed for recipe aren't used in process (in script they have "keep" word) but they are not results.
    You must write a new function  in lua to get different result
    function AnotherResult(_crafttool,_resultItem,_recipe) if _recipe =="Rip Bandages" then getPlayer():getInventory():AddItem("Base.Shotgun") endendEvents.OnMakeItem.Add(AnotherResult)This is example,i didnt tested it ,but i use similar function and it works this way
  3. Ramibuk's post in Cant create recipe was marked as the answer   
    I forgot about  ":" in result line -.-
    recipe cmon { Trousers, Result:Shoes, Time:100.0, }
  4. Ramibuk's post in Game Won't Load was marked as the answer   
    mods must have have this line in mod.info 
    id=ModName change ModName for whatever you want,preferably actual mod name.Be sure to try only one mod at once and remove mod from loaded.file if it fail to start.
    You can see your PZ version in main menu in rigft bottom corner.
  5. Ramibuk's post in How to set character on fire? was marked as the answer   
    Thanks to Stormy:

     

    gridSquare:AddTileObject(IsoFire.new(gridSquare:getCell(), gridSquare, true, 2))

     

    Not sure what that end number is for and the fire seems to spawn long after I call the function but that definitely does add a fire to a square.
  6. Ramibuk's post in Will items.txt changes take effect in current game? was marked as the answer   
    If you change items stats in original items.txt file, ingame items will have your new values in any new or old gamesaves.
     
    .I think from 2.9.9.17 version if you create your own *.txt file in your mod folder and create item with same name as in original items.txt it will override original item -  check http://theindiestone.com/forums/index.php/topic/2011-how-to-use-the-modloader/
     
    to add item  check this guide http://pz-mods.net/guide/your-first-pz-lua-script/
×
×
  • Create New...