AkaiNight

  • Content count

    202
  • Joined

  • Last visited

Community Reputation

12 Good

About AkaiNight

  • Rank
    Member

Recent Profile Visitors

1,832 profile views
  1. Lua scripting help

    well the problem is on line 141 and 199 in character.lua
  2. Lua scripting help

    can you upload your log file. it seems like the problem in wolfsier.lua and line 133-148 and 199 for details you should look at log
  3. Lua scripting help

    I don'k know about wortox can you explain? Also why do you use this inst.components.health:SetMaxHealth(TUNING.wolfshier_HEALTH) inst.components.hunger:SetMax(TUNING.wolfshier_HUNGER) inst.components.sanity:SetMax(TUNING.wolfshier_SANITY) local function master_postinit(inst) inst.starting_inventory = start_inv[TheNet:GetServerGameMode()] or start_inv.default inst.customidleanim = "idle_wolfshier" inst.components.health:SetMaxHealth(TUNING.wolfshier_HEALTH) inst.components.hunger:SetMax(TUNING.wolfshier_HUNGER) inst.components.sanity:SetMax(TUNING.wolfshier_SANITY) inst.components.sanity.neg_aura_mult = TUNING.wolfshier_SANITY_AURA_MULT if inst.components.eater ~= nil then inst.components.eater:SetAbsorptionModifiers(TUNING.wolfshier_FOOD_MULT, TUNING.wolfshier_FOOD_MULT, TUNING.wolfshier_FOOD_MULT) end inst:AddComponent("souleater") inst.components.souleater:SetOnEatSoulFn(OnEatSoul) inst._checksoulstask = nil inst:ListenForEvent("gotnewitem", OnGotNewItem) inst:ListenForEvent("dropitem", OnDropItem) inst:ListenForEvent("soulhop", OnSoulHop) inst:ListenForEvent("murdered", OnMurdered) inst:ListenForEvent("harvesttrapsouls", OnHarvestTrapSouls) inst:ListenForEvent("ms_respawnedfromghost", OnRespawnedFromGhost) inst:ListenForEvent("ms_becameghost", OnBecameGhost) OnRespawnedFromGhost(inst) end in that one? It worked when i delete them but with a little problem it starts on sea :/ Your character works with that check it and let me know if anything missing wolfshier.lua
  4. you should put 45 and im not sure im not pro :/
  5. Lua scripting help

    well i have some exams and i cant give time for dst im sorry for waiting you but i'll take a loot as soon as possible. can you give some info about your character what did you try to add?
  6. Lua scripting help

    it would be great
  7. Lua scripting help

    you should delete Asset("SCRIPT", "scripts/prefabs/wolfshier_soul_common.lua"), in your character.lua you should put it in modmain.lua my character has a bow named shirayuki and it has shirayuki.lua like yours so you should put it like that PrefabFiles= { "kitsura", "kitsura_none", "shirayuki", }
  8. Lua scripting help

    can you upload your character.lua. The problem is in your character.lua on 9th line
  9. there was a "v" out of line i just deleted it.
  10. broken night vision code

    i do need them i just have problem with night vision. It must be only on new moon. And what about this this should be fine right?? local function MoonsCurse(inst) if TheWorld.state.isnight then if TheWorld.state.moonphase == "new" then inst.components.combat:SetAttackPeriod(0.4) inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 10 inst.AddTag("nighty") end if TheWorld.state.moonphase == "full" then inst.components.combat:SetAttackPeriod (0.8) inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 4 inst.components.talker:Say("I can feel the curse of moon. The moon binds us! Nya~") end end if TheWorld.state.isdusk then if TheWorld.state.moonphase == "new" then inst.components.combat:SetAttackPeriod (0.4) inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 10 inst.components.talker:Say("I can't feel the moon. Finally i can be free. Nya~") end if TheWorld.state.moonphase == "full" then inst.components.combat:SetAttackPeriod (0.8) inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 4 inst.components.talker:Say("Oh! I can feel the moon. This night will be cursed. Nya~") end end if TheWorld.state.moonphase not == "new" then inst.RemoveTag("nighty") end if inst.HasTag("nighty") then inst.Light:Enable(true) inst.Light:SetRadius(18) inst.Light:SetFalloff(0.75) inst.Light:SetIntensity(.7) inst.Light:SetColour(70/255,230/255,12/170) end if TheWorld.state.isday then inst.components.locomotor.walkspeed = 4.6 inst.components.locomotor.runspeed = 7 inst.components.combat:SetAttackPeriod (0.6) end end
  11. broken night vision code

    im not sure what you exactly mean but something like this i suppoise local function MoonsCurse(inst) if TheWorld.state.isnight then TheWorld.state.moonphase == "new" then inst.components.combat:SetAttackPeriod(0.4) inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 10 inst.Light:Enable(true) inst.Light:SetRadius(18) inst.Light:SetFalloff(0.75) inst.Light:SetIntensity(.7) inst.Light:SetColour(70/255,230/255,12/170) inst.components.talker:Say("The curse has gone We are finally free! Nya~") TheWorld.state.moonphase == "full" then inst.components.combat:SetAttackPeriod (0.8) inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 4 inst.components.talker:Say("I can feel the curse of moon. The moon binds us! Nya~") end or something like this local function MoonsCurse(inst) if TheWorld.state.isnight then TheWorld.state.moonphase == "new" then inst.components.combat:SetAttackPeriod(0.4) inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 10 inst.Light:Enable(true) inst.Light:SetRadius(18) inst.Light:SetFalloff(0.75) inst.Light:SetIntensity(.7) inst.Light:SetColour(70/255,230/255,12/170) inst.components.talker:Say("The curse has gone We are finally free! Nya~") inst.components.locomotor.walkspeed = 4.6 inst.components.locomotor.runspeed = 7 inst.components.combat:SetAttackPeriod (0.6) TheWorld.state.moonphase == "full" then inst.components.combat:SetAttackPeriod (0.8) inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 4 inst.components.talker:Say("I can feel the curse of moon. The moon binds us! Nya~") else inst.components.locomotor.walkspeed = 4.6 inst.components.locomotor.runspeed = 7 inst.components.combat:SetAttackPeriod (0.6) end
  12. well im using this code for night vision but i want it just for new moon but it gives night vision every night i don't know what to do local function MoonsCurse(inst) if TheWorld.state.isnight then if TheWorld.state.moonphase == "new" then inst.components.combat:SetAttackPeriod(0.4) inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 10 inst.Light:Enable(true) inst.Light:SetRadius(18) inst.Light:SetFalloff(0.75) inst.Light:SetIntensity(.7) inst.Light:SetColour(70/255,230/255,12/170) inst.components.talker:Say("The curse has gone We are finally free! Nya~") end if TheWorld.state.moonphase == "full" then inst.components.combat:SetAttackPeriod (0.8) inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 4 inst.components.talker:Say("I can feel the curse of moon. The moon binds us! Nya~") end end if TheWorld.state.isdusk then if TheWorld.state.moonphase == "new" then inst.components.combat:SetAttackPeriod (0.4) inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 10 inst.components.talker:Say("I can't feel the moon. Finally i can be free. Nya~") end if TheWorld.state.moonphase == "full" then inst.components.combat:SetAttackPeriod (0.8) inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 4 inst.components.talker:Say("Oh! I can feel the moon. This night will be cursed. Nya~") end end if TheWorld.state.isday then inst.components.locomotor.walkspeed = 4.6 inst.components.locomotor.runspeed = 7 inst.components.combat:SetAttackPeriod (0.6) end end
  13. well you just need to replace this and it should be working. If you need more help just let me know speech_eonthespellsword.lua
  14. yes it still looks like that