Page 50 of 400
Re: Ask a simple question, get a simple answer
Posted: Wed Feb 25, 2015 4:36 pm
by sajon
Skuggasveinn wrote:Take the following code and paste it into your tiles lua (or objects or where ever you like)
Code: Select all
defineTile{
name = "dungeon_floor_no_pillars",
editorIcon = 192,
color = {150,150,150,255},
builder = "dungeon",
floor = {
"dungeon_floor_dirt_01", 1,
},
ceiling = {
"dungeon_ceiling", 1,
},
wall = {
"dungeon_wall_01", 35,
"dungeon_wall_02", 35,
"dungeon_wall_drain", 2,
},
ceilingEdgeVariations = true,
ceilingShaft = "dungeon_ceiling_shaft",
}
Its just a clone of the dungeon floor tile but the pillars have been removed, you can use it to paint the floor where you want the pillars gone.
It will show up as dungeon_floor_no_pillars in your asset browser.
Hope that helps.
kind regards.
Skuggasveinn.
Thanks for the reply i will try it out...
I need this to complete my dungeon transitions.
Check it out
viewtopic.php?f=22&t=9576
Re: Ask a simple question, get a simple answer
Posted: Fri Feb 27, 2015 2:14 am
by sajon
sajon wrote:Skuggasveinn wrote:Take the following code and paste it into your tiles lua (or objects or where ever you like)
Code: Select all
defineTile{
name = "dungeon_floor_no_pillars",
editorIcon = 192,
color = {150,150,150,255},
builder = "dungeon",
floor = {
"dungeon_floor_dirt_01", 1,
},
ceiling = {
"dungeon_ceiling", 1,
},
wall = {
"dungeon_wall_01", 35,
"dungeon_wall_02", 35,
"dungeon_wall_drain", 2,
},
ceilingEdgeVariations = true,
ceilingShaft = "dungeon_ceiling_shaft",
}
Its just a clone of the dungeon floor tile but the pillars have been removed, you can use it to paint the floor where you want the pillars gone.
It will show up as dungeon_floor_no_pillars in your asset browser.
Hope that helps.
kind regards.
Skuggasveinn.
Thanks for the reply i will try it out...
I need this to complete my dungeon transitions.
Check it out
viewtopic.php?f=22&t=9576
That worked perfectly!!!
Thnks Skuggasveinn.
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 11:03 am
by Slade
Can i change monster speed somehow? Or any else monster "stats" ?
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 11:09 am
by minmay
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 11:12 am
by Slade
Okey thanks but one more! : Is is possibble to make spells "locked" that you cant use them before you have the scroll or something like that?
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 11:31 am
by minmay
Yes, you can return false from the PartyComponent.onCastSpell hook to prevent a spell from being cast.
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 1:38 pm
by Slade
So how i should make that it will change to "true" when i have the scroll?
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 9:19 pm
by AdrTru
I have problem with party:onAttack hook.
Can somebody how catch onAttack when is make by free hand?
In Log1 this situation wos managed by this party:onAttack hook. In LOG2 I didnt fint way for this hook.
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 9:22 pm
by minmay
Check the contents of the champion's slot used to attack (you are passed the slot as the 4th parameter). If it's empty, it's a bare-handed attack.
Re: Ask a simple question, get a simple answer
Posted: Sat Feb 28, 2015 9:28 pm
by AdrTru
minmay wrote:Check the contents of the champion's slot used to attack (you are passed the slot as the 4th parameter). If it's empty, it's a bare-handed attack.
Thank you, but that isnt my problem. Problem is in game hook onAttack inst called when attack is made by free hand.