Jump to content

Need someone to help me learn world generation code


Recommended Posts

I am trying to add a new task with a bunch of rooms inside (new biome) but I am having some troubles with it...

 

some help to learn how to worldgen code would be much appreciated! (you can add me on steam to make chatting easier) http://steamcommunity.com/id/Fidooop/

 

basically I want the task and it's rooms to be separated from the main world, like an island!

Link to comment
Share on other sites

I am trying to add a new task with a bunch of rooms inside (new biome) but I am having some troubles with it...

 

some help to learn how to worldgen code would be much appreciated! (you can add me on steam to make chatting easier) http://steamcommunity.com/id/Fidooop/

 

basically I want the task and it's rooms to be separated from the main world, like an island!

Here:

http://forums.kleientertainment.com/files/file/203-api-examples/

download and look at modworldgenmain

 

 

to make some task dissconected from other tasks just use:

entrance_room = "ForceDisconnectedRoom",

So the whole thask should look like this:

AddTask("Island Make a pick", {		locks=LOCKS.NONE,		keys_given={KEYS.PICKAXE,KEYS.AXE,KEYS.GRASS,KEYS.WOOD,KEYS.TIER1},		entrance_room = "ForceDisconnectedRoom",		room_choices={			["Forest"] = 1 + math.random(SIZE_VARIATION), 			["BarePlain"] = 1, 			["Plain"] = 1 + math.random(SIZE_VARIATION), 			["Clearing"] = 1,		}, 		room_bg=GROUND.GRASS,		background_room="BGGrass",		colour={r=0,g=1,b=0,a=1}	}) 
Link to comment
Share on other sites

Here:

http://forums.kleientertainment.com/files/file/203-api-examples/

download and look at modworldgenmain

to make some task dissconected from other tasks just use:

entrance_room = "ForceDisconnectedRoom",
So the whole thask should look like this:
AddTask("Island Make a pick", {		locks=LOCKS.NONE,		keys_given={KEYS.PICKAXE,KEYS.AXE,KEYS.GRASS,KEYS.WOOD,KEYS.TIER1},		entrance_room = "ForceDisconnectedRoom",		room_choices={			["Forest"] = 1 + math.random(SIZE_VARIATION), 			["BarePlain"] = 1, 			["Plain"] = 1 + math.random(SIZE_VARIATION), 			["Clearing"] = 1,		}, 		room_bg=GROUND.GRASS,		background_room="BGGrass",		colour={r=0,g=1,b=0,a=1}	})

Thanks! I'll be able to check it out later today!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...