• Announcements

    • JoeW
    • JanH

      Rhymes with Play 149 - Oxygen Not Included (Update Preview Stream)   07/26/2017

      On this week's Rhymes with Play episode, our team will be playing and discussing content that we are currently developing for the upcoming Oxygen Not Included update. As always the live stream will be going live on Thursday (July 27) at 3:30 PM Pacific / 10:30 PM UTC only on the Rhymes with Play Dev Cast on Twitch. NOTE: As Oxygen Not Included is still in active development, content shown on Rhymes with Play streams may change before going live on Steam Early Access. Where is it?
      On our official Twitch Channel: https://www.twitch.tv/kleientertainment When is it?
      Twitch Stream Date: July 27, 2017 10:30 PM UTC (Coordinated Universal Time)
      6:30 PM ET (East)
      5:30 PM CT (Central)
      4:30 PM MT (Mountain) Here is a handy tool you can use to figure out what time that means for you. Check out the stream announce thread for discussions!

AkaiNight

Registered Users
  • Content count

    74
  • Joined

  • Last visited

Community Reputation

3 Neutral

About AkaiNight

  • Rank
    Junior Member

Recent Profile Visitors

555 profile views
  1. Hello guys this topic about some questions for making custom character custom items. I have some (lots of) question. The first of all, is there any guide topic for making a custom weapon and armor and amulet and ofcourse backpack? If there is i can't find it so i hope you guys answer my questions. The first one: How can i make my character can't wear any backpacks except my custom item can't wear anything except my custom item can't use chester (can't pick eyebone too) can't use any weapon or tool except my custom item well is it possible to add my character 3 more stats like health, sanity and hunger? first one soulholder for every kill captures 1 soul and the second one for tools when cut a tree or mine a thing or hammer a thing or razor a thing shovel a thing or pick a ground 1 points up and the third one for catch bugs or fish for every catch 1 points up or everytime you use pen of phoenix 1 points up it it possible to make this and can i make this like health bar shown of right top of screen like little health bar And the second one: How do i know if code is working or not? Because i'm using this code for Critters sanity aura local function critter_SanityAura(inst) local x, y, z = inst.Transform:GetWorldPosition() local delta = 0 local ents = TheSim:FindEntities(x, y, z, 20, {"critter_puppy", "critter_kitten"}) local bonus_sanity = nil -- initialise local distsq = nil -- initialise local totalDelta = nil -- initialise for k, v in pairs(ents) do if v ~= inst then if v.entity == "critter_puppy" then -- Lose sanity here bonus_sanity = -TUNING.SANITYAURA_MEDIUM distsq = math.max(inst:GetDistanceSqToInst(v), 1) delta = delta + bonus_sanity / distsq elseif v.entity == "critter_kitten" then -- Gain sanity here bonus_sanity = TUNING.SANITYAURA_SMALL distsq = math.max(inst:GetDistanceSqToInst(v), 1) delta = delta + bonus_sanity / distsq else -- do nothing; I like to have else clauses just in case. end end totalDelta = totalDelta + delta end if #ents > 0 then -- actually you could move this up to just before the for loop (save some processing power). totalDelta = totalDelta / #ents else totalDelta = 0 end return totalDelta end and it seems like not working but i can't be sure also i'm using a code for foods but this part is not working that should make every eatable things in game makes give 5 hunger and -10 sanity but when eat something the server stops working elseif food and food.components.edible and food.prefab == not "ice" or "fish_cooked" or "fish" or "fishtacos" or "fishsticks" then local hungerboost = 5 local sanityboost = -10 local foodcheck = food.inst.prefab == "spoiled_food" and 0 or hungerboost inst.components.health:DoDelta(0) inst.components.sanity:DoDelta(0) inst.components.hunger:DoDelta(5 - food:GetHunger() * eater.hungerabsorption) inst.components.talker:Say("I shouldn't eat that. Nya~") end and that makes game crash no error no warning just white screen inst.AddTag("fridge") And the other problem custom weapon well i'm trying to do a SUPER-MULTI-ULTRA-WEAPONTOOL here is what i want to add to weapon --fight 1-sword of immortal: makes high damage, slowly hits, restores health %3 of damage (key shift+1) 2-scythe : low damage, attacks nearby enemies too, fastly hits (key shift+2) 3-ice bow: normal damage, little fast, slows enemy (no need ammo takes 3 sanity per attack if santy less than 5 can't attack) (slows %50 for 2 seconds) (key shift+3) --light 4-wand of light: with 'c' glows and turns off, like infinity lamb (takes 30sanity per 30 sec) (if santy less then 35 can't use) (key shift+4) 5-wand of priestess: heals nearby players (3per sec) and herself (1 per sec) and nearby players gain little sanity regen (takes 10 sanity per 3 sec) (if sanity less than 50 can't use) (key shift+5) 6-instrument of heaven: gains sanity (medium) when played with a custom animation like flute (key shift+6) --dark 7-spear of lavaqueen: has long hit range, low damage, slow attack speed, burns when hit (3 seconds and 2 damage per sec) (key shift+7) 8-book of death: slows everyone on map and hit slower (takes 3 healt per sec) (if health less than 25 can't use) (key shift+8) 9-dart of snake lord: large range, hit slow, low damage, poisonly (takes 3 sanity per attack) (poison for 5 sec and makes 2 dmg per sec) (if santy less than 5 can't attack) (key shift+9) --tool 10-Rockdestroyer: Just normal pickaxe (key ctrl+1) 11-Forestkiller: Just normal axe (key ctrl+2) 12-JustShovel: As named Just shovel (key ctrl+3) 13-Destroyer: Just a hammer (key ctrl+7) 14-Groundpicker: Just a pitch fork (key ctrl+4) 15:Raazor: not a razor it's Raazor but it's just a simple razor but can't use for shave beard (key ctrl+8) --stuff 16-Rod Of Megaladon: Just an infinity rod (key ctrl+5) 17:Bugcatcher: Just a normal bug net (key ctrl+6) 18:Pen of phoenix: Just a feather pencil (key ctrl+9) and if it possible can i add my weapon lvl system but using souls, treepoints, minepoints and catch points i mean when you got 10 catch points you can use pen of phoenix. Like after kill 10 mob you can use scythe? and if it's possible to make can it change skin when changed weapon or tool type? I mean when you use the scythe it turns a scythe, when you use spear of lavaquenn it changes to a spear? and i forget to ask how i can make custom skin is there any guide for it?
  2. Some codes not working

    thanks again i'll try something for fridge i hope one of them work
  3. Some codes not working

    And also this code is just not works it was working before inst.AddTag("fridge") when i put this into master_postinit the game crashes and here is error and the line is function EntityScript:AddTag(tag) self.entity:AddTag(tag) end
  4. Some codes not working

    About OnEat function the other parts of code works properly so here is the full code local function oneat(inst, food) if food and food.components.edible and food.prefab == "fishsticks" then inst.components.health:DoDelta(50) inst.components.sanity:DoDelta(50) inst.components.hunger:DoDelta(50) inst.components.talker:Say("Itadakimasu. Nya~", 1.2, true) elseif food and food.components.edible and food.prefab == "fishtacos" then inst.components.health:DoDelta(50) inst.components.sanity:DoDelta(50) inst.components.hunger:DoDelta(50) inst.components.talker:Say("Itadakimasu. Nya~", 1.2, true) elseif food and food.components.edible and food.prefab == "fish" then inst.components.health:DoDelta(20) inst.components.sanity:DoDelta(30) inst.components.hunger:DoDelta(20) inst.components.talker:Say("Itadakimasu. Nya~", 1.2, true) elseif food and food.components.edible and food.prefab == "fish_cooked" then inst.components.sanity:DoDelta(-15) inst.components.talker:Say("Don't you know the fire is not good for me! Do not try to eat that me again!!!. Nya~", 1.2, true) elseif food and food.components.edible and food.prefab == "ice" then inst.components.health:DoDelta(5) inst.components.sanity:DoDelta(10) inst.components.talker:Say("Itadakimasu. Nya~", 1.2, true) elseif food and food.components.edible and food.prefab == not "ice" or "fish_cooked" or "fish" or "fishtacos" or "fishsticks" then inst.components.health:DoDelta(0) inst.components.sanity:DoDelta(0) inst.components.hunger:DoDelta(5) inst.components.talker:Say("I shouldn't eat that. Nya~") end end
  5. Some codes not working

    thank you so much for code and information.
  6. i try to make some codes but they're not working. here is the codes --When kittykit around gain sanity local function sanitykk(inst) local x, y, z = inst.Transform:GetWorldPosition() local delta = 0 local ents = TheSim:FindEntities(x, y, z, 20, {"critter_kitten"}) for k, v in pairs(ents) do if v ~= inst then local bonus_sanity = TUNING.SANITYAURA_SMALL local distsq = math.max(inst:GetDistanceSqToInst(v), 1) delta = delta + bonus_sanity / distsq end end return delta end --When varling around lose sanity local function sanityvl(inst) local x, y, z = inst.Transform:GetWorldPosition() local delta = 0 local ents = TheSim:FindEntities(x, y, z, 20, {"critter_puppy"}) for k, v in pairs(ents) do if v ~= inst then local bonus_sanity = -TUNING.SANITYAURA_MEDIUM local distsq = math.max(inst:GetDistanceSqToInst(v), 1) delta = delta + bonus_sanity / distsq end end return delta end i don't know what is wrong here is master postinit inst.components.sanity.custom_rate_fn = sanitykk inst.components.sanity.custom_rate_fn = sanityvl and also this one is not working too. local function oneat(inst, food) if food and food.components.edible and food.prefab == not "ice" or "fish_cooked" or "fish" or "fishtacos" or "fishsticks" then inst.components.health:DoDelta(0) inst.components.sanity:DoDelta(0) inst.components.hunger:DoDelta(5) inst.components.talker:Say("I shouldn't eat that. Nya~") end and master postinit inst.components.eater:SetOnEatFn(oneat) there is no error or the game is not closing they just... not working. I don't know how to fix. Did i write wrong or did i miss something?
  7. can you send candy.lua? I think i can fix it but english is not my main language so i can't explain it to you :/
  8. for this code if i chance player with critter_kitten is that work (i mean when kittykit around will i gain sanity?) and how much sanity will i gain per minunte can i edit this like 5 sanity per min? Or can i make it lose sanity like 7 per min?
  9. is it possible to make a character only eat fish, fishtacos, fishsticks and ice? also how can i make my character can't wear anything and can't use any weapon or tool except her own weapon?
  10. try this for no sanity lose dusk and night inst.components.sanity.night_drain_mult =0 inst.components.sanity.dusk_drain_mult =0 into master_postinit and this for lose 2 sanity per min inst.components.sanity:StartRegen(-2, 60) into master_postinit and this for 2x damage from overheating this may work for freezing i don't know local function IncreaseHurtRate(inst) inst.components.temperature.hurtrate = inst.components.temperature.hurtrate * 2 end local function DecreaseHurtRate(inst) inst.components.temperature.hurtrate = inst.components.temperature.hurtrate / 2 end into character.lua also put this master_postinit inst:ListenForEvent("startoverheating", IncreaseHurtRate) inst:ListenForEvent("stopoverheating", DecreaseHurtRate)
  11. is it possible to make it fo other players? I mean when they near you they gain sanity or walk and attack speed? Is it possible to make a code like this?