Results 1 to 6 of 6

Thread: child2

  1. #1

    Default child2

    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.

  2. #2

    Default

    Ill take a look later, might just need to edit the waitcastrt?
    W3 4R3 4N0NYM0U5.
    W3 4R3 L3610N.
    W3 D0 N07 F0R61V3.
    W3 D0 N07 F0R637.

  3. #3

    Default

    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.
    W3 4R3 4N0NYM0U5.
    W3 4R3 L3610N.
    W3 D0 N07 F0R61V3.
    W3 D0 N07 F0R637.

  4. #4

    Default

    Quote Originally Posted by n0551n3n0m1n3 View Post
    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.

  5. #5

    Default

    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.
    W3 4R3 4N0NYM0U5.
    W3 4R3 L3610N.
    W3 D0 N07 F0R61V3.
    W3 D0 N07 F0R637.

  6. #6

    Default

    before and after running step2 you see the line that has the waitrt?

    add a waitcastrt? line below waitrt? line before running step2
    Code:
    		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.
    Last edited by n0551n3n0m1n3; 12-09-2017 at 05:04 PM.
    W3 4R3 4N0NYM0U5.
    W3 4R3 L3610N.
    W3 D0 N07 F0R61V3.
    W3 D0 N07 F0R637.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •