PDA

View Full Version : child2



Larch
12-04-2017, 07:35 PM
Anyone know if it's possible to insert an if statement or something into child2 to stop it waiting in a room while in cast roundtime? I like that it casts sanct for me when it runs into a critter, I do not like that if there are back-to-back rooms with critters then it has us stand around for 2 seconds rather than just running to the next room immediately.

n0551n3n0m1n3
12-05-2017, 07:41 PM
Ill take a look later, might just need to edit the waitcastrt?

n0551n3n0m1n3
12-06-2017, 10:24 AM
UPDATE:
Not easily altered to skip waiting for cast rt.
Drafix wrote it, so if he is inclined, he might have a solution.
But since it isn't broken, and its only an aesthetic need, I would just learn to live with the delay.

Larch
12-08-2017, 11:13 AM
UPDATE:
Not easily altered to skip waiting for cast rt.
Drafix wrote it, so if he is inclined, he might have a solution.
But since it isn't broken, and its only an aesthetic need, I would just learn to live with the delay.

Thanks for looking into it, but I don't understand the aesthetic comment. Standing in front of a critter waiting for cast roundtime, instead of running to the next room, results in child deaths.

n0551n3n0m1n3
12-08-2017, 04:23 PM
I appoligize, i misunderstood. Let me take another look. It may have to wait for cast rt in the first room, before moving to the second room and casting again if critter present.

n0551n3n0m1n3
12-09-2017, 04:04 PM
before and after running step2 you see the line that has the waitrt?

add a waitcastrt? line below waitrt? line before running step2


if Room.current.id != place
thatroom = Room.current.id
waitrt?
waitcastrt?
start_script 'step2', ["#{place}"]
wait_while{running?('step2')}

This will cause the script to wait for the casting rt before running step2 and moving to the next room.
Which should mean that upon entering the second room in a row with critters, you will not be in cast rt and therefore able to cast the sanctuary spell again.

Larch
12-23-2017, 12:34 PM
B-e-a-utiful. Thanks much!

Fallen
12-23-2017, 01:55 PM
I need to make a note to add this, thanks.