2nd August
- Updated breeding script to generate nests and allocate sibling eggs in groups etc. Seems to work so far.
- Thinking of adding another buyable service, the 'nanny', a griff who comes and sits on eggs to heat and turn them etc. They'll hatch regardless, due to warm valley, but she can add an extra point per day and speed it up. Or he... I mean, male griffs can be fluffy and paternal too. x)
... done. At the moment it chooses a random adult griff of mine, but later it should choose a griff currently employed in the incubator-assistant role.
- Abandoning, nest-to-flock transfer and adoption done.
- Looping through stone variables, and outputting more variables with dynamic numbers... hmm...
OK, I've learned a new thing! Variable variables. Making new ones by adding bits of name together. Neat.
3rd August
... sooo I visit a nest and get a broken page. Fabulous. Love it when that happens >.>
Time to start troubleshooting.
- gah, it's the function I was trying to use. Got 6 stones to loop through, and each stone must loop through X number of eggs and maybe do something, depending on random chance and what's in the stone variable.
I thought an outside function, 'maybeStone' would be the best way to handle this. Give it the egg id, stone type, stone number (1-6).
Buuut it just doesn't want to work. :/ Oh well, we're already here in the middle of egg loop, with all the info, might as well do the stuff here then.
..
It's working! Turns out another function wouldn't make any difference; there's always gonna be a ginormous list of "if stone type is X, do THIS stuff" as there'll be many dozens of different stones with unique effects. Guess I'll tuck it away in a separate script and include it there.
..
OK, some test stones are done. Changing body part genes, randomising or removing paint markings. You receive 1 Crystal Dust and the stone slot is reset to 0.
Not gonna create them as items until decided what the names should be.
(it would be possible to create a point system, where they don't exist as items; you buy stones right there. But then they'd be lost if you overwrote them. And more pretty trinkets is always nice! You could give them to griffs as treasure, or use the items in other places too.)
...
Next... set up a panel of dropdowns where you choose the stone for each slot...
4th August
Panel is there, and jQuery updates the name/image of each stone slot you change. I'm undecided how to save the changes; use AJAX to update each stone as user changes the dropdown (could be very wasteful, if they're just previewing), or make them click Confirm button and reload page (less smooth but a bit easier?).
... or wait, use a button and AJAX, to do all 6 at once. Page doesn't need reloading and the names/images are already set. Duh, how'd I forget that?
... okay. Crap. I need to make stones as items, in order to check player's inventory and then apply stones to nest.
But I'm falling down the rabbit hole of gemstone and mineral stuff! Aaaahhh!
Holy shit, the possibilities are amazing. Apparently there are kinds of jasper with peacock/leopard/cheetah/other patterns... so maybe those could be used to influence marking genes later... and, and... aaargh.
I even started musing about a mineral system - you can mine large/small raw chunks and turn each one into certain items, charge them with magic, etc.
Midnight update: OH GOD WHERE DOES THIS RABBIT HOLE END
5th August
Crap crap crap. Mineral world. We're going there.
On the plus side, if I can't find appropriate nest functions for some of them, they can always be used for other stuff. The construction of the mineral breeds, or collected and traded with NPCs, or just given to griffs as treasure.
So, am hastily scribbling a zillion little temporary item images.
- Fullwing charm: sets both flight and covert colours, both dorsal and ventral. So inner may be scarlet, outer may be chocolate...
- Dorvert, Dorflight, Venvert, Venflight (what crappy names) : sets those particular feathers' colour.
- Round cut gem: sets base and additional colour.
- Pear/teardrop gem: sets only the additional colour. It's 'on top of' base colour, visually too (starts from back and reaches belly) so...
A few minerals can have particularly strong colour magic, so they colour the whole body? including beak etc.
This would make Citrine and Gold Beryl sufficiently different. Same with Carnelian, Garnet, Ruby...
Some can set horn colours/materials. A bit of rose gold specifically sets the horns to... Gold/Copper? or whatever that rose-looking combo it.
And some can set markings, like those jaspers.
And, and some can shift personality trait values...
aaaaaagh this is gonna get really complex isn't it
6th August
Heatwave... hot... aaargh... I drew a couple of osprey griffs, at least. Rather pleased with them! ... zzzz, too hot...
- Updated breeding script to generate nests and allocate sibling eggs in groups etc. Seems to work so far.
- Thinking of adding another buyable service, the 'nanny', a griff who comes and sits on eggs to heat and turn them etc. They'll hatch regardless, due to warm valley, but she can add an extra point per day and speed it up. Or he... I mean, male griffs can be fluffy and paternal too. x)
... done. At the moment it chooses a random adult griff of mine, but later it should choose a griff currently employed in the incubator-assistant role.
- Abandoning, nest-to-flock transfer and adoption done.
- Looping through stone variables, and outputting more variables with dynamic numbers... hmm...
OK, I've learned a new thing! Variable variables. Making new ones by adding bits of name together. Neat.
3rd August
... sooo I visit a nest and get a broken page. Fabulous. Love it when that happens >.>
Time to start troubleshooting.
- gah, it's the function I was trying to use. Got 6 stones to loop through, and each stone must loop through X number of eggs and maybe do something, depending on random chance and what's in the stone variable.
I thought an outside function, 'maybeStone' would be the best way to handle this. Give it the egg id, stone type, stone number (1-6).
Buuut it just doesn't want to work. :/ Oh well, we're already here in the middle of egg loop, with all the info, might as well do the stuff here then.
..
It's working! Turns out another function wouldn't make any difference; there's always gonna be a ginormous list of "if stone type is X, do THIS stuff" as there'll be many dozens of different stones with unique effects. Guess I'll tuck it away in a separate script and include it there.
..
OK, some test stones are done. Changing body part genes, randomising or removing paint markings. You receive 1 Crystal Dust and the stone slot is reset to 0.
Not gonna create them as items until decided what the names should be.
(it would be possible to create a point system, where they don't exist as items; you buy stones right there. But then they'd be lost if you overwrote them. And more pretty trinkets is always nice! You could give them to griffs as treasure, or use the items in other places too.)
...
Next... set up a panel of dropdowns where you choose the stone for each slot...
4th August
Panel is there, and jQuery updates the name/image of each stone slot you change. I'm undecided how to save the changes; use AJAX to update each stone as user changes the dropdown (could be very wasteful, if they're just previewing), or make them click Confirm button and reload page (less smooth but a bit easier?).
... or wait, use a button and AJAX, to do all 6 at once. Page doesn't need reloading and the names/images are already set. Duh, how'd I forget that?
... okay. Crap. I need to make stones as items, in order to check player's inventory and then apply stones to nest.
But I'm falling down the rabbit hole of gemstone and mineral stuff! Aaaahhh!
Holy shit, the possibilities are amazing. Apparently there are kinds of jasper with peacock/leopard/cheetah/other patterns... so maybe those could be used to influence marking genes later... and, and... aaargh.
I even started musing about a mineral system - you can mine large/small raw chunks and turn each one into certain items, charge them with magic, etc.
Midnight update: OH GOD WHERE DOES THIS RABBIT HOLE END
5th August
Crap crap crap. Mineral world. We're going there.
On the plus side, if I can't find appropriate nest functions for some of them, they can always be used for other stuff. The construction of the mineral breeds, or collected and traded with NPCs, or just given to griffs as treasure.
So, am hastily scribbling a zillion little temporary item images.
- Fullwing charm: sets both flight and covert colours, both dorsal and ventral. So inner may be scarlet, outer may be chocolate...
- Dorvert, Dorflight, Venvert, Venflight (what crappy names) : sets those particular feathers' colour.
- Round cut gem: sets base and additional colour.
- Pear/teardrop gem: sets only the additional colour. It's 'on top of' base colour, visually too (starts from back and reaches belly) so...
A few minerals can have particularly strong colour magic, so they colour the whole body? including beak etc.
This would make Citrine and Gold Beryl sufficiently different. Same with Carnelian, Garnet, Ruby...
Some can set horn colours/materials. A bit of rose gold specifically sets the horns to... Gold/Copper? or whatever that rose-looking combo it.
And some can set markings, like those jaspers.
And, and some can shift personality trait values...
aaaaaagh this is gonna get really complex isn't it
6th August
Heatwave... hot... aaargh... I drew a couple of osprey griffs, at least. Rather pleased with them! ... zzzz, too hot...

