Yagenius

  • Content Count

    57
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Downloads

Klei Bug Tracker

Game Updates

Hot Lava Bug Reporter

Everything posted by Yagenius

  1. !! WOAH--- !! The problem of FROMNUM , is really the UPPERCASE !!! Thank you !! BTW , I still have one of FRONUM Tags , when I trying to Trigger other form. :: I have change all of my Uppercase tags to lowercase and I'm not sure now why I still getting this FRONUM. X''D :: : Tags result : Trigger first form : : Tags result : Trigger second form : : Tags result : back to hoomane form : The result is I's not crash anymore!!!! !!! OMGGGGGGGGG !!!! ♥♥ !!!! You are the life savior !!!! ♥♥ !! ♥ Thank you Thank you very very much ♥ !! oh... umm.. I have a little problem with some animations invisible, I known I didn't have some of those animations for player. If you don't mind could you tell me how to add the Custom animations , ( for my mod only but other player can see it. ) or disable some actions for my First and Second form? ( I don't want to use player actions when in other form. ) FULL LASTEST FILE : Aika_Test.rar
  2. [00:25:08]: Serializing user: session/39521E4CC0FA031E/C7GSC53084I801G0653I8O8/0000000001 [00:25:17]: SendRemoteExecute(print(ThePlayer.entity:GetDebugString()), 391.301605, -686.893982) [00:25:21]: GUID:100560 Name: Tags: tiger _sheltered birdwhisperer trader _health FROMNUM FROMNUM player idle _builder _sanity _inventory FROMNUM FROMNUM _combat FROMNUM _moisture FROMNUM FROMNUM debuffable FROMNUM _hunger _rider character lightningtarget tigerness Prefab: aikawa AnimState: bank: wilson build: aikawa anim: idle_loop anim/player_idles.zip:idle_loop Frame: 34.00/66 Facing: 3 Transform: Pos=(386.00,0.00,-686.00) Scale=(1.20,1.20,1.20) Heading=0.00 DynamicShadow: Network: NetworkID=4748 Owner=6903582000048810625 NetSleep=0000000000000000000000000000000000000000000000000000000000000000 LightWatcher: IN LIGHT: 19.10-->1.48/0.08 Light: MiniMapEntity: Physics: Collision Group: 1024 Mask: 64,128, (ACTIVE) Vel: 0.00 SoundEmitter: Yes I do , as YakumoYukari said. If I including the FROMNUM Tags Things , It will has around 26 Tags. and .. It doesn't seems like over 31 limit. or Did i miss something?
  3. @YakumoYukari @Ultroman ♥♥♥ OMG !! THANK YOU VERY MUCH FOR YOUR KINDNESS !! ♥♥♥ @YakumoYukari Ummm.... Too many Size limit Tags? Okay , I have tried to checked my Tags today. ( I have 17 - 18 Tags. ) BTW , I don't know really how this game counts the Tags. :'D
  4. ♥♥♥♥ Thank you for your reply !!! ♥♥♥♥ < omg .. I'm feel bad for making this trouble , i'm sorry D'X > I just want him to has LvL + Custom Food and Transforming skill.. , I'm so sorry I don't know How big It is--.. I just want to fixed the Inventory error by put them in the MasterPosinit. ( Maybe just maybe it will fixed them. X'D ) Oh.. Those Two Fn is on lines 558 and 701 .. Is it not declared ? Lines 558 - 699 : line 701 - 787 : ( If I misunderstood something, i'm so sorry.) Does that mean .. I need to erase one of those lines in SetTigerMode like this right ? I have checked my SGweretiger / Modmain / Tigerness Components and they never touched the inventory replica. except my aikawa.lua that has one lines about inventory. ( not a Replica ) onbecametiger , onbecamepretiger Fn. inst.components.inventory:DropEverything(true) I also tried to Disable It. And It seems it still has Inventory error. ( I have similar error about replica before :: Sanity.Replica, Health.Replica, Hunger.Replica :: I have disabled it on lines 657 - 659 and it's fixed ) Another one is my Custom Sgwilson, that has so many inventory. < I just replacing " Beaver " to " Pretiger " Tags and replacing Beaver build. > Honestly.. I really don't know how to fix the replica ... If you don't mind Could you tech me how to fix it, please?
  5. As the title said I still stuck at attempt to index field 'inventory' (a nil value) when I tried to Transforms into another from. ( + random method and located the file when it's crash. # Use Same Code ) 1. error in components / playercontroller : [00:14:24]: [string "scripts/components/playercontroller.lua"]:1080: attempt to index field 'inventory' (a nil value) LUA ERROR stack traceback: scripts/components/playercontroller.lua:1080 in (method) HasAOETargeting (Lua) <1079-1085> scripts/components/playeractionpicker.lua:293 in (method) DoGetMouseActions (Lua) <284-326> scripts/components/playercontroller.lua:1855 in (method) OnUpdate (Lua) <1718-2109> scripts/update.lua:192 in () ? (Lua) <149-228> 2. error in components / builder_replica : [00:25:21]: [string "scripts/components/builder_replica.lua"]:265: attempt to index field 'inventory' (a nil value) LUA ERROR stack traceback: scripts/components/builder_replica.lua:265 in (method) CanBuild (Lua) <256-284> scripts/widgets/crafttabs.lua:519 in (method) DoUpdateRecipes (Lua) <492-589> scripts/widgets/crafttabs.lua:404 in (method) OnUpdate (Lua) <364-406> scripts/frontend.lua:749 in (method) Update (Lua) <616-766> scripts/update.lua:92 in () ? (Lua) <33-129> 3. error in widgets / inventorybar : [00:08:57]: [string "scripts/widgets/inventorybar.lua"]:377: attempt to index local 'inventory' (a nil value) LUA ERROR stack traceback: scripts/widgets/inventorybar.lua:377 in (method) Rebuild (Lua) <353-399> scripts/widgets/inventorybar.lua:420 in (method) OnUpdate (Lua) <401-482> scripts/frontend.lua:749 in (method) Update (Lua) <616-766> scripts/update.lua:92 in () ? (Lua) <33-129> Full error Log : 1. client_log2.txt 2. client_log3.txt 3. client_log4.txt My full prefab script : My Full Files : aikawa.lua , Aika_Test.rar
  6. Version 1.0.7

    125 downloads

    STEAM VERSION : https://steamcommunity.com/sharedfiles/filedetails/?id=510301435 Mystery boy Health : 5 > 3 Sanity : 5 > 3 Hunger : 5 > 3 No nerf No life <33 ( this boi getting dunked on so hard ) His Passive Ability : + Run very Fast. ( สับตีนเเตก ) + Has Level System that make you stronger. + Veggies is good for you. + If you wear glasses, it will make you look a little smarter. + A Normal Boi. - Afraid of Darkness. - He is very Useless at the beginning of the game. - Hungry very fast. - Has nothing special. Update 7/2/2561 : Known some issue in this current version : If you play as Client or With CAVE is enabled , When you transformed some of animations will missing. ( I'll fix it later. ) - Now Catz form have 2 Tier and Requires Level to Unlock. - 1 Tier : Unlock at Lv : 250 ( has 0.05 % to Trigger 1 Tier. ) - 2 Tier : Need 1 Tier and Lv 350 + to Unlock. ( Has 0.10 % to trigger 2 Tier.) Beast Mode 1 Tier ability : + Can Jump + Aoe Attack + Damage Base on Player's Lv. + Sweet Gentle Kitty. ========================================================== Press B to Jump / Pounce ( Can cross over the land , but can get little Bugs. ) Beast Mode 2 Tier ability : + IS AGGRO POTATO. + VERY Rude. ====================== Developer Key included : <<< You can use if you get bugs. ( They can Config.) Press B to Jump / Pounce ( Can cross over the land , but can get little Bugs. ) Press X to Ground Pounding ( Beware The Spike of Lag. ) Press R to Roar ( Make Them Faint. ) Press F to Force Attack Press DOWN ARROW to Force Sleep Press RIGHT ARROW to Force Wake =================================== BONUS FACT <3 : In this form you can use some Emoji. ( If you got Invisible Animations that's mean I'm not add it yet.) Stay Boy : Dance : HE LOVE TO GET BRUSHED AND PAT PAT . <3 + You can use Brush Item to get some Fur Tuft or Thick Fur. + = OR ========================================== Update 31/12/2561 : == CAVE SUPPORT < Beta > == * Fix some bugs. * Fixed : Crash when Transforming ( With Cave ) . - NERF him more <3 + More Feature coming soon. + I may add Frost someday. Update 1/9/2561 : - Remodel his Normal Form. - Fix some bugs. Update 31/8/2561 : -Nerf him so badly. *Base stats change to : 5 *Default Damage Change to : 2 *Crit Damage change to : 0.2 % Happy Survival Thank you to DarkXero, Ultroman and YakumoYukari for helping me . Thank you to Ricky Weng for helping and telling me where's the bug . My DA : http://yoyonobi123.deviantart.com/ My Klei Forums : http://forums.kleientertainment.com/user/691696-yagenius/ My FB : https://www.facebook.com/Yayayah.MeawSockPha <<< I usually Online here IB to me if you have errors. --------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- FAQ : Q : How can I change to the Panda , Bear thing or etc ? A : Just " EAT " Food in " MEAT " type [ LIKE Monster Meat ] or Q : Woah!!! I GET A ERR-!! A : STOP JUST STOP AND SEND ME YOUR LOG PLEASE. It's so annoying when I read those comments. Just go to Documents\ klei\donotstarve\log.txt or Print your Screen where you get bug and send it to me on FB Or DA. ======================================================================================= + Bonus + I recommended you to reach his Lv:200+, before go to dungeo-- i mean Cave. Or Have a ton of meats to triggers his beast form. Lv. 1 - 199 = Feeder Lv. 250 + = Carry Lv. 350 + = God Like :: PROS & CONS :: VEGGIES + It's very useful at the beginning of the game. + Easy to find.( Except you set your world to find harder ) + Use to lower his Ultra instinct. ( Change him back to hoomane from ) - Very low EXP. ( .1 - .5 EXP ) - Give you a little bit full. ( he has a huge hunger rate ) - Late game almost Useless. - I hate Veggies. MEATS + Very High EXP. ( .3 - 2.5 EXP. ) + Use to raise his Ultra instinct. + Very Delicious and High protien. - Raw meat give you more EXP but make your Sanity go down very fast. - Hard to find if you not strong enough or you don't have any friends. - Very Danger at the begin of the game. ( Because he has VERY LOW STATUS. If you eat meat at the very beginning of the game and doesn't have any flower around you, You will dies very fast. ) * Meat and Egg will give you around : 0.5 - 2.5 EXP * Fish will give you around : 1.5 - 2.5 EXP * Veggie , Seed , Fruits will give you around : 0.5 - 2 EXP * Some of Cooked Food will give you around : 0.5 - 2.5 EXP If you want to know more about FOOD that he can eat to lvl up go here :
  7. @DarkXero Ok I can fix the transformation. Can you help me again? Ahhhhhh I have a little problem about his health when turn back to human. Sensei Sama , know code of Multi Sanity? (Like When someone near Me they Sanity will Regen or increase.)
  8. @DarkXero I think I can Fix the transformation problem now. But I have another problem It not Hide Tiger_Meter HUD and bug when " Eat " too much in Weretiger form. (It will go to "Wakeup State")
  9. @DarkXero The perk mean : If eat to much he will Transform . Run Very Fast . Bunny and Bird not run. When Dusk or Night His Sanity will gone down . Mine , Dig , Hammer , Attack very fast.
  10. @DarkXero I think it because of Stategraph . I use SGweretiger It work but can't play animation + can't attack or eating . but when I use SGwilson all animation is work but can't turn back to human because of It not have this State. State{ name = "toaikawa", tags = {"busy"}, onenter = function(inst) inst.Physics:Stop() inst.AnimState:PlayAnimation("death") inst.sg:SetTimeout(3) --inst.SoundEmitter:PlaySound("aikawa/characters/aikawa/tiger_death") inst.components.tigerness.doing_transform = true end, timeline = { TimeEvent(10*FRAMES, function(inst) inst.SoundEmitter:KillSound("tigermusic") end) }, ontimeout = function(inst) TheFrontEnd:Fade(false,2) inst:DoTaskInTime(2, function() inst.components.tigerness.makeperson(inst) inst.components.sanity:SetPercent(.25) inst.components.health:SetPercent(.33) inst.components.hunger:SetPercent(.25) inst.components.tigerness.doing_transform = false inst.sg:GoToState("wakeup") TheFrontEnd:Fade(true,1) end) end },but I think I make me little confuse when I try to change something in it.
  11. @DarkXero the latest script I change transform_weretiger to transform_werebeaver but I not sure if it work...
  12. @DarkXero Yes I have. http://steamcommunity.com/sharedfiles/filedetails/?id=510301435
  13. @DarkXero Hmmm he still not turn back to human.... it because of stategraph?
  14. @DarkXero hmmm... that's mean I just put inst.onbecomehuman = onbecomehumanto master_postinit right , sensei?
  15. @DarkXero Oh!!! can you help me again? I stuck as werebeaver form when The Meter is Go down to 0 like woodie . I try to Set Function to onbecame human but nothing happen. Am I doing right or wrong? local function onbecameaikawa (inst) inst.onbecameaikawa = inst.onbecamehuman end local function tigerhurt(inst, delta) if delta < 0 then inst.sg:PushEvent("attacked") inst.components.tigerness:DoDelta(delta*.25) TheFrontEnd:GetSound():PlaySound("dontstarve/HUD/health_down") inst.onbecameaikawa = true endend local function onbecamehuman(inst) inst.Transform:SetScale(1, 1, 1, 1) inst.tiger = false inst.ActionStringOverride = nil inst.AnimState:SetBank("wilson") inst.AnimState:SetBuild("aikawa") inst:RemoveTag("beaver") inst:RemoveComponent("worker") inst.components.locomotor.walkspeed = 7 inst.components.locomotor.runspeed = 8 inst.components.talker:StopIgnoringAll() inst.components.eater:SetDiet({ FOODGROUP.OMNI }) inst.components.temperature.inherentinsulation = 0 inst.components.temperature.inherentsummerinsulation = 0 inst.components.moisture:SetInherentWaterproofness(0) if inst.components.playercontroller ~= nil then inst.components.playercontroller:SetCanUseMap(true) inst.components.playercontroller.actionbuttonoverride = nil inst.components.playeractionpicker.leftclickoverride = nil inst.components.playeractionpicker.rightclickoverride = nil end inst.components.eater.strongstomach = false inst.components.hunger:Resume() inst.components.sanity.ignore = false inst.components.health.redirect = nil inst.components.tigerness:StartTimeEffect(2, -0.185) inst:RemoveEventCallback("oneatsomething", ontigereat) inst.Light:Enable(false) inst.SoundEmitter:KillSound("danger") inst:DoTaskInTime(0, function() SetHUDState(inst) end)end
  16. @DarkXero Oh!! and Thank you very much for helping me , Sensei !!!!
  17. @ZupaleX Thank you for telling me , but I think I need to fix or clean my computer LOLZ (It's run very slow.)
  18. @DarkXero OMG A DECOMPILE!!! THANK YOU!! THAT'S I LOOKING FOR!!! and how to use it?..... I try to open it but nothing happen ; w ; ....
  19. I try to change bank to "wilson" and it not happen. I think this code is lock for single player or for Woodie only?
  20. @DarkXero I try to SetStategraph to " SGwilson " . or beacause of weretiger_build? in weretiger build has : Anim.bin altas-0.tex build.bin
  21. @DarkXero ok now i have a new problem . When I try to Transform to Tiger but the " Weretiger_build " model is not show anything ( invisibility ) .
  22. @DarkXero Ok , The games is running nicely . but my health is damage by something . (It getting lower and lower) This is the current Code we use : require "stategraphs/SGweretiger"local Badge = require "widgets/badge"local easing = require "easing"local MakePlayerCharacter = require "prefabs/player_common"local start_inv = { "fish", "rabbit", "fish", "fish", "carrot",}local assets ={ Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "anim/player_actions_pickaxe.zip" ), Asset( "ANIM", "anim/player_actions_shovel.zip" ), Asset( "ANIM", "anim/player_actions_blowdart.zip" ), Asset( "ANIM", "anim/player_actions_eat.zip" ), Asset( "ANIM", "anim/player_actions_item.zip" ), Asset( "ANIM", "anim/player_actions_uniqueitem.zip" ), Asset( "ANIM", "anim/player_actions_bugnet.zip" ), Asset( "ANIM", "anim/player_actions_fishing.zip" ), Asset( "ANIM", "anim/player_actions_boomerang.zip" ), Asset( "ANIM", "anim/player_bush_hat.zip" ), Asset( "ANIM", "anim/player_attacks.zip" ), Asset( "ANIM", "anim/player_idles.zip" ), Asset( "ANIM", "anim/player_rebirth.zip" ), Asset( "ANIM", "anim/player_jump.zip" ), Asset( "ANIM", "anim/player_amulet_resurrect.zip" ), Asset( "ANIM", "anim/player_teleport.zip" ), Asset( "ANIM", "anim/wilson_fx.zip" ), Asset( "ANIM", "anim/player_one_man_band.zip" ), Asset( "ANIM", "anim/shadow_hands.zip" ), Asset( "ANIM", "anim/player_woodie.zip"), Asset( "ANIM", "anim/woodie.zip"), Asset( "ANIM", "anim/player_wolfgang.zip"), Asset( "ANIM", "anim/aikawa.zip" ), Asset( "ANIM", "anim/ghost_aikawa_build.zip" ), Asset( "ANIM", "anim/tiger_meter.zip"), Asset("ANIM", "anim/weretiger_build.zip"), Asset( "IMAGE", "images/colour_cubes/tiger_vision_cc.tex" ), Asset( "IMAGE", "images/colour_cubes/tiger_vision_1_cc.tex" ), Asset( "IMAGE", "images/colour_cubes/tiger_vision_2_cc.tex" ), Asset( "IMAGE", "images/colour_cubes/tiger_vision_3_cc.tex" ), Asset( "IMAGE", "images/colour_cubes/tiger_vision_4_cc.tex" ), Asset( "IMAGE", "images/colour_cubes/tiger_vision_5_cc.tex" ), Asset( "IMAGE", "images/colour_cubes/tiger_vision_6_cc.tex" ), Asset("ATLAS", "images/woodie.xml"), Asset("IMAGE", "images/woodie.tex"),}local prefabs = {}local TIGER_DIET ={ FOODTYPE.MEAT,}-- WERETIGER FUNCTIONS --local function tigeractionstring(inst, action) return "chomp"endlocal function TigerActionButton(inst) local action_target = FindEntity(inst, 6, function(guy) return (guy.components.edible and inst.components.eater:CanEat(guy)) or (guy.components.workable and inst.components.worker:CanDoAction(guy.components.workable.action)) end) if not inst.sg:HasStateTag("busy") and action_target then if (action_target.components.edible and inst.components.eater:CanEat(action_target)) then return BufferedAction(inst, action_target, ACTIONS.EAT) else return BufferedAction(inst, action_target, action_target.components.workable.action) end endendlocal function LeftClickPicker(inst, target_ent, pos) if inst.components.combat:CanTarget(target_ent) then return inst.components.playeractionpicker:SortActionList({ACTIONS.ATTACK}, target_ent, nil) end if target_ent and target_ent.components.edible and inst.components.eater:CanEat(target_ent) then return inst.components.playeractionpicker:SortActionList({ACTIONS.EAT}, target_ent, nil) end if target_ent and target_ent.components.workable and inst.components.worker:CanDoAction(target_ent.components.workable.action) then return inst.components.playeractionpicker:SortActionList({target_ent.components.workable.action}, target_ent, nil) endendlocal function RightClickPicker(inst, target_ent, pos) return {}end-------------------- CHANGE BADGE --------------------local TigerBadge = Class(Badge, function(self, owner) Badge._ctor(self, "tiger_meter", owner)end)---------------------- CHANGE TO MEAT ----------------------local function ontigereat(inst, data) if data.food and data.food.components.edible.ismeat and inst.components.tigerness:IsTiger() then if data.food.components.edible.hungervalue == TUNING.CALORIES_TINY then inst.components.tigerness:DoDelta(1) elseif data.food.components.edible.hungervalue == TUNING.CALORIES_SMALL then inst.components.tigerness:DoDelta(3) elseif data.food.components.edible.hungervalue == TUNING.CALORIES_MEDSMALL then inst.components.tigerness:DoDelta(6) elseif data.food.components.edible.hungervalue == TUNING.CALORIES_MED then inst.components.tigerness:DoDelta(10) else inst.components.tigerness:DoDelta(15) end endendlocal function onaikawaeat(inst, food) if inst:HasTag("beaver") then return end -- 1 Delta is 1% -- Tigerness 70 if food.name == 'Meaty Stew' or food.name == 'Monster Meat' then inst.components.tigerness:DoDelta(70) -- Tigerness 40 elseif food.name == 'Meat' or food.name == 'Monster Lasagna' or food.name == 'Koalefant Trunk' or food.name == 'Winter Koalefant Trunk' then inst.components.tigerness:DoDelta(40) -- Tigerness 35 elseif food.name == 'Bacon and Eggs' or food.name == 'Turkey Dinner' or food.name == 'Tallbird Egg' or food.name == 'Koalefant Trunk Steak' or food.name == 'Koalefant Trunk Steak' then inst.components.tigerness:DoDelta(35) -- Tigerness 30 elseif food.name == 'Morsel' or food.name == 'Batilisk Wing' or food.name == 'Leafy Meat' then inst.components.tigerness:DoDelta(30) -- Tigerness 20 elseif food.name == 'Frog Legs' or food.name == 'Fishsticks' or food.name == 'Cooked Leafy Meat' then inst.components.tigerness:DoDelta(20) -- Tigerness 12 elseif food.name == 'Jerky' or food.name == 'Egg' then inst.components.tigerness:DoDelta(12) -- Tigerness 10 elseif food.name == 'Cooked Meat' or food.name == 'Cooked Frog Legs' or food.name == 'Cooked Egg' then inst.components.tigerness:DoDelta(10) -- Tigerness 8 elseif food.name == 'Drumstick' or food.name == 'Small Jerky' then inst.components.tigerness:DoDelta(7) -- Tigerness 7 elseif food.name == 'Fried Drumstick' or food.name == 'Fish' then inst.components.tigerness:DoDelta(7) -- Tigerness 5 elseif food.name == 'Cooked Morsel' or food.name == 'Cooked Fish' then inst.components.tigerness:DoDelta(5) end if inst.components.tigerness:GetPercent() > .8 then inst.components.talker:Say(GetString("aikawa", "ANNOUNCE_TIGERNESS_HIGHEST")) elseif inst.components.tigerness:GetPercent() > .65 then inst.components.talker:Say(GetString("aikawa", "ANNOUNCE_TIGERNESS_HIGHER")) elseif inst.components.tigerness:GetPercent() > .5 then inst.components.talker:Say(GetString("aikawa", "ANNOUNCE_TIGERNESS_AVERAGE")) elseif inst.components.tigerness:GetPercent() > .3 then inst.components.talker:Say(GetString("aikawa", "ANNOUNCE_TIGERNESS_LOW")) elseif inst.components.tigerness:GetPercent() > .2 then inst.components.talker:Say(GetString("aikawa", "ANNOUNCE_TIGERNESS_LOWER")) elseif inst.components.tigerness:GetPercent() > .1 then inst.components.talker:Say(GetString("aikawa", "ANNOUNCE_TIGERNESS_LOWEST")) end print ('tigerness', inst.components.tigerness:GetPercent()) end--------------------- SetTigerMode --------------------local function SetHUDState(inst) if inst.HUD then if inst.components.tigerness:IsTiger() and not inst.HUD.controls.tigerbadge then inst.HUD.controls.tigerbadge = GetPlayer().HUD.controls.sidepanel:AddChild(TigerBadge(inst)) inst.HUD.controls.tigerbadge:SetPosition(0,-100,0) inst.HUD.controls.tigerbadge:SetPercent(1) inst.HUD.controls.tigerbadge.inst:ListenForEvent("tigernessdelta", function(_, data) inst.HUD.controls.tigerbadge:SetPercent(inst.components.tigerness:GetPercent(), inst.components.tigerness.max) if not data.overtime then if data.newpercent > data.oldpercent then inst.HUD.controls.tigerbadge:PulseGreen() TheFrontEnd:GetSound():PlaySound("dontstarve/HUD/health_up") elseif data.newpercent < data.oldpercent then TheFrontEnd:GetSound():PlaySound("dontstarve/HUD/health_down") inst.HUD.controls.tigerbadge:PulseRed() end end end, inst) inst.HUD.controls.crafttabs:Hide() inst.HUD.controls.inv:Hide() inst.HUD.controls.status:Hide() inst.HUD.controls.mapcontrols.minimapBtn:Hide() inst.HUD.tigerOL = inst.HUD.under_root:AddChild(Image(resolvefilepath "images/woodie.xml", "beaver_vision_OL.tex")) inst.HUD.tigerOL:SetVRegPoint(ANCHOR_MIDDLE) inst.HUD.tigerOL:SetHRegPoint(ANCHOR_MIDDLE) inst.HUD.tigerOL:SetVAnchor(ANCHOR_MIDDLE) inst.HUD.tigerOL:SetHAnchor(ANCHOR_MIDDLE) inst.HUD.tigerOL:SetScaleMode(SCALEMODE_FILLSCREEN) inst.HUD.tigerOL:SetClickable(false) elseif not inst.components.tigerness:IsTiger() and inst.HUD.controls.tigerbadge then if inst.HUD.controls.tigerbadge then inst.HUD.controls.tigerbadge:Kill() inst.HUD.controls.tigerbadge = nil end if inst.HUD.tigerOL then inst.HUD.tigerOL:Kill() inst.HUD.tigerOL = nil end inst.HUD.controls.crafttabs:Show() inst.HUD.controls.inv:Show() inst.HUD.controls.status:Show() inst.HUD.controls.mapcontrols.minimapBtn:Show() end endendlocal function tigerhurt(inst, delta) if delta < 0 then inst.sg:PushEvent("attacked") inst.components.tigerness:DoDelta(delta*.25) TheFrontEnd:GetSound():PlaySound("dontstarve/HUD/health_down") inst.HUD.controls.tigerbadge:PulseRed() if inst.HUD.bloodover then inst.HUD.bloodover:Flash() end endendlocal function OnIsFullmoon(inst, isfullmoon) if isfullmoon then if inst.components.tigerness:GetPercent() > .25 then inst.components.tigerness:SetPercent(.25) end inst.components.tigerness:SetTimeEffectMultiplier(TUNING.BEAVER_FULLMOON_DRAIN_MULTIPLIER*0.2) else inst.components.tigerness:SetTimeEffectMultiplier(1) endendlocal function ontigernesschange(inst) if inst.sg:HasStateTag("nomorph") or inst.sg:HasStateTag("silentmorph") or inst:HasTag("playerghost") or inst.components.health:IsDead() or not inst.entity:IsVisible() then return end if inst.istigermode:value() then if inst.components.tigerness:GetPercent() > TUNING.WOODIE_TRANSFORM_TO_HUMAN then inst:PushEvent("transform_person") end elseif inst.components.tigerness:GetPercent() <= TUNING.WOODIE_TRANSFORM_TO_BEAVER then inst:PushEvent("transform_weretiger") endend-------------------------------------------------------------------------------------------------------------------------- local function onbecamehuman(inst) inst.Transform:SetScale(1, 1, 1, 1) inst.tiger = false inst.ActionStringOverride = nil inst.AnimState:SetBank("wilson") inst.AnimState:SetBuild("aikawa") inst:RemoveTag("beaver") inst:RemoveComponent("worker") inst.components.locomotor.walkspeed = 7 inst.components.locomotor.runspeed = 8 inst.components.talker:StopIgnoringAll() inst.components.eater:SetDiet({ FOODGROUP.OMNI }) inst.components.temperature.inherentinsulation = 0 inst.components.temperature.inherentsummerinsulation = 0 inst.components.moisture:SetInherentWaterproofness(0) inst.components.pinnable.canbepinned = true inst.components.talker:StopIgnoringAll("becametiger") inst.components.catcher:SetEnabled(true) inst.CanExamine = nil if inst.components.playercontroller ~= nil then inst.components.playercontroller:SetCanUseMap(true) inst.components.playercontroller.actionbuttonoverride = nil inst.components.playeractionpicker.leftclickoverride = nil inst.components.playeractionpicker.rightclickoverride = nil end inst.components.eater.strongstomach = false inst.components.hunger:Resume() inst.components.sanity.ignore = false inst.components.health.redirect = nil inst.components.tigerness:StartTimeEffect(2, -0.185) inst:RemoveEventCallback("oneatsomething", ontigereat) inst.Light:Enable(false) inst.SoundEmitter:KillSound("danger") inst:DoTaskInTime(0, function() SetHUDState(inst) end)endlocal function onbecametiger(inst) inst.tiger = true inst.Transform:SetScale(1.6, 1.6, 1.6, 1.6) inst.components.eater:SetDiet({ FOODGROUP.TIGERDIET } , { FOODTYPE.HORRIBLE }) inst.ActionStringOverride = tigeractionstring inst:AddTag("beaver") inst.AnimState:SetBuild("weretiger_build") inst.AnimState:SetBank("weretiger") inst:SetStateGraph("SGweretiger") inst.components.talker:IgnoreAll() inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 7 inst.components.combat:SetDefaultDamage(TUNING.BEAVER_DAMAGE*2) inst.components.health:SetAbsorptionAmount(TUNING.BEAVER_ABSORPTION*1.5) inst.components.inventory:DropEverything() inst.components.playercontroller.actionbuttonoverride = TigerActionButton inst.components.playeractionpicker.leftclickoverride = LeftClickPicker inst.components.playeractionpicker.rightclickoverride = RightClickPicker --inst.components.eater:SetBeaver() inst:AddComponent("worker") inst.components.worker:SetAction(ACTIONS.DIG, 4) --inst.components.worker:SetAction(ACTIONS.CHOP, 4) --inst.components.worker:SetAction(ACTIONS.MINE, 4) inst.components.worker:SetAction(ACTIONS.HAMMER, 4) --inst:RemoveEventCallback("oneatsomething", onaieat) inst:ListenForEvent("oneatsomething", ontigereat) inst.components.sanity:SetPercent(1) inst.components.health:SetPercent(1) inst.components.hunger:SetPercent(1) inst.components.hunger:Pause() inst.components.sanity.ignore = true inst.components.health.redirect = tigerhurt inst.components.health.redirect_percent = .25 inst.components.eater.strongstomach = true inst.components.eater.monsterimmune = true inst.CanExamine = CannotExamine if inst.components.playercontroller ~= nil then inst.components.playercontroller:SetCanUseMap(false) end local dt = 3 local BEAVER_DRAIN_TIME = 120 inst.components.tigerness:StartTimeEffect(dt, (-100/BEAVER_DRAIN_TIME)*dt) inst.Light:Enable(true) inst.components.dynamicmusic:Disable() inst.SoundEmitter:KillSound("eating") inst.SoundEmitter:PlaySound("dontstarve/music/music_epicfight_winter", "danger") --GetWorld().components.colourcubemanager:SetOverrideColourCube(resolvefilepath "images/colour_cubes/tiger_vision_3_cc.tex") inst:DoTaskInTime(0, function() SetHUDState(inst) end)endlocal function onload(inst) inst:ListenForEvent("ms_respawnedfromghost", onbecamehuman) if not inst:HasTag("playerghost") then onbecamehuman(inst) endend----------------------------------------------------------------------------Re-enter idle state right after loading because--idle animations are determined by beaver state.local function onentityreplicated(inst) if inst.sg ~= nil and inst:HasTag("beaver") then inst.sg:GoToState("idle") endendlocal function onpreload(inst, data) if data ~= nil and data.istiger then onbecametiger(inst) inst.sg:GoToState("idle") endendlocal function onload(inst) inst:ListenForEvent("ms_respawnedfromghost", onbecamehuman) if not inst:HasTag("playerghost") then onbecamehuman(inst) endend--------------------------------------------------------------------------local function oncollide(inst, other) if other == GetPlayer() or not inst:HasTag("beaver") then return end inst:DoTaskInTime(2*FRAMES, function() if other and other.components.workable and other.components.workable.workleft > 0 then SpawnPrefab("collapse_small").Transform:SetPosition(other:GetPosition():Get()) other.components.workable:Destroy(inst) TheCamera:Shake("SIDE", 0.5, 0.05, 0.1) end end)endlocal master_postinit = function(inst)inst.components.health:SetMaxHealth(250) inst.components.hunger:SetMax(100) inst.components.sanity:SetMax(100) inst.components.sanity.night_drain_mult = 0 inst.components.sanity.neg_aura_mult = 0 inst.components.temperature.maxtemp = 40 inst.components.health.fire_damage_scale = 5 inst.MiniMapEntity:SetIcon( "aikawa.tex" ) -- Custom Sound inst.soundsname = "willow" inst.components.talker.colour = Vector3(255/255, 255/255, 255/255) inst.MiniMapEntity:SetIcon( "aikawa.tex" ) -- Stats -- Damage multiplier (optional) inst.components.combat.damagemultiplier = 1.8 -- Hunger rate (optional) inst.components.hunger.hungerrate = 0.8 * TUNING.WILSON_HUNGER_RATEend-- WERETIGER FUNCTIONS END --local function common_postinit(inst) inst:AddTag("woodcutter") inst:AddTag("polite") inst:AddTag("ghostwithhat") --beaverness (from beaverness component) added to pristine state for optimization inst:AddTag("tigerness") if not TheWorld.ismastersim then inst.OnEntityReplicated = onentityreplicated endendlocal function master_postinit(inst) inst:AddComponent("tigerness") inst._wasnomorph = nil inst.entity:AddLight() inst.Light:Enable(false) inst.Light:SetRadius(15) inst.Light:SetFalloff(.5) inst.Light:SetIntensity(.6) inst.Light:SetColour(255/255,0/255,0/255) -- WERETIGER -- inst:AddComponent("tigerness") inst.components.tigerness.makeperson = onbecamehuman inst.components.tigerness.maketiger = onbecametiger inst.components.tigerness.onbecomeperson = function() inst:PushEvent("transform_person") end inst.components.tigerness.onbecometiger = function() inst:PushEvent("transform_weretiger") end onbecamehuman(inst) inst.components.eater:SetOnEatFn(onaikawaeat) -- WERETIGER END -- inst.Physics:SetCollisionCallback(oncollide) inst.OnLoad = onload inst.OnPreLoad = onpreload inst.OnNewSpawn = onloadendreturn MakePlayerCharacter("aikawa", prefabs, assets, common_postinit, master_postinit, start_inv)Thank you For your help very much!!!