![]() |
Quest repeat - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Quest repeat (/Thread-Quest-repeat) |
Quest repeat - WRWR - 08-13-2012 03:40 AM What is the best way to avoid repeated accept/performance of a quest? i mean a best way for sphere and memory ![]() just tags looks heavy if i have about 1000 quests on shard RE: Quest repeat - Shaklaban - 08-13-2012 04:04 AM i think best option is mysql. RE: Quest repeat - WRWR - 08-13-2012 04:06 AM Ahh, really! Do you have any examples how to organize it? RE: Quest repeat - Anarch Cassius - 08-13-2012 05:11 AM Tags aren't heavy, stop worrying. Yes, a lot of them on everything might not be a good idea but 99% of the time you can't really do any harm. Loops are what you want to be watching out for, not storing bits of data. RE: Quest repeat - WRWR - 08-13-2012 05:30 AM Storing 100 tags on each player become a reason of loooooong saves ![]() RE: Quest repeat - Wap - 08-13-2012 05:31 AM Also, from a TAG you can make a flag variable. Example (in [] text is placed, there you should write correct functions): Code: [DEFNAME QUESTDEFS] So, you can store 32 flags in one tag. RE: Quest repeat - Extreme - 08-13-2012 11:22 AM Or you can store the Number ID of all completed quests in only one tag. And check if the Number ID is in the tag to avoid repeat it. When complete: Code: TAG.COMPLETEDQUESTS .= ",<QUESTNUMBER>" Code: [FUNCTION F_QUESTS_CHECKCOMPLETE] RE: Quest repeat - WRWR - 08-14-2012 05:40 AM Try to find a better way a storing information about active quests, for example 5 active quests is max if player push button "quests" he get a list of active quests. RE: Quest repeat - Anarch Cassius - 08-14-2012 07:13 AM TAG.COMPLETEDQUESTS .= ",<QUESTNUMBER>" Nobody told me you could do that! I need to edit some scripts. That's a really nice handling of this. You have my vote for efficiency. RE: Quest repeat - Extreme - 08-14-2012 08:32 AM (08-14-2012 07:13 AM)Anarch Cassius Wrote: TAG.COMPLETEDQUESTS .= ",<QUESTNUMBER>"Hehehe I always think more about something to get the best way to do something. It's like perfectionism. |