Goto http://www.stucuk.netGoto http://www.atlanticaonlinewiki.comGoto http://www.game-requirements.com

Querys

From Original War Support Wiki

Jump to: navigation, search

Tutorials -> Querys

Intro

Querys are when Original War asks the player to select an option to take. For example: in mission 1 of the American campaign you are asked whether you want to enter the EON in a window with choices available. That is a query. Querys are done in 2 places. First you need to setup the question in the Text.txt in the maps directory. I.E:

? Q1
Do you want to enter the EON?
- Yes
- No
?

Secondly you need to code into sail to activate the query and get the result.

Case Query('Q1') of
1: begin
// Yes
end;
2: begin
// No
end;
end;

Its advisable to use a case when using a query. Alternatively u can do it like:

if Query('Q1') = 1 then
// Yes
Else
// No
end;
Personal tools
Clanbase