ismakenji

  • Content count

    10
  • Joined

  • Last visited

Community Reputation

4 Neutral

About ismakenji

  • Rank
    Junior Member
  1. Popuko DST

    Version 1.1.2

    25 downloads

    Here she is! Popuko from the new series Pop Bob Team Epic! Are you ready to dance the Eisai Haramasukoi with her? Stats: Health: 175 Sanity: 60 Hunger: 150 Hits harder than the average, because she is popuko and f*** you (deals 25% more damage than Wilson) All her dancing training makes her a bit faster! She loves to hit monsters, so she gains a bit of sanity each time she hits something. Beef or chicken? She starts with some beef and some chicken, thats it. Ah, yes, she also starts with a hammer so she can end your life in 30 minutes from now. She has custom voice lines from the anime! Popuko gains sanity each time a player near her gets hit, they deserved it. 1.1.1 - New Perk! Now Popuko gains sanity each time a player near her gets hit! (The same amount she gains if she hits something) I wanted to explore this for a while, and thanks to klei's forum (specially ShinyMoogle, thanks a lot) Popuko It's better than ever! Future plans: Make Pipimi (maybe?) Any idea to make Popuko better? Tell me! This is my first mod so, I hope you like it! If you like this mod, don't forget to give it a thumbs up! It really helps. And now 帰りなさい! You can download it from Steam Workshop Here: https://steamcommunity.com/sharedfiles/filedetails/?id=1342814716
  2. Oh nice!! Now it's perfect! thanks again <3
  3. OK! DONE IT (it even gives Popuko sanity if she's hit, I'll tune the values so it's not overpowered) THank you so much for having so much patience with me
  4. No, I don't have PvP turned on, that's why I don't know why it's not working, anyhow I think if it targets any player its fine so I'm going to try and use the "and HasTag("player")" and see if it works
  5. Ok! I did it and it works!! every time something is hit on screen she gains sanity! Now I'm going to test it with a friend to tune the radius THANK YOU SO MUCH!! Edit: I tested with a pigman fighting a bunch of spiders and works fine commenting out the parts of the code but with a friend without removing if not self.inst:HasTag("player") then return end and and self.inst.components.combat:IsAlly(ent) it doesnt work (It doesn't crash, my friend gets hit but Popuko doen't gain sanity) Would it work if I exchange "and self.inst.components.combat:IsAlly(ent)" maybe for this one "and HasTag("player")" , would it target any player?
  6. I think so, in popuko.lua i added local prefabs = { inst:AddTag("popu") } is it correct?
  7. Ok, i did put it in modmain.lua and comented out if not self.inst:HasTag("player") then return end and and self.inst.components.combat:IsAlly(ent) but nothing happens, i lured a pigman to fight spiders but it didnt give me any sanity (maybe the radius is small?) Here's my modmain.lua, maybe i'm doing something wrong? modmain.lua
  8. OH! I now understand the code a bit better, many many thanks I have a bit of a problem now I think, so, I changed the target = ____ into 10, to see more or less if the AoE was big enough (but not so big), I tried to copy and use the code in modmain.lua and even though it didn't crash, It didn't seem to be working so I thought "Maybe I have to use it inside popuko.lua, since every other perk is in there" but when I use it in there, I open the game and host, the character select pops up for a second and the game closes, not even a crash report so I don't really know what i'm doing wrong
  9. Thank you so much for the response! I am really bad at coding, but I try my best to write some stuff for my mod I have some questions regarding the code, they may be basic but It's simply because I don't know (Correct me if I'm wrong [and please help me i'm so dumb]) So if I want Popuko to gain sanity each time a player gets hit by a monster I have to use the Combat:GetAttacked line, so in my modmain.lua I have to write: AddComponentPostInit("sociopath", function(self) if not GLOBAL.TheWorld.ismastersim then return end local _oldfunction = self.GetAttacked --Save existing function so you can refer to it function self:GetAttacked(attacker, damage, weapon, stimuli) _oldfunction (self, attacker, damage, weapon, stimuli) if not self.inst:HasTag("popu") then return end local ents = TheSim:FindEntities(x, y, z, range, { "popu" }, excludetags) for i, ent in ipairs(ents) do if ent.components.sanity ~= nil and ent:HasTag("popu") --**or other method of identifying your character, could be a variable. I hear that's good practice since there's a tag limit. and self.inst.components.combat:IsAlly(ent) then -- Optional - identify if your character is an ally to the person who got attacked ent.components.sanity:DoDelta (5) end end end end) Something like this? Thank you again!
  10. Hello everyone! I created a character mod (Popuko in the workshop) and I wanted to add a perk to her, but I really don't know how If it's possible, I want her to gain a bit of sanity each time an ally gets hurt near her thanks in advance!!