Page 1 of 1

Swapping closed pits...

Posted: Sat Oct 24, 2009 10:22 pm
by Trantor
I'd like to do an effect that makes the player "jump" across a pit. I achieved this by doing the following: SWAP_GLOBAL_FAST all pits, replacing them with a random flooritem, activating a MOVE_PARTY_FORWARD action twice, then replacing the random flooritem again with pits using SWAP_GLOBAL_FAST. Using this method, the pits always return opened, but I'd like closed pits to remain closed as well. Is there any way to achieve this, to make the closed pits "remember" that they are closed? Can I somehow teleport two tiles ahead? I experimented a bit with TELEPORT_PARTY, but the destination seems to be random.

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 12:32 am
by Gambit37
Sounds messy. Instead, i'd use ACTION_LEVITATE and MOVE_PARTY_FORWARD twice.

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 1:01 am
by Trantor
Cool, I obviously missed that action... *sigh*

On to the next stupid question: How do I stop my party levitating?

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 1:09 am
by Gambit37
The strength of the ACTION_LEVITATE is it's duration. I've found that 1 = 1 tick. I reckon if you set it to 3 or 4 and do a MOVE_PARTY immediately twice, they'll land just fine on the other side :)

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 1:38 am
by Trantor
Hmm, I tried that, no luck - my party keeps on floating and floating, no matter what strength I use...

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 3:00 am
by Gambit37
Sorry, dunno then. It works for me.

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 10:11 am
by Trantor
Nevermind. I was doing something VERY stupid and totally messed up. It works perfectly fine now. :) Thank you Gambit, and sorry for wasting your time with my stupidity.

Re: Swapping closed pits...

Posted: Sun Oct 25, 2009 11:16 am
by Gambit37
Not at all, it's not stupidity -- just lack of knowledge. That's why it's great to have the forum as someone usually has knowledge that the rest of us don't. Knowledge by its self isn't valuable. It must be used (acted on) or shared. :)