Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First thread
#85
30 June

It's STILL so hot here! Gah. But anyway...
Last night, fixed the tag* and relation stuff. Then my computer crashed and I cba to carry on. So, tonight, must ajaxify the rest.

* if griff starts with no tag, the tag does change to a new one, but it just doesn't update on page. If griff already has a tag and you choose a new one, page does update. I'm baffled why it's different.

- ended up redoing the companion and treasure sections. Now instead of going to inventory and giving things to griffs there, you can pick them from here. **
This will also mean that ANY item*** can be held by griffs, even if it does have a proper usage function. Yay, this makes more sense than current system. x)

** haven't actually added user's own items etc. Just set up companion table, will work on those tomorrow.
*** except special NPC quest items later, and other items not meant to be transferable between users. Trading griffs holding those items would count, so.

- should do the same with wearable options. Choose backgrounds and each body part's wearable from dropdown lists, instead of faffing around in inventory.

- should add a button to instantly summon griff home. They need to be at the port city in order to be available in arena. But... can breed from anywhere? Should that be changed too? Uhh. This location stuff is awkward.

- need to think about private stud options. You could enter either a single username, or preferably the ID number (via dropdown) of a breeding group you're a member of, and then all members of that group could access your stud. But I haven't set up those groups yet...

- also, must start new companion system soon! Will begin with simple chickens, of course. Smile They will be name-able, trade-able or release-able on their own pages. On griff pages, all you'll do is choose an available one from a list. Critters that are assigned a griff master will be 'busy' and apart from renaming, you can't do stuff with them until free again.

1st July

Found a funny oversight: keep refreshing the page (sending command) after Evening, and it still happens. Then there's no time of day, the servant is speechless, and you can keep going forever. Ah, POST-ing is such a fail sometimes. But it's fixed now, and can't happen again, because...
Updated the progress bars (which my browser couldn't style anyway) to divs - all 3 stats will have to be %, guess it's cleaner this way - and I've already got the JS functions to animate/update them after commands. SO. Time to scrap all the post stuff and send these by AJAX instead, yay.

There's gonna be a loooooong list of command stuff here. Basically the script checks by location, time, and action type. So "IF location is Mountains, time is Dawn, and action is Hunt"... then there'll be a list of possible scenarios. One is randomly chosen, and the griff's skills and personality are checked against it, to determine the outcome.
For example, they might find easy prey and bring it home, or a monster and fight it; a strong-brave griff defeats it, a weak-brave griff gets injured, a wussy griff runs away in fear and ends up very distressed.

Also hastily scribbling a few simple companion bases. Got their palettes ready (48 colours) and some test-critters in DB. Must set up the menagerie to display them... and then plug them into griff and user tables. Each griff can have one companion, a user can have 3 of their own as well. They can have up to 2 spells (that will become available to the griff/user in battle) and give a stat boost of several points. Later when MP stuff is added, critters can increase mages' total pools, or make them recover more MP daily.

Each breed needs a certain kind of environment (field, forest, pond, jungle, rocks, snow, desert etc) and users will have to build more spaces to hold more critters, just like users build more perch spaces for big creatures. Er, in the near future.

edit: WHOOO oh man this was a long, tiring evening. ._. Ended up doing a huge clean-up behind the scenes of manage page.

- Updated griff table. Now they are all the same 'type' (Aquila) but breednames are in new column. This is so that all breeds can share the same type's levelling formula, etc. Else I'd have to manually enter 100 sets of needed-EXP numbers, for every new breed. Naaah. Gonna be lazy and make them all follow same formula.
The 3 fail-breeds later will be in a second type, with lower max levels, higher EXP needed etc.
However, now I'll need to manually update EVERY script in the game that checks for 'type' and replace that with 'breed'. Whew. Do that tomorrow...

- Also created separate 'sex' and 'expression' columns. The latter is now used by the image scripts, and will be checked for skills later.
Basically in most breeds, the 2 sexes have fixed looks; female Rampant is winged and scaled, male is wingless and spiked. But some breeds can be freer; males or females can be winged or wingless, and that 'shape' can be passed down. So you could specifically breed a line of Minoans with wings, regardless of sex.
And in very rare cases, 'fixed' breeds can have exceptions; it's a 1 in 500 chance that you'll get a female Rampant with a male shape, or vice versa. She'll still function as a normal female, just with unusual appearance, and won't be able to fly etc.
This is now possible, yay. But again... a LOT of game scripts check only the old single column, and now I'll need to update them to look for the correct one. Like on the flock page, some Minoans are listed as the wrong sex, as it's still based on old value. >.<

- After lotsa fiddling, managed to get the AJAX commands basically working; JS is used to update the time of day, both visually and for the next time a command is chosen. However the time of day is shifted regardless, upon hearing something back, even if it's an error message or sth. Hnnng. If I could get flippin' arrays working, these could be separate..!
- Companion stuff is haaard. Ugh. SQL hell. Think it's working now though!
Reply


Messages In This Thread
First thread - by GwynMil - 10-16-2017, 11:34 PM
RE: First thread - by Riverspell - 10-17-2017, 03:02 AM
RE: First thread - by GwynMil - 10-18-2017, 01:10 AM
RE: First thread - by GwynMil - 10-19-2017, 04:23 PM
RE: First thread - by GwynMil - 10-19-2017, 05:54 PM
RE: First thread - by GwynMil - 10-19-2017, 08:06 PM
RE: First thread - by GwynMil - 10-22-2017, 12:46 PM
RE: First thread - by GwynMil - 10-23-2017, 03:13 PM
RE: First thread - by Riverspell - 10-24-2017, 07:32 PM
RE: First thread - by GwynMil - 10-24-2017, 08:30 PM
RE: First thread - by Riverspell - 10-25-2017, 05:16 PM
RE: First thread - by GwynMil - 10-25-2017, 05:50 PM
RE: First thread - by Riverspell - 10-25-2017, 06:04 PM
RE: First thread - by GwynMil - 10-26-2017, 04:26 PM
RE: First thread - by GwynMil - 10-31-2017, 09:11 PM
RE: First thread - by GwynMil - 11-03-2017, 10:37 PM
RE: First thread - by Riverspell - 11-04-2017, 01:02 AM
RE: First thread - by GwynMil - 11-04-2017, 11:19 PM
RE: First thread - by Riverspell - 11-05-2017, 02:06 AM
RE: First thread - by Riverspell - 11-05-2017, 02:13 AM
RE: First thread - by Riverspell - 11-05-2017, 02:25 AM
RE: First thread - by GwynMil - 11-05-2017, 01:39 PM
RE: First thread - by GwynMil - 11-05-2017, 04:25 PM
RE: First thread - by GwynMil - 11-13-2017, 02:29 PM
RE: First thread - by GwynMil - 11-13-2017, 02:50 PM
RE: First thread - by Riverspell - 11-15-2017, 12:23 AM
RE: First thread - by GwynMil - 11-15-2017, 04:16 PM
RE: First thread - by GwynMil - 11-16-2017, 05:23 PM
RE: First thread - by GwynMil - 11-20-2017, 06:51 PM
RE: First thread - by GwynMil - 11-22-2017, 01:49 AM
RE: First thread - by GwynMil - 11-28-2017, 10:14 PM
RE: First thread - by GwynMil - 12-01-2017, 09:19 PM
RE: First thread - by GwynMil - 12-02-2017, 10:11 PM
RE: First thread - by GwynMil - 12-03-2017, 02:06 AM
RE: First thread - by GwynMil - 12-04-2017, 12:53 AM
RE: First thread - by Riverspell - 12-04-2017, 05:00 AM
RE: First thread - by GwynMil - 12-04-2017, 03:49 PM
RE: First thread - by Riverspell - 12-06-2017, 03:03 AM
RE: First thread - by GwynMil - 12-06-2017, 11:31 PM
RE: First thread - by GwynMil - 12-12-2017, 05:37 PM
RE: First thread - by GwynMil - 12-17-2017, 05:01 PM
RE: First thread - by GwynMil - 12-24-2017, 06:27 PM
RE: First thread - by GwynMil - 01-09-2018, 05:19 PM
RE: First thread - by GwynMil - 01-15-2018, 06:30 PM
RE: First thread - by GwynMil - 01-22-2018, 08:19 PM
RE: First thread - by GwynMil - 01-28-2018, 05:32 PM
RE: First thread - by GwynMil - 02-12-2018, 03:55 AM
RE: First thread - by GwynMil - 02-17-2018, 02:11 AM
RE: First thread - by GwynMil - 02-22-2018, 11:45 PM
RE: First thread - by GwynMil - 02-28-2018, 03:19 PM
RE: First thread - by GwynMil - 03-01-2018, 04:04 PM
RE: First thread - by GwynMil - 03-04-2018, 04:14 PM
RE: First thread - by GwynMil - 03-07-2018, 04:53 PM
RE: First thread - by GwynMil - 03-11-2018, 05:36 PM
RE: First thread - by GwynMil - 03-18-2018, 05:11 PM
RE: First thread - by GwynMil - 03-24-2018, 04:37 PM
RE: First thread - by GwynMil - 03-25-2018, 12:19 AM
RE: First thread - by GwynMil - 04-09-2018, 02:54 PM
RE: First thread - by GwynMil - 04-17-2018, 10:31 PM
RE: First thread - by GwynMil - 04-17-2018, 10:31 PM
RE: First thread - by GwynMil - 04-17-2018, 10:31 PM
RE: First thread - by GwynMil - 04-22-2018, 02:19 PM
RE: First thread - by GwynMil - 05-03-2018, 07:09 PM
RE: First thread - by GwynMil - 05-06-2018, 01:50 AM
RE: First thread - by GwynMil - 05-12-2018, 12:30 AM
RE: First thread - by GwynMil - 05-17-2018, 03:08 PM
RE: First thread - by GwynMil - 05-20-2018, 02:24 PM
RE: First thread - by GwynMil - 05-21-2018, 07:16 PM
RE: First thread - by GwynMil - 05-22-2018, 07:07 PM
RE: First thread - by GwynMil - 05-26-2018, 04:38 PM
RE: First thread - by GwynMil - 05-28-2018, 06:59 PM
RE: First thread - by GwynMil - 05-30-2018, 04:27 PM
RE: First thread - by GwynMil - 06-03-2018, 11:27 PM
RE: First thread - by GwynMil - 06-10-2018, 07:51 PM
RE: First thread - by GwynMil - 06-13-2018, 11:57 PM
RE: First thread - by GwynMil - 06-16-2018, 03:45 PM
RE: First thread - by GwynMil - 06-17-2018, 10:51 PM
RE: First thread - by GwynMil - 06-18-2018, 02:06 PM
RE: First thread - by GwynMil - 06-19-2018, 02:35 PM
RE: First thread - by GwynMil - 06-23-2018, 04:14 PM
RE: First thread - by GwynMil - 06-23-2018, 04:14 PM
RE: First thread - by GwynMil - 06-24-2018, 05:51 PM
RE: First thread - by GwynMil - 06-25-2018, 03:26 PM
RE: First thread - by GwynMil - 06-28-2018, 04:58 PM
RE: First thread - by GwynMil - 06-30-2018, 07:37 PM
RE: First thread - by GwynMil - 07-02-2018, 05:17 PM
RE: First thread - by GwynMil - 07-06-2018, 02:07 AM
RE: First thread - by GwynMil - 07-08-2018, 05:27 PM
RE: First thread - by GwynMil - 07-11-2018, 12:47 AM
RE: First thread - by GwynMil - 07-14-2018, 08:07 PM
RE: First thread - by GwynMil - 07-15-2018, 04:18 PM
RE: Dev thread - by GwynMil - 07-20-2018, 01:54 AM
RE: First thread - by GwynMil - 07-24-2018, 06:09 PM
RE: First thread - by GwynMil - 07-29-2018, 11:30 PM
RE: First thread - by GwynMil - 07-31-2018, 06:32 PM
RE: First thread - by GwynMil - 08-02-2018, 05:31 PM
RE: First thread - by GwynMil - 08-08-2018, 02:35 PM
RE: First thread - by GwynMil - 08-12-2018, 06:05 PM
RE: First thread - by GwynMil - 08-14-2018, 02:31 PM
RE: First thread - by GwynMil - 08-17-2018, 06:09 PM
RE: First thread - by GwynMil - 08-20-2018, 04:47 PM
RE: First thread - by GwynMil - 08-22-2018, 03:03 PM
RE: First thread - by GwynMil - 08-26-2018, 08:14 PM
RE: First thread - by GwynMil - 09-08-2018, 12:57 AM
RE: First thread - by GwynMil - 09-10-2018, 04:48 PM
RE: First thread - by GwynMil - 09-15-2018, 04:44 PM
RE: First thread - by GwynMil - 09-23-2018, 07:20 PM
RE: First thread - by GwynMil - 09-27-2018, 11:05 PM
RE: First thread - by GwynMil - 10-03-2018, 03:21 PM
RE: First thread - by GwynMil - 10-11-2018, 05:06 PM
RE: First thread - by GwynMil - 10-11-2018, 05:06 PM
RE: First thread - by GwynMil - 10-16-2018, 08:11 PM
RE: First thread - by GwynMil - 10-19-2018, 05:03 PM
RE: First thread - by GwynMil - 10-23-2018, 04:08 PM
RE: First thread - by GwynMil - 10-28-2018, 04:41 PM
RE: First thread - by GwynMil - 10-31-2018, 07:33 PM
RE: First thread - by GwynMil - 11-06-2018, 11:48 PM
RE: First thread - by GwynMil - 11-13-2018, 07:53 PM
RE: First thread - by GwynMil - 11-18-2018, 04:54 PM
RE: First thread - by GwynMil - 11-23-2018, 03:35 PM
RE: First thread - by GwynMil - 11-27-2018, 08:51 PM
RE: First thread - by GwynMil - 12-01-2018, 10:54 PM
RE: First thread - by GwynMil - 12-13-2018, 04:33 PM