Jump to content

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!

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}	}) 

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!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...