Page 1 of 1

Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 12:55 am
by Blichew
Hello,
first time poster here, I've got LoG since the premiere (bought it on GoG), now I bought the 2nd copy to support you guys even more :) (and to get my hands on this juicy editor).
So, I'm trying to throw a bunch of stuff into my first dungeon (already made some basic scripting like adding custom sounds, counting the number of monsters killed (clone monster with onDie effect to decrease the counter), etc. Now I'd like to make something like this: I'd like to connect a spawner to hidden pressure plate. That spawner is supposed to spawn a scroll with custom text on it. As far as I can see a spawner can only spawn items from the drop-down list but is there a way to somehow "throw" stuff (items basically) at party ?

On the side-note: what is the asset name for a normal dungeon wall ? You know, like someone clicks a button and a room layout slightly changes.

Thanks in advance,
Blichew

Re: Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 4:14 am
by Komag
maybe (just thinkin' in crazy mode) you could make a spell visual effect be replaced by a scroll, so the scroll is flying and hits you and just hits the ground, doing no damage (or maybe a little)

Re: Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 8:21 am
by Blichew
Thanks for your reply - I didn't think about that.
Could you point out (just the big points, without any code) what do I have to do to make it work ?

Like:
- cloneObject on projectile with model blah blah
- something
- etc.

as for my other question: can wall be spawned (or de-spawned and therefore replaced with a floor tile) using a script ?
The idea is to continously exchange wall with floor on (x,y) based on a timer.

Blichew

Re: Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 11:53 am
by Komag
I honestly have no idea how to actually approach doing it, it was just a brainstorm, not even sure if it's possible (hopefully!)

Re: Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 11:59 am
by Neikun
Petri was talking about having spawners supporting all objects (not just spells and monsters)
But That wouldn't send it flying. D:
Hm.

Re: Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 12:02 pm
by Crisim
can wall be spawned (or de-spawned and therefore replaced with a floor tile) using a script?
i think you can place some secret doors (with pillars) and set their state to get rid of the open-close animation...

hope this help

Crisim

Re: Spawner + scroll with text (sending it flying)

Posted: Thu Sep 27, 2012 12:25 pm
by Blichew
Komag wrote:I honestly have no idea how to actually approach doing it, it was just a brainstorm, not even sure if it's possible (hopefully!)
I'll give it a try when I get home, for now I'm happy for my latest accomplish which is round room with trapdoors going clockwise every second, the player has to run one circle to open the gate at the end (because of the button). Every tick (timer w. 1 sec interval) there are 3 trapdoors closed while others are open:

Code: Select all

C - trapDoor - closed
O - trapDoor - opened
G - gate
# - wall
F - floor

Code: Select all

#########
##OOOO#<-button here to open "G"
FGO##OFF 
##OOOO##
#########

1st tick:
#########
##OOOO##
FGO##OFF 
##OCCC##
#########

2nd tick:
#########
##OOOO##
FGO##OFF 
##CCCO##
#########

3rd:
#########
##OOOO##
FGC##OFF 
##CCOO##
#########

and so on...

Will put an actual code later if anyone's interested (it's a bit messy thou).