Page 1 of 1

Map editor question

Posted: Mon Jun 05, 2006 11:57 pm
by Icebird
I found Glob2 on my new Linux laptop, and love it. Great job so far!
I've taken it upon myself to create (at least the start of) a new campaign for the game. However, I've run into a problem with the map creator. According to my knowledge, the following should be working:

wait(Pool(1,1) < 1)
win(0)

Player 1 has a finished level 1 pool when the scenario begins, as well as a few workers and an inn.

However, when I run the map, player 0 wins instantly. What am I doing wrong here? I've done testing, and it works with any building except the pool. I've also tried different construction levels of pools, but no good. I'm an admitedly amature programmer, but it looks like a problem with the Pool variable in the scripting language. I just wanted to check here, to see if I'm doing something stupid before I post it as a bug. Thanks.
-Peter

Posted: Tue Jun 06, 2006 10:39 pm
by K776
If im right, level 1 is

Code: Select all

wait(Pool(0,0) < 1)
win(0) 
level 2 is

Code: Select all

wait(Pool(1,1) < 1)
win(0) 
and level 3 is

Code: Select all

wait(Pool(2,2) < 1)
win(0) 
Since you have a level pool, antraully level two pools are below 1 and thus triggeres the win. Try using

Code: Select all

wait(Pool(0,0) < 1)
win(0) 
and see how that goes