Hello There, Guest! Register

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

Working on shops. New buy script now working, after lots of SQL headaches. Still learning...
Money isn't taken away yet, for test reasons. Though it is checked, so you'll get a warning about not being able to afford stuff. Just buy 1 or a few at a time and see the number appear/increase in your inventory.

Annoyingly, returning a json-encoded array doesn't work - this would make it possible to instantly visually update multiple things at once, like user's money counter and the number of items the box says they have in inventory. No idea what's wrong... it just doesn't work! Argh.
Thankfully it's not a maaajor problem here.
Gah, I seriously hope I can get those arrays working somewhere though! Else the new battle system won't be possible D:

Did some planning for that. Now should be able to design a much more complex system, with equipped items having weights that affect evasion, etc. Looking at Lufia and other RPG series for inspiration.

It would be possible to use items from inventory, but for some reason I dislike that idea. Feels too easy?
The mage and their griffs are far away somewhere, they should only be able to use what they brought with them. Either each griff has a few more 'holdable' slots, or the mage is able to carry stuff on belts, a bag etc.
Will probably go with the latter; you can have chains of up to 12 enchanted stones/vials/blades to throw or use in battle. It would be hard for animals to physically handle such items, and the user's role needs to be distinct from their griffs, anyway.

Now got another small idea: a kind of gallery or exhibition area, where users can publicly show off items they have. I suppose just a clone of the inventory, with some tweaks... might have a go now...

11 June

Well, that was easy! Users' showcases can be viewed by others, and you have a page (myshowcase) where you can move things back to inventory.
Just need to...
- remove them from showcase again, whoops (right now they get added back to inv, but not subtracted here, meaning endless duplication, heh)
- add the opposite function in the inventory page, to move items to showcase and subtract them from inventory.

Also had ideas for making critters more interesting: remove them as items completely, and treat them as individuals, like mini-griffs.
They can have very simple genetics, like m/f sex, a few colours, battle bonuses (1-10 points, to one stat), 2 spells. Of course they'll be much easier to raise than griffs; maybe one 'young' stage at most, that lasts a few days? Breeding is just chance; if you cross the right species you might get a rarer one. Each critter can be attemptedly-bred once a day, with any other of the opposite sex.
They would need own separate exchanges, but could also be traded to new owners while being a griff's companion. New critters could be found in the wilderness, or attracted to your garden, or you could set some of your griffs in 'critter hunter' role, so they have a chance of finding them daily... ooh!
Shouldn't be too technically hard... I just worry about designing hundreds more little creatures, as if these big ones weren't enough art already. x)
Suppose all my rejected or old creature designs over the years could come in handy.

Also! thought about a new, more detailed crafting system. Basically you choose a griffin (who will be Beginner, Intermediate, Advanced or Master skilled, depending on their Technical points) and then the 3 items.
Each recipe (possible combo) will be in one of those four stages. Your griff can try any of them, but if their skills aren't high enough, it's increasingly unlikely they'll succeed.
Each user will have own recipe book, where they can unlock recipes (make them visible) from talking to NPC, finding pages, etc.
You don't need to have unlocked anything - just select items and try - but if it's not known, it's just very unlikely the griff will make anything.
- if a combo doesn't exist, nothing will happen; materials stay in inventory.
- if a combo does exist but your griff doesn't manage to complete it, the materials will be wasted.
- if combo exists and griff manages it, then check the item's own chance of success. If fail, send a message of acknowledgement like "oh no, everything was going well, but the temperature or tools caused failure..."
- if combo exists, griff manages it and the chance is lucky, then materials are removed and you get shiny new item.
For all crafting attempts, regardless of results, there's a chance griff will gain a skill point. It's more likely if the crafting was successful.
As for limits, without using time... hm. Say each griff can only craft 5 things a day before getting tired or sth. Earlier I thought "what about making a craft session take up one of their time-of-day periods" but that would be super annoying for users, leaving them with no time for other daily commands. And if you reached evening and couldn't craft anything, ugh. So nvm.

Also also! Seriously tempted to make a new, simpler forum... frankly there are heaps of myBB features that aren't needed here at all, and a bunch of features that are needed but kinda impossible to add, due to the separate database being used. >.<
So uh, I'll see how it goes. Will keep this one up, for my dev ramblings at least, heh.
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