Page 340 of 396
Re: Ask a simple question, get a simple answer
Posted: Tue Mar 03, 2020 1:23 am
by Eleven Warrior
Has anyone got a script for water that's about 1 foot deep for dungeon floor, like walking through the sewers the water is up to your knees ty
I know Issaac had a script for this.
Re: Ask a simple question, get a simple answer
Posted: Tue Mar 03, 2020 4:19 pm
by Pompidom
Try zimber's "flood" object. it comes with splashing sounds included when the party or monsters walk through it.
Re: Ask a simple question, get a simple answer
Posted: Fri Mar 06, 2020 1:33 am
by Eleven Warrior
How do I spawn a note into a chest with text on the note?
Re: Ask a simple question, get a simple answer
Posted: Fri Mar 06, 2020 5:20 pm
by bongobeat
try it in the editor, put the chest, put the note, then look the dungeon.lua for the corresponding chest, the command line about the note will be written in the dungeon.lua
For many thing, when I don't know or remember the code, I do it that way then look in the dungeon.lua, everything that simple is always clearly written.
Re: Ask a simple question, get a simple answer
Posted: Sat Mar 07, 2020 2:42 am
by Eleven Warrior
Can someone direct me to grimrock 1 asset pack please ty
Re: Ask a simple question, get a simple answer
Posted: Sat Mar 07, 2020 4:56 am
by Isaac
http://www.grimrock.net/modding_log1/asset-pack/
_________
Code: Select all
function addSurfaceNote(target)
if target and type(target) == 'table' and #target ==2 then
if type(target[1]) == 'string' and type(target[2]) == 'string' then
local note = findEntity(self.go:spawn('note').id)
local obj = findEntity(target[1])
if obj and note then
if note.scrollitem and obj.surface then
note.scrollitem:setScrollText(target[2])
obj.surface:addItem(note.item)
end
end
end
end
end
-- notes
addSurfaceNote{"chest_1", "I\'m in ur chest!"}
addSurfaceNote{"chest_2", "I\'m in ur chest 2!"}
Re: Ask a simple question, get a simple answer
Posted: Sun Mar 08, 2020 1:50 am
by Eleven Warrior
Ty Isaac. Do you still have that dungeon water walk you know the water is 1 foot deep in the dungeon. I really need it bad if you still have it. Do you have a mod out yet I would like to play it
Re: Ask a simple question, get a simple answer
Posted: Sun Mar 08, 2020 10:45 pm
by Modraneth
hi, can someone help me with a script?
i have been trying to make a spawn only spawn when party rest
i have been trying this, but this wont work, so where I'm wrong?
Code: Select all
function enablespawner()
if party:rest() then
spawner_small_fish.spawner:enable()
end
end
just need some teaching on the problem
Re: Ask a simple question, get a simple answer
Posted: Sun Mar 08, 2020 11:16 pm
by Isaac
Modraneth wrote: ↑Sun Mar 08, 2020 10:45 pm
i have been trying this, but this wont work, so where I'm wrong?
It depends upon how you intend to use it.
If you intend to call this function arbitrarily, and check if the party is resting at the time, then replace
party:rest() with
party.party:isResting() and replace
spawner_small_fish.spawner:enable() with
spawner_small_fish.controller:activate()
If you intend just that the fish respawn each time that the party rests, then use this instead:
Code: Select all
party.party:addConnector("onRest", self.go.id, "enableSpawner")
function enableSpawner()
spawner_small_fish.controller:activate()
end
The above script uses the party's—party_component's onRest() hook function to call enableSpawner() each time that the party rests.
*Note: This will allow the player to exploit resting to stock up on as many fish as they wish; not normally a good idea. Be sure to set a reasonably long cooldown in the spawner component.
Re: Ask a simple question, get a simple answer
Posted: Mon Mar 09, 2020 9:22 pm
by Modraneth
ya that was a problem too.
i want to make it possible to get some food, but not overdoing it.. so i would need a stopper or a timer
how many time should be good to no overdoing it and make it functional ?
EDIT: also can someone send me a link to the main campaign editor file ?