Jaki jest odpowiednik pętli while w pseudokodzie Gothica?
Próbowałem tak, ale Gothic nie wie co to while. Dawno nie zajmowałem się Gothiciem, a wiem, że kiedyś to zrobiłem tylko zapomniałem jak ^.^
while (hero.exp >= hero.exp_next)
{
hero.level = hero.level+1;
hero.exp_next = hero.exp_next + ((hero.level+1)*500);
hero.attribute[ATR_HITPOINTS_MAX] = hero.attribute[ATR_HITPOINTS_MAX] + HP_PER_LEVEL;
hero.attribute[ATR_HITPOINTS] = hero.attribute[ATR_HITPOINTS] + HP_PER_LEVEL;
hero.LP = hero.LP + LP_PER_LEVEL;
PrintScreen (PRINT_LevelUp, -1, YPOS_LevelUp, FONT_Screen, 2);
Snd_Play ("LevelUp");
} do;
Na razie mam to zrobione rekurencyjnie, ale wiedza o pętli też by się przydała, poza tym lepiej to będzie wyglądać.
P.S. Czemu Gothic zmusza mnie do zrobienia paru enterów przed końcem pliku?