OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kuro on 12 Nov 2003, 09:15:42
-
Hallo,
i just wonder if i can make my script more readable:
Normally i make
? a>b : goto "Jump1"
Hint"Here i am"
~3
Hint"C you"
#Jump1
Hint "Hallo"
~5
Hint"Bye"
Do someone know if i can write i like a normal programming language (for example):
if {a>B} then
{Hint "Hallo"
~5
Hint"Bye"}
else
{Hint"Here i am"
~3
Hint"C you"}
or even better
if {a>B} then {Hint "Hallo"; ~5; Hint"Bye"}
else {Hint"Here i am"; ~3; Hint"C you"}
Any ideas are appreciated
Greetings
Kuro
-
From v1.82+ you can use:
if (a>B) then {Hint "Hallo" ; Hint"Bye"} else {Hint"Here i am" ; Hint"C you"}
But only on one line and you cant use ~ to pause AFAIK, I guess it treats the code between the {} as a function.