Hallo zusammen
Folgendes Problem...
Beim Bodycheck soll unter anderem der Schmerzensgrad des Patienten angezeigt werden. Alle anderen Variablen funktionieren. Nur dieser Schmerz nicht. Es stehen lediglich zwei Nullen da.
Ich poste die entsprechenden Code-Teile.
obj_patient1
CREATE EVENT
Spoiler anzeigen
Alles anzeigen
STEP EVENT
Spoiler anzeigen
Alles anzeigen
obj_behandlung_bodycheck
DRAW EVENT
Spoiler anzeigen
FEHLER-SCREENSHOT
Ich danke für eure Hilfe!
Folgendes Problem...
Beim Bodycheck soll unter anderem der Schmerzensgrad des Patienten angezeigt werden. Alle anderen Variablen funktionieren. Nur dieser Schmerz nicht. Es stehen lediglich zwei Nullen da.
Ich poste die entsprechenden Code-Teile.
obj_patient1
CREATE EVENT
GML-Quellcode
- global.bewusstsein = 3; //0: bewusstlos, 1: somnolent, 2: verwirrt, 3: klar
- global.bewusstsein_text = 0;
- global.atmung = 3 //0: apnoe, 1: bradypnoe, 2: tachypnoe, 3: normal
- global.atmung_text = 0;
- global.atemwege = 1 //0: verlegt, 1: frei
- global.atemwege_text = 0;
- global.kreislauf = 1; //0: instabil, 1: stabil
- global.kreislauf_text = 0;
- global.wunden = 2; //0: grosse wunde/blutung, 1: kleine wunde 2: keine wunde
- global.wunden_text = 0;
- global.schmerzen = 2; //0: starke schmerzen, 1: mittelstarke schmerzen, 2: leichte schmerzen, 3: keine schmerzen
- global.schmerzen_text = 0
STEP EVENT
GML-Quellcode
- //ANAMNESE
- global.anamnese = "Aua! Ich bin von der Leiter gestürzt. Nun schmerzt mein Rücken so sehr.#Keine Allergien. Keine Medikamente. Keine Vorerkrankungen";
- //BEWUSSTSEIN
- if (global.bewusstsein == 3) {
- global.bewusstsein_text = "Bewusstseinsklar. "
- }
- if (global.bewusstsein == 2) {
- global.bewusstsein_text = "Patient somnolent. ";
- }
- if (global.bewusstsein == 1) {
- global.bewusstsein_text = "Patient verwirrt. ";
- }
- if (global.bewusstsein == 0) {
- global.bewusstsein_text = "Patient bewusstlos. ";
- }
- //ATMUNG
- if (global.atmung == 3) {
- global.atmung_text = "Atmung normal. ";
- }
- if (global.atmung == 2) {
- global.atmung_text = "Tachypnoe. ";
- }
- if (global.atmung == 1) {
- global.atmung_text = "Bradypnoe. ";
- }
- if (global.atmung == 0) {
- global.atmung_text = "Apnoe. ";
- }
- //ATEMWEGE
- if (global.atemwege == 1) {
- global.atemwege_text = "Atemwege frei. ";
- }
- if (global.atemwege == 0) {
- global.atemwege_text = "Atemwege verlegt. ";
- }
- //KREISLAUF
- if (global.kreislauf == 1) {
- global.kreislauf_text = "Kreislauf stabil. ";
- }
- if (global.kreislauf == 0) {
- global.kreislauf_text = "Kreislauf instabil. ";
- //WUNDEN
- if (global.wunden == 0) {
- global.wunden_text = "Grosse Wunde / Blutung. ";
- }
- if (global.wunden == 1) {
- global.wunden_text = "Kleine Wunde. ";
- }
- if (global.wunden == 2) {
- global.wunden_text = "Keine Wunde. ";
- }
- //SCHMERZEN
- if (global.schmerzen == 0) {
- global.schmerzen_text = "Starke Schmerzen. ";
- }
- if (global.schmerzen == 1) {
- global.schmerzen_text = "Mittelstarke Schmerzen. ";
- }
- if (global.schmerzen == 2) {
- global.schmerzen_text = "Leichte Schmerzen. ";
- }
- if (global.schmerzen == 3) {
- global.schmerzen_text = "Keine Schmerzen. ";
- }
- }
obj_behandlung_bodycheck
DRAW EVENT
GML-Quellcode
- if (bodycheckanzeigen == 1) {
- draw_set_font(fnt_bodycheck);
- draw_set_color(c_yellow);
- draw_text(view_xview[0]+0,view_yview[0]+0,string(global.bewusstsein_text) + string(global.atmung_text) + string(global.atemwege_text) + string(global.kreislauf_text) + string(global.wunden_text) + string(global.schmerzen_text));
- }
FEHLER-SCREENSHOT
Ich danke für eure Hilfe!
