- Joined
- Mar 31, 2014
- Messages
- 39
- Reaction score
- 6
- First Language
- English
I decided to learn Javascript to make a plug-in for a breeding game. Jeremy Cannady did a wonderful job making a basic breeding plugin when I made a request, but it simply did not do what I was looking for. (http://forums.rpgmakerweb.com/index.php?/topic/51624-monster-breeding-system/#comment-510369) One of the problems is I want to define my own species with unique statistics (And without using actors).
Right now I've grasped the basics of arrays and objects. I figured the first step to making my plug-in should be defining the various races that could be encountered and raised in the game. Each species has eight different stages, including it's infant/egg stage, with different stat values.
I) Is there a better way, than the following, to group the species data:
Right now I've grasped the basics of arrays and objects. I figured the first step to making my plug-in should be defining the various races that could be encountered and raised in the game. Each species has eight different stages, including it's infant/egg stage, with different stat values.
I) Is there a better way, than the following, to group the species data:
Code:
var orc = {
"egg":{
"hatchSteps":50
},
"hatchling":{
"str":5,
"agi":2,
"wil":5,
"int":1,
"wis":2,
"moral":"Evil",
"greed":50,
"canBreed":false,
},
"juvenile": {
"str":9,
"agi":6,
"wil":11,
"int":3,
"wis":8,
"moral":"Evil",
"greed":50,
"canBreed":false,
},
};
