View Single Post
  #1  
Old November 13th, 2007, 04:54 AM

mantari mantari is offline
Private
 
Join Date: May 2007
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
mantari is on a distinguished road
Default Running into some simple ITEM/PAGE bugs. Help?

Problems I've run into:

1] My inventory is empty before going to the planet. Most of the time, 5 items are created in my inventory. But sometimes 4 items are created. What's up with that?

2] What is the order of operation/evaluation for pages? (My experiments tell me that it is PAGE 0, PAGE 2, then PAGE 1. WHY?!!) Pages 1 or 2 will be displayed depending on if the item is generated in page 0. The very strange thing... if the content of pages 1 and 2 are swapped, it'll say that the frog never exists, even when it does! I do not want to always have a NOITEM case if I can avoid it.

Here is my code...

Code:
FLAG event always
KEYS unstablestar2

STAR 0
STRT msq_yellow
STRN Omni0
PLNC grassland
FLAG nearby
END STAR

CONDITION 0
TYPE explore
STR0 0
END CONDITION

CONDITION 1
TYPE haveitem
STR0 lf_lookfrog
END CONDITION

PAGE 0
REQ0 0
ITEM random life
ITEM random life
ITEM random life
ITEM random life
ITEM random life
END PAGE

PAGE 1
REQ0 0
NOVA 0 2 0 msq_yellow civilwar
ACTN endquest
GFXP misc/civilwar.jpg
TITL Global ThermoNuclear War
TEXT NOFROG!
SCOR 200 strategic
END PAGE

PAGE 2
REQ0 0
REQ1 1
NOVA 0 2 0 msq_yellow civilwar
ACTN endquest
GFXP misc/civilwar.jpg
TITL Global ThermoNuclear War
TEXT FROG!
SCOR 200 strategic
END PAGE