Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem









your drones count should be the same as the world size
8 drones = 8 rows (64 cells)
if you have world bigger than the drone amount, just use the set_world_size() func
def generate_maze():
plant(Entities.Bush)
substance = get_world_size() * 2**(num_unlocked(Unlocks.Mazes) - 1)
use_item(Items.Weird_Substance, substance)
def maze():
i = 0
end = 300
while True:
if num_drones() == 25:
if get_entity_type() == Entities.Treasure and (i == end):
harvest()
i = 0
elif get_entity_type() == Entities.Treasure:
substance = get_world_size() * 2**(num_unlocked(Unlocks.Mazes) - 1)
use_item(Items.Weird_Substance, substance)
i += 1
generate_maze()
clear()
set_world_size(5)
list = []
while num_drones() < 26:
pos_x = get_pos_x()
pos_y = get_pos_y()
current = (pos_x, pos_y)
if current not in list:
list.append(current)
spawn_drone(maze)
move(North)
else:
move(East)
Perhaps that's why the codes you used no longer work (300 times goes by very quickly).
During the first 300 times, using the substance works: the treasure is moved elsewhere and the drone's square becomes a hedge again. But from the 301st time onwards, the game no longer increases the amount of gold and no longer moves the treasure despite the use_item call. The drone immediately returns to the beginning of its while True loop, still finds the treasure underneath, and relentlessly executes the same ineffective instruction. I'm not sure if this is the case, but it seems to me to be the most logical explanation.
To verify this, once the 300 mazes have been reached, a harvest() function would need to be added to create a new one.
And thx, I'm glad the scripts helped you!
The code you provided works perfectly, but I don't think it is reusing the maze properly, but please correct me if I'm wrong. According to the in game info about the mazes, once you find the treasure you are supposed to use the same amount of Items.Weird_Substance on the treasure again to reuse the same maze, rather than harvesting it.
I have seen a couple codes using:
while True:
if get_entity_type() == Entities.Treasure:
use_item(Items.Weird_Substance, substance_needed)
Which works, but completely breaks for no apparent reason after a few seconds, give or take after reusing the maze 20-30 times. Just thought I'd share, and again thx for the codes they helped me farm a bunch of stuff really quick
But if you don't have access to that much, you can modify these lines to adapt
if num_drones() == 25:
/
set_world_size(5)
/
while num_drones() < 26:
The minimum you can have is a 3x3 farm for 9 drones, so:
if num_drones() == 9:
/
set_world_size(3)
/
while num_drones() < 10: