Shopping Basket
Your Basket is Empty
Quantity:
Subtotal
Taxes
Delivery
Total
There was an error with PayPalClick here to try again
CelebrateThank you for your business!You should receive an order confirmation from Paypal shortly.Exit Shopping Basket

Blog

January 23 2019

Posted on 23 February, 2019 at 10:15

While learning about the GooglePlay setup featuers in Unity, i found that i need to build a test build to see if my functions are working correctly, well then i was thinking i need a way to utilize the pre written code for using the PlayStore. The got me thinking i need quests to activate the achievements and goals to reach for those achievements to be received. That way i can utilize the PlayStore Points system and leader board system and make people have competition. Wile figuring that out i decided to created the base work for all the dialogue and quest systems. This part of the pack will be clean and easy to use for developers. Next is editors to create quest lists of quests with goals, that can be loaded from resources at runtime, and minimal inspector editing is required.

 

How it works so far:

 

On the Awake Function a dialogue manager and a Quest manager, both populate the list's based on the quest managers List of folder names. This list you edit in the inspector by filling in each string in an array of the names of the folders found in "/Resources/Quests/QuestTypes/" + ({QuestsFolderNamesByQuestType}/ {QuestName}) and within those folders needs to be a folder called Quests, and one called Dialogue. The editor (When creating new quest) will add a new asset file to both folders for each quest. one for the Quest itself, and the other is the dialogue script for that quest.

 

Also in the awake it checks if that list of names has anything containing within it, and if it is empty do nothing at all, otherwise for each string in the list, fill a list to read from later of all the assets in that folder with that string name. Next it Takes those strings and uses them for a Toolbar style button system. Each string creates a category and each category creates a new button on the tab. now we can change what category of quest we want to view easily later. next with the files that were loaded from the folders it takes all the names of all the quests and adds those to a list to read from later. It then creates 4 lists starting out all as default, but by end of Awake function all 4 are different.

Reason is we need to make sure all data is there and remove what isn't needed after.

The 4 lists are ListAsset of Quest lists,

-1 for all quests (Default reference for resetting a quest),

-2 for creating a locked quest list (Completed and locked for w/e reason (Requirement Script), and

-3 a list that changes on runtime (Foe incomplete quests)

-4 a second list that changes on runtime (For Completed Quests))

List 1: Simply just populates all quests in resources,

List 2: Checks is quest is complete or locked based on the PlayerPreff's setting,

List 3: Checks is quests is completes and locked, and gets changed in update function, as quest's get completed. When a quest is completed it is removed from list. first at awake and any time during Update it updates the list of current quests. by A unlocking next quest and B moving completed quest to the 4th list Will do this on awake when checking also.

 

-4 is just a placeholder for the completed quests

if Completed in update and is a repeatable quests, 1st time, activate any Achievements on google play and prizes are given to the player, then remove the reward and add it to players item list, set a bool to true saying that achievement has been set, so next time we come into awake we can change that repeatable quests settings.

 

Quest has:(Gets changed on update and awake)

-A firstMoneyPrize (received when activating a, leave empty if not applicable),

-A Starting Item (quest Can be used to give a player an item to do quest, leave empty if not applicable),

-A RepeatablePrize (if player finished quest a second time), -A MainPrize (For when quest is complete First time) this contains its own prizeMoney variable and is removed and replaced by the RepeatablePrize on mission complete,

-And a Dialogue script for holding the conversations of that quest.

 

There are a number of OnOff bools for various things such as,

 

-is the quest locked,

-is the quest completed,

-is it enabled,

-is it repeatable,

-is it in the que

 

Quest also has:

 

-A QuestGiver script and a QuestComplete Script, these are used for activating and deactivating a quest,

-CatagoryName

-QuestName,

-IndexInListID

-UniqueID,

-Enum for quest type, Used to toggle bool

-Enum for repeatable, Used to toggle bool

-Enum for finished, Used to toggle bool

 

Dialogue is very similar in how it works in the awake and update, accept it grabs the dialoge scripts from the quest. in update the dialogue lists do what ever the quests lists states are instead of setting themselves.

 

It also controls all dialogue box animations and sentences in each dialogue script by first playing the 'OpenTextBox' animation, then start to display the text in the form of a type-writer style text (1 letter at a time based on the speed) once animation is complete. theres a public button function for Starting convo, skipping to next sentance in convo, and a function to end the convo. if Quest Complete remove dialoge script from list.

 

Google play can only be tested on build and i'm not ready to do that just yet, when i do i can test to see if quests are completing and activating Achievements to Google play.

 

still need to add Achievements script, create an achievements list for PlayStore to load, Match the data On the GooglePlay Developers Account to it, build the editor to build, edit, and save the assets, and then make a hand-full of the test quest's for seeing if this part of the pack works as expected. so still some work needs to be done.

 

That's the update for today,

Thamas Bell @ ZeredaGames

Categories: ZeredaGames Main Blogs

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

1115 Comments

Reply supreme hoodie
4:21 on 9 December, 2022 
I have to show appreciation to you just for bailing me out of this particular instance. Right after researching throughout the world wide web and seeing tips which are not helpful, I believed my life was done. Existing devoid of the approaches to the difficulties you have solved as a result of this write-up is a crucial case, as well as ones that could have in a wrong way affected my entire career if I hadn't come across your web page. Your actual competence and kindness in dealing with all the stuff was crucial. I don't know what I would've done if I hadn't come across such a thing like this. It's possible to at this time look ahead to my future. Thanks a lot so much for this skilled and result oriented help. I won't think twice to suggest your web sites to any person who would need care on this issue.
supreme hoodie http://www.supreme-clothings.us.com
Reply goyard outlet
4:20 on 9 December, 2022 
Thanks so much for giving everyone remarkably memorable opportunity to read critical reviews from here. It is always very pleasing plus packed with a good time for me personally and my office peers to search the blog a minimum of 3 times in a week to see the new secrets you will have. Not to mention, I am actually motivated with your sensational information you give. Some 3 tips on this page are really the best we have all had.
goyard outlet http://www.goyardshandbag.com
Reply supreme
21:04 on 8 December, 2022 
My wife and i have been absolutely excited that Chris could conclude his preliminary research from the ideas he got out of your web page. It's not at all simplistic to simply possibly be giving for free facts which most people may have been trying to sell. So we realize we need the website owner to thank for that. All of the explanations you made, the simple web site navigation, the friendships you can help promote - it's got all incredible, and it's really assisting our son and our family imagine that the subject matter is amusing, which is extremely indispensable. Thanks for the whole thing!
supreme http://www.supremeclothing.us.org
Reply golden goose outlet
21:03 on 8 December, 2022 
I precisely desired to say thanks once more. I do not know the things I would have accomplished without the type of ideas provided by you regarding this situation. It absolutely was the difficult scenario for me personally, however , seeing the very expert form you dealt with that forced me to jump with gladness. I'm happier for your information and then sincerely hope you recognize what an amazing job you happen to be providing instructing the others thru your blog. More than likely you haven't met all of us.
golden goose outlet http://www.golden-goose.us
Reply kd shoes
14:58 on 7 December, 2022 
I wish to express thanks to you for rescuing me from such a difficulty. Just after searching throughout the search engines and finding things which are not pleasant, I figured my life was well over. Existing without the presence of strategies to the problems you have fixed by way of this write-up is a serious case, as well as the kind which could have adversely damaged my career if I had not encountered your blog. Your competence and kindness in handling all the pieces was very helpful. I'm not sure what I would have done if I had not encountered such a step like this. I am able to at this moment look ahead to my future. Thank you very much for the reliable and effective guide. I won't be reluctant to recommend your blog to any person who should get guidance about this matter.
kd shoes http://www.kd14shoes.com
Reply bape hoodie outlet
14:58 on 7 December, 2022 
I precisely needed to appreciate you again. I'm not certain the things that I would've handled without these techniques provided by you on that subject matter. It was before an absolute fearsome setting in my circumstances, but seeing this specialized way you treated it took me to weep over gladness. I will be grateful for the information and thus pray you really know what a powerful job your are doing educating many others by way of your web site. Most probably you haven't encountered all of us.
bape hoodie outlet http://www.bape-hoodie.com
Reply yeezy
14:57 on 7 December, 2022 
My wife and i have been absolutely joyous when Jordan could complete his research because of the precious recommendations he was given through the blog. It is now and again perplexing just to choose to be offering hints that some people have been making money from. We keep in mind we have the blog owner to give thanks to because of that. The specific explanations you have made, the easy blog menu, the friendships you give support to promote - it's most incredible, and it is leading our son and us understand that topic is brilliant, and that's pretty indispensable. Thanks for everything!
yeezy http://www.yeezy-supply.us.org
Reply MichaelNow
21:11 on 6 December, 2022 
kamagra uk fast delivery
Reply kevin durant shoes
6:39 on 6 December, 2022 
I simply wanted to thank you so much yet again. I'm not certain the things that I would have sorted out without the pointers discussed by you about this subject. It was actually the horrifying concern in my position, nevertheless taking note of a new specialized strategy you dealt with it made me to cry with fulfillment. Now i am thankful for this work and then hope that you know what a great job you are always undertaking instructing people today by way of your website. I know that you've never got to know all of us.
kevin durant shoes http://www.kevindurantshoes.us.com
Reply Rodneybon
3:14 on 5 December, 2022 
albuterol 1.5 mg
Reply YonduM
17:00 on 4 December, 2022 
buying retin a online
Reply JimduM
17:08 on 3 December, 2022 
quineprox 400
Reply RichardRof
2:06 on 3 December, 2022 
where can i buy singulair atarax 100 mg
Reply Edgartax
23:14 on 30 November, 2022 
generic strattera
Reply JamesSnaky
20:16 on 30 November, 2022 
clopidogrel 196 citalopram 10 mg tablet cost generic zofran over the counter lexapro prescription benicar cost comparison viagra on sale sildalis india buy toradol online
Reply ElwoodPoeme
19:43 on 30 November, 2022 
singulair tablets 5mg
Reply MichaelINOXY
18:19 on 30 November, 2022 
plavix otc
Reply ElwoodPoeme
1:04 on 30 November, 2022 
benicar 20 mg best price
Reply MichaelINOXY
3:11 on 29 November, 2022 
suhagra 100mg online india
Reply ecanninc
17:52 on 28 November, 2022 
moncler amiot down jacket kobe bryant lower merion nike jersey mens air max 270 casual sneakers cheap international clothing sites ducks original jersey tommy gilet mens
ecanninc http://www.ecanninc.com/