Nurse: I completely rework the `Rest` action, so that Nurse would rest (go to the staff area) no matter if there are still patients in the queue.

Goal: Rested; Actions: GoToRest

Patient: Patient will become hungry after 30-40 sec after waiting, they will go to the vending machine and get food and go back to the waiting area.

Goal: isFull; Actions: GoToVending, BackToWaiting

In addition, nurse will not pick up any patients who are currently getting food, she will wait until the patient is back at waiting area to pick them up.

If a patient is not hungry before go back to home, he will not get food from vending machine. (PS home food is much better)

Adding this two behaviors made me change some core functions of the agent and actions. It currently could compare the value of actions (which was not implemented before).

Currently, conditions will be met if states is larger or equal to the precondition, or when precondition is 0, state of the type must also be 0.

This caused several bugs of the previous code, for example in picking up patient, it would pick up multiple patients at a time, so I have to add another pre condition to it.

StatusReleased
PlatformsHTML5
AuthorGloryJacky
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.