Search found 736 matches

by Eleven Warrior
Fri Oct 04, 2019 8:17 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

Thank you kindly for the Script mate :)

EDIT: It needs to be a function. A floor_trigger activates the script checks for the item then stuff happens sorry.
by Eleven Warrior
Fri Oct 04, 2019 5:35 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

How do I get this script to check the ID of the item eg: rock_1 not just the UI name rock? -- Check if party is carrying item the door opens -- function dooropen01() if party.party:isCarrying("rock") then dungeon_door_iron_1.door:open() hudPrint("You have the rock to open the door.") else dungeon_do...
by Eleven Warrior
Fri Oct 04, 2019 4:40 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

How do I add a stack of 4 rocks to the Mouse Pointer ty :)

EDIT: Dump sorry.
by Eleven Warrior
Thu Oct 03, 2019 8:57 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

How do I add a walking sound in this Tile below. The floor is wood and i have a sound that sounds like the party is walking on a wood floor but i dont know how to add the code into the tile code ty :) defineTile{ name = "sx_ship_arena", editorIcon = 112, color = {120,120,45,125}, randomFloorFacing =...
by Eleven Warrior
Thu Oct 03, 2019 8:02 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

defineObject { name = "exploding_barrel_block", baseObject = "barrel_crate_block", components = { { class = "Health", health = 30, onDie = function(c) if ( c.property ~= nil ) then --print("BLOCKED") return end c.property = 1; local i, j; for i = -1, 1 do for j = -1, 1 do spawn("fireburst", c.go.le...
by Eleven Warrior
Wed Oct 02, 2019 4:13 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

I know there is a script here that when you destroy a barrel it will spawn random food items can someone help me ty :)
by Eleven Warrior
Sat Sep 28, 2019 8:04 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

How do I get the world position of altar_1 and print its position?

EDIT: Thank you Isaac
by Eleven Warrior
Wed Sep 25, 2019 8:19 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

I cannot easily test this... but you can. function killnpc01a() if md_npc_ratling2_2 then md_npc_ratling2_2:destroy() end end Is it possible that the md_npc_ratling2_2:destroy() function is called twice? It IS the case that a monsters removal after calling destroy() is not instantaneous. It remains...
by Eleven Warrior
Wed Sep 25, 2019 6:18 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

Hi all. This code (below) works when you interact with the npc np but if the player damages the npc this code activates: md_npc_ratling2_2.monster:addConnector("onDamage",self.go.id,"npcdamage01a") --- Not working --- but as soon as the program trys to destroy the npc it crashes it use to work befor...
by Eleven Warrior
Tue Sep 24, 2019 9:11 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3810
Views: 2040216

Re: Ask a simple question, get a simple answer

How do I add the champs name to the hudPrint (below) ty. defineObject{ name = "itm_food_cheese_big", baseObject = "base_item", components = { { class = "Model", model = "mod_assets/models/items/food/cheese_big.fbx", }, { class = "Item", uiName = "Big Cheese", gfxAtlas = "mod_assets/textures/gui/gui_...