Eliminar a página wiki 'howto build map' é uma operação irreversível. Quer continuar?
server/config/maps
. The folder should’t contain spaces and should ideally be your map name. For instance: plainsOfRuin
.server/config/maps/{yourMap}/map.json
.Open the map.json
file in Tiled.
In the map file, there are two different layer types: Object layers and Tile layers. Object layers are for placing objects like: mobs, doors and room boundaries. Tile layers’ purpose should be fairly obvious.
Let’s have a quick rundown of what the different layers are for. First the object layers:
Now, the tile layers:
[I’ll write the rest of this section later]
An empty zone file looks like this:
module.exports = {
resources: {
},
objects: {
},
mobs: {
}
};
The different sections are:
The resources section is fairly straight-forward. Here’s an example:
resources: {
Moonbell: {
type: 'herb',
max: 5
}
}
The key (Moonbell) tells the game which type of herb should spawn. Options are:
The max
variable defines how many nodes can be active at the same time.
Besides definitions for specific mobs, any of these values can be defined for mobs in a default
key:
mobs: {
default: {
level: 1,
faction: 'gaekatla',
walkDistance: 1,
spells: [{
type: 'melee',
statMult: 0.1356
}],
regular: {
hpMult: 1,
dmgMult: 1,
drops: {
chance: 35,
rolls: 1
}
},
rare: {
count: 1,
chance: 1,
hpMult: 1,
dmgMult: 1,
drops: {
chance: 100,
rolls: 1,
magicFind: 75
}
},
champion: {
hpMult: 1,
dmgMult: 1,
drops: {
chance: 100,
rolls: 2,
magicFind: 115
}
}
}
}
Over and above that, you can also define a section that’s specific to your mob. As an example, let’s say you’ve got a mob named Brutus
. His section could look like this:
mobs: {
brutus: {
level: 5,
walkDistance: 0
}
}
Note that the name has to be lower case here. If his name was Brutus the Defender
you would use 'brutus the defender'
as his key. From here you can customize Brutus further by allowing him to be a rare mob 20% of the time and giving him 3 chances to drop an item with each roll being a 50/50:
mobs: {
brutus: {
level: 5,
walkDistance: 0,
regular: {
drops: {
rolls: 3,
chance: 50
}
},
rare: {
count: 1,
chance: 20
}
}
}
Remember, drops are defined for regular, rare and champion. Just because we gave Brutus 3 drops, doesn’t mean he’ll drop 3 items if he’s rare, we need to define that separately. Alternatively, we can set it globally for the map too.
Eliminar a página wiki 'howto build map' é uma operação irreversível. Quer continuar?