In TH patients that enter a diag room are vaccinated by the doctor.
Nurses will always leave the rooms they are in and wander the
corridors until all patients have been vaccinated, which I always
found annoying if the treatment that was then required, needed the
nurse in the pharmacy
I don't recall an actual animation for the vaccination, it was more of
as she went past the patient that the icon changed for that patient
If you want anything checking in TH just let me know
On Feb 16, 9:16 pm, William Gatens <
westfor...@gmail.com> wrote:
> Made a little progress including the vaccination in the meander action,
> similar to how the handyman checks for garbage. Ideally i'd like
> to separate it into it's own action. Probably my understanding of the
> queuing system :P.
>
> On Thu, Feb 16, 2012 at 8:58 PM, William Gatens <
westfor...@gmail.com>wrote:
>
>
>
> > Well I had a look and the problem seems to be that if I set the vaccinate
> > action to be the next one (setNextAction({name = "vaccinate"}) and the
> > queue is empty then the nurses don't know what to do next, I can remedy
> > this by doing something like humanoid:queueAction({name="meander", 0})
> > causing the nurse to wander around again, but if I then queue vaccination
> > again she never seems to perform it again.
>
> > Which is the most straight forward way to do the following:
>
> > Do vaccination action
> > Do meander for 5 ticks (or a reasonable amount)
> > Attempt to do the vaccination action again
>
> > After I set the nurse to meander again I actively call setNextAction with
> > vaccinate action again but the queue seems to look like:
>
> > Actions:
> > idle must_happen
> > meander
> > vaccinate must_happen
>
> > But the vaccinate action doesn't seem to be called again, the nurse keeps
> > meandering then idle and so on.
>
> > Any insight will be appreciated probably using something incorrectly or
> > there is an easy way around it.
>
> > Thanks,
>
> > Sadger
>
> > On Thu, Feb 16, 2012 at 12:30 PM, Edvin Linge <
edvin.li...@gmail.com>wrote:
>
> >> Hi!
>
> >> 1) How do you add your action to the action queue? E.g. queueAction,
> >> setNextAction? One way could be to incorporate vaccinate calls in the calls
> >> dispatcher and possibly add priorities to calls. Do Nurses in TH prioritize
> >> vaccination even if there is a queue to the room they’re in.
> >> 2) setNextAction tries to abort all actions, queueAction adds actions to
> >> the end of the current queue. The function isIdle checks if a staff member
> >> is free for other duties.
> >> 3) One thing you can do, depending on which exact behaviour you want, is
> >> to add an idle action with a specified duration.
>
> >> /Edvin
>
> >> *From:* William Gatens <
westfor...@gmail.com>
> >> *Sent:* Wednesday, February 15, 2012 11:05 PM
> >> *To:*
corsix...@googlegroups.com
> >> *Subject:* Queuing vaccination action
>
> >> Hello!
>
> >> Hopefully I can find the words to explain my problem... here goes.
>
> >> I am working on epidemics and have created an action called vaccinate, at
> >> the moment it just prints the distance between the nurse and any infected
> >> patient,
> >> however sometimes after the method is called especially if I enable the
> >> must_happen flag, the action queue ( on click ) says the nurse is doing the
> >> action but she is just walking on the spot or repeating and action like
> >> opening and closing the cupboard door in the pharmacy.
>
> >> My questions:
>
> >> 1) Any explanation of why is behavior is happening? I assume it's
> >> something to do with the queuing of actions, if a nurse does not have a
> >> "vaccinate" action in her queue I add it, this is on every tick (possible
> >> issue)
> >> 2) Is there a way to ensure I do not interrupt the nurses treating
> >> patients when setting an action.
> >> 3) Unrelated but is there a standard way to wait a few seconds before
> >> performing another action, specifically I want to set the mood icon to
> >> something *pause 2 seconds* set it to something else, my attempts have
> >> crashed the game so far.
>
> >> My files:
>
> >> Vaccinate action:
http://pastebin.com/0BaMbkJP
> >> Epidemic class:
http://pastebin.com/Lgr21sPg
>
> >> Thanks,
>
> >> William (sadger) Gatens- Hide quoted text -
>
> - Show quoted text -