• Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Schulliya

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi. I want to change Chester's items to morph into fridge Chester. I don't understand exactly how does AddPrefabPostInit works. I know it can add new things to the prefab, but how can I modify something that's already there? Thanks!
  2. This may be a noob question, but... I want my moditem to accept some stuff as fuel, I know how to add fuel value to a prefab, but how do I give them a fuel type completely new and exclusive to the mod? Thank you in advance!
  3. I'm having a hard time trying to figure out how do I make armor get dropped when a weapon is equipped. I could drop the armor in the OnEquip function of the weapon, but what about when the weapon is already equipped and the player tries to equip an armor? The code is like this, inside myweapon.lua : local function UnequipArmor(inst) local itemEquipado = inst.components.inventoryitem.owner.components.inventory:GetEquippedItem(EQUIPSLOTS.BODY) if inst:HasTag("GunEquipped") and itemEquipado and not itemEquipado:HasTag("backpack") then inst.components.inventoryitem.owner.components.inventory:DropItem(itemEquipado) end end and inside OnEquip, I call this function. Everything is working fine. I just need to know: how do I make the armor drop while the weapon is equipped, not just while equipping the weapon? Thanks in advance!
  4. Hi, I want to make my custom character not to gain armor. I think I can do this adding a component post init, but I'm not sure how...
  5. @HarryPPP It worked! Thank you so much! BTW where can I see all the stategraphs? I don't want to use dolongaction And I'd like to perform the stategraph animation after my Action, is it possible?
  6. Hi. I'm having a hard time trying to understand Actions and Component Actions. I want to print "hi" when I right click the ground, but I don't have an idea on what am I doing wrong. (I'm gonna try making a dash later) Here is a fragment of my modmain.lua: local Action = GLOBAL.Action local ACTIONS = GLOBAL.ACTIONS local DASH_ACTION = Action({priority = 4, distance = 20}) DASH_ACTION.str = "Dash" = "DASH_ACTION" DASH_ACTION.fn = function(act) print("hi") return true end AddAction(DASH_ACTION) AddComponentAction("POINT", "dash_component", function(inst, doer, pos, actions, right) if right then table.insert(actions, ACTIONS.DASH_ACTION) end end) And here is my Dash_component file: local Dash_component = Class(function(self, inst) self.inst = inst inst:AddTag("dashing") end) function Dash_component:DoDash() print("hi") return true end return Dash_component When I run the game, I can right click the ground with the label "Dash", but it does nothing. Thanks in advance!
  7. Hello everybody. I'm creating my second Custom Character, using the ESCTemplate as base again. I need help with two things: How do I make a custom ability which the character will roll in a direction when the key is pressed? How do I make a weapon deal increased damage each time it hits? Thanks in advance!!!
  8. I want to make a mod that supports controllers, and I want to know how to address each xbox controller button. For example, if I want to spawn a prefab every time the player presses the button A on the controller, how should I write it? Thanks in advance.
  9. Hi. I'm using the "extended sample character" template. Everything works fine, except for some hats, like the top hat or the football helmet. They make the head disappear. I swear I don't understand why is this happening, all I did was replace the .PNGs from the folder... Please help. Thank you! EDIT: Solved. I forgot to rename the headbase_hat files. te
  10. Hi, I'm following this guide: When I run the script I get this error: attempt to index local 'player' (a nil value) The only things in the mod folder are modinfo.lua and modmain.lua, besides the icon Here's my code inside modmain.lua: function SpawnCreature(player) local x, y, z = player.Transform:GetWorldPosition() local creature = GLOBAL.SpawnPrefab("forest/animals/beefalo") creature.Transform:SetPosition( x, y, z ) end AddSimPostInit(SpawnCreature) Please help! Thank you.
  11. Hi. I'm trying to make my first mod, it is simply an armor that gives a speed and defense boost. But when I compile the "exported" folder, which contains the .scml file and its .png, the game won't show anything when I put the armor on. The speed and defense boost work, but the graphics don't. Please help, and sorry for the bad English.