Page 293 of 400
Re: Ask a simple question, get a simple answer
Posted: Tue Mar 12, 2019 6:44 pm
by Pompidom
https://youtu.be/aECU6e7GbY4
This is the g1_shield_hook object in action.
I'm looking for wall hook objects that accept more than shields.
Preferably with an item component on them.
Are there any available? (besides MAM)
Re: Ask a simple question, get a simple answer
Posted: Tue Mar 12, 2019 10:54 pm
by Rs11s21n
how i can ask monster to go to x y position?
Re: Ask a simple question, get a simple answer
Posted: Tue Mar 12, 2019 11:04 pm
by Isaac
Rs11s21n wrote: ↑Tue Mar 12, 2019 10:54 pm
how i can ask monster to go to x y position?
Where zarchton_1 is the monster's Id, and x & y are predefined.
The monster will ignore the command, if the brain determines that it cannot reach the location.
_______________________________
Re: Ask a simple question, get a simple answer
Posted: Sun Mar 17, 2019 9:12 pm
by Marskilla
How do I parse the content of a chest / an alcove using lua scripting ?
the containedItems() method doesn't seems to work in log2
Re: Ask a simple question, get a simple answer
Posted: Sun Mar 17, 2019 10:09 pm
by Marskilla
Marskilla wrote: ↑Sun Mar 17, 2019 9:12 pm
How do I parse the content of a chest / an alcove using lua scripting ?(...)
Ok I got it ! For example in an Alcove named "dungeon_alcove_1" :
Code: Select all
for myIndex, myObject in dungeon_alcove_1.surface:contents() do
print("object number :",tostring(myIndex), "- object name :", myObject.go.name )
end
Re: Ask a simple question, get a simple answer
Posted: Mon Mar 18, 2019 1:42 am
by Bartelemeus
Can you copy/paste floor plans (Like you can with entity's) ?
Re: Ask a simple question, get a simple answer
Posted: Mon Mar 18, 2019 2:48 am
by Isaac
No. The walls must be carved out, separate from the placed assets.
But the editor does allow for rotating the layout of the walls, by 90° increments.
Though [strangely] this does not correctly copy the elevations, and might be a feature held over from the early development; before elevations were implemented.
Re: Ask a simple question, get a simple answer
Posted: Mon Mar 18, 2019 4:01 am
by minmay
You can copy and paste the loadLayer call in the dungeon.lua.
Re: Ask a simple question, get a simple answer
Posted: Sat Mar 23, 2019 2:22 am
by vanblam
Does anyone know how to create a custom "builder"?
I mostly used builder = "dungeon" or "mine". But how can you create a custom one? or can you?
Thanks in advance

Re: Ask a simple question, get a simple answer
Posted: Sat Mar 23, 2019 3:50 am
by minmay
You can't.