Map editor question

Having trouble getting the game going or understanding something? Look no further.
Post Reply
Icebird
Posts: 1
Joined: Mon Jun 05, 2006 11:41 pm

Map editor question

Post 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
K776
Warrior
Warrior
Posts: 61
Joined: Sat Nov 26, 2005 10:23 pm
Location: New Zealand
Contact:

Post 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
Post Reply