Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

How do you code "between"?

5 years ago

Hi!

I'm trying to create random encounters, but I don't know how to code "between"... For example, it doesn't works when I write :

%RAND := 1D100?

IF %RAND > 0 < 51 THEN
BEGIN
%LASTPAGEID := $PAGEID
$DEST := @P10
END

So what is the code to write "between" ?

How do you code "between"?

5 years ago
IF %RAND > 0 AND IF %RAND < 51 THEN

How do you code "between"?

5 years ago

This, except you need to change AND to THEN.

How do you code "between"?

5 years ago

It works, thank you very much!