Fidooop Posted April 29, 2014 Share Posted April 29, 2014 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 https://forums.kleientertainment.com/forums/topic/35625-need-someone-to-help-me-learn-world-generation-code/ Share on other sites More sharing options...
_Q_ Posted April 29, 2014 Share Posted April 29, 2014 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 https://forums.kleientertainment.com/forums/topic/35625-need-someone-to-help-me-learn-world-generation-code/#findComment-464763 Share on other sites More sharing options...
Fidooop Posted April 29, 2014 Author Share Posted April 29, 2014 Here:http://forums.kleientertainment.com/files/file/203-api-examples/download and look at modworldgenmainto 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 https://forums.kleientertainment.com/forums/topic/35625-need-someone-to-help-me-learn-world-generation-code/#findComment-464804 Share on other sites More sharing options...
julz1981 Posted May 1, 2014 Share Posted May 1, 2014 Thanks! I'll be able to check it out later today!Is it by any chance, for you jungle mod you were working on? I wish i knew anything about modding, i would gladly help... Link to comment https://forums.kleientertainment.com/forums/topic/35625-need-someone-to-help-me-learn-world-generation-code/#findComment-467237 Share on other sites More sharing options...
Fidooop Posted May 1, 2014 Author Share Posted May 1, 2014 Yup this is for my jungle biome! The biome is going to be a separated island so that the mobs don't end up being ***** slapped by beefalos or pigmen or tallbirds Link to comment https://forums.kleientertainment.com/forums/topic/35625-need-someone-to-help-me-learn-world-generation-code/#findComment-467715 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now