Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Script discussion : Hospital Treatment

So if you were able to read my mod idea I have a script I wanted to try. But scripting is not my best suit.

The script would be to bring a patient to the hospital and then be put into a bed. That would be the only way they would get to full health. Then they are "released".

Any suggestions on how I should approach this?

Featured Replies

What was tried was duplicating the script, then editing the parts within the script (command names, VOs etc.). Then placing these in the editor, but that didn't work.

Yeah as Random said I tried duplicating the script, editing all the names in it then placing the new Virtual objects etc in the editor like the original hospital. The game crashed as soon as it reached the entrance of the second hospital (Forgot what the log said, sorry). In addition to that, I couldn't have both 'to hospital' commands on the same vehicle as one would always remove the other.

 

@Itchboy - It was actually because the two hospitals that me and Random planned had different 'roles'. One was a generic A&E Hospital while the other could conduct trauma based care, so we wanted the player to be able to choose which hospital to send the patient to depending on how they were injured.

@Itchboy - It was actually because the two hospitals that me and Random planned had different 'roles'. One was a generic A&E Hospital while the other could conduct trauma based care, so we wanted the player to be able to choose which hospital to send the patient to depending on how they were injured.

Its theoretically possible to "class" the hospitals. The script would check if the person has an injury type of "energy" such as one used in car accidents and falls. Then the script would order the ambulance to go the special hospital, otherwise, if the person has regular injury type, then the hospital goes to the normal hospital.

 

Quite do-able if you understand how to assign the Vectors and ActorLists via script within the conditions.

1XmIIqz.png

Rare handwritten pic by itchboy. Its basically a rough outline of what I'd do to get it to work.

Edited by itchboy

  • 3 weeks later...

@Itchboy - It was actually because the two hospitals that me and Random planned had different 'roles'. One was a generic A&E Hospital while the other could conduct trauma based care, so we wanted the player to be able to choose which hospital to send the patient to depending on how they were injured.

 

Another thing you might want to play with instead of using a person's energy level to determine which hospital they need to go to, you could also use a Person's InjuryReason attribute. If their InjuryReason == INJUREREASON_SHOT they have to go to the trauma center, otherwise they can go to the basic ER. 

 

Another thing to make it interesting is utilizing the Person's Energy level on top of their InjuryReason. For example, if they have an INJUREREASON_SHOT but their energy level is < 10, then they can go to the basic ER. This is realistic since patients who are incredibly unstable and can't make it to the nearest trauma center can be diverted to a less equipped ER to stabilize the patient.

Sounds like a good idea actually.

Not sure about the second part. Certainly where I am, It would only be very rare occasions that we'd divert to the nearest instead of going to the MTC, and that would only be if there were airway issues.

Although our MTC is fairly close, and we're quite likely to get HEMS to proper major trauma anyway. They would certainly be conveying to the MTC, but then they can RSI if necessary.

It would be different for areas with larger travel times, no advanced back up etc. I suppose.

Sent from my SM-G901F using Tapatalk

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.