BoxyPop

  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

1 Neutral

About BoxyPop

  • Rank
    Junior Member
...

Recent Profile Visitors

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

Enable
  1. It works wonderfully, thank you very much! <3
  2. So... I making a character who can eat cutgrass. I have made different attempts but I have not come to anything yet, any help would be very helpful. I am quite a novice using the code. Thank you very much! Thanks
  3. Hello! I'm very sorry for the inconvenience. I am creating a character for DST. I want to make the character unable to eat meat, something like Wormwood. I'm quite a novice so I don't know how to look at the code of characters that are already part of the game. Any help would greatly appreciate it.
  4. local assets = { Asset("ANIM", "anim/cactuspike.zip"), Asset("ANIM", "anim/swap_cactuspike.zip"), Asset("ATLAS", "images/inventoryimages/cactuspike.xml"), Asset("IMAGE", "images/inventoryimages/cactuspike.tex") } local function OnEquip(inst, owner) owner.AnimState:OverrideSymbol("swap_object", "swap_cactuspike", "cactuspike") owner.AnimState:Show("ARM_carry") owner.AnimState:Hide("ARM_normal") end local function OnUnequip(inst, owner) owner.AnimState:Hide("ARM_carry") owner.AnimState:Show("ARM_normal") end local function fn(colour) local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddNetwork() MakeInventoryPhysics(inst) inst.AnimState:SetBank("cactuspike") inst.AnimState:SetBuild("cactuspike") inst.AnimState:PlayAnimation("idle") inst.entity:SetPristine() if not TheWorld.ismastersim then return inst end inst:AddComponent("inventoryitem") inst.components.inventoryitem.imagename = "cactuspike" inst.components.inventoryitem.atlasname = "images/inventoryimages/cactuspike.xml" inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( OnEquip ) inst.components.equippable:SetOnUnequip( OnUnequip ) inst:AddComponent("inspectable") local cactuspike_damage = 65 inst:AddComponent("weapon") inst.components.weapon:SetDamage(cactuspike_damage) inst.components.weapon:SetRange(1) inst:AddComponent("finiteuses") inst.components.finiteuses:SetMaxUses(200) inst.components.finiteuses:SetUses(200) inst.components.finiteuses:SetOnFinished(inst.Remove) return inst end return Prefab("common/inventory/cactuspike", fn, assets)
  5. I am looking for help, my item is invisible when it is equipped Cactuspike_DST.rar