Results 1 to 8 of 8

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

  7. #7

    Default

    B-e-a-utiful. Thanks much!

  8. #8
    Join Date
    Dec 2003
    Location
    MD
    Posts
    25,198
    Blog Entries
    20

    Default

    I need to make a note to add this, thanks.
    Vote for Gemstone Once a Day at The Mud Connection & Top Mud Sites

Similar Threads

  1. Mapper/Go2/Child2 - Child Rescue Fixes
    By Haldrik in forum The Lich Project
    Replies: 18
    Last Post: 04-07-2016, 03:29 AM
  2. minor ;child2 issue
    By Astru in forum The Lich Project
    Replies: 3
    Last Post: 01-25-2015, 06:17 PM
  3. Error child2
    By Tiger2eyes in forum The Lich Project
    Replies: 2
    Last Post: 12-06-2014, 03:41 PM

Posting Permissions

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