Page 3 of 3

Re: Lua scripts

Posted: Sun Sep 23, 2012 2:02 pm
by tantalan
Montis wrote: 1) You need a receptor or a hidden receptor for this. Watch the third video tutorial by Komag on this.

2) You have to actually place additional eye sockets. You would also need to redefine them, based on what you want to insert. I downloaded the asset pack and had a look at the defined object in there:
Thanks thats what i needed!

Re: Lua scripts

Posted: Sun Sep 23, 2012 11:29 pm
by tantalan
Again me :-)
1) Is there a way how to increase damage of fireball from spawner? Or it has to give always the same damage?
2) How do you make a monster that holds for example a key and when it dies it drops the key on floor? I saw it already in some sample dungeons but i dont know how to do it.

Re: Lua scripts

Posted: Mon Sep 24, 2012 1:00 am
by Neikun
You can clone a fireball object and adjust the stats to it however you like.
If you click on the monster you want to have the key, you'll see in the right hand panel, a box labeled: add item.

Re: Lua scripts

Posted: Mon Sep 24, 2012 10:12 pm
by tantalan
Neikun wrote:You can clone a fireball object and adjust the stats to it however you like.
If you click on the monster you want to have the key, you'll see in the right hand panel, a box labeled: add item.
ad 1) It is possible to choose "large_fireball" in editor so thats what i wanted :-)
ad 2) thanks

Another question. Is it possible to teleport fireballs? i mean when i place a teleport and set different direction it doesnt work the fireball flies through without changing direction :-(

Re: Lua scripts

Posted: Mon Sep 24, 2012 11:40 pm
by Neikun
I would think not, but I think you could place an invisible receptor there. Have the receptor trigger another spawner at the other location.

Re: Lua scripts

Posted: Mon Oct 15, 2012 12:48 am
by tantalan
Hi, is there a solution how to make a room where monsters will spawn but with maximum number of five? I tried only this - a room with spawner and i made a counter which counted spawned monsters and when there was a five the counter stopped the spawner. But what to do when i kill a monster? How to handle this to start spawning and counting again? Or do you have another solution? Maybe there could by some code that checks the number of lets say snails and if that number is 5 it stops the spawner. But how to count only snails in that room? What if i have another snails in other rooms in the dungeon and i need to count only those in one room?

Re: Lua scripts

Posted: Mon Oct 15, 2012 2:24 am
by Komag
this can be done. I can't link to it now (on phone) but there is a script from the script repository for searching for monsters in an area, and you could adapt it

Re: Lua scripts

Posted: Wed Oct 17, 2012 9:47 pm
by tantalan
Komag wrote:this can be done. I can't link to it now (on phone) but there is a script from the script repository for searching for monsters in an area, and you could adapt it
OK i ll try to find it.

Re: Lua scripts

Posted: Wed Oct 17, 2012 10:38 pm
by Komag