Sign In Register

How can we help you today?

Start a new topic
Answered

How to use Virtual Goods Segments.

In out game we require heavy avatar customization through virtual goods. So each  player will have their "segments" which will indicate if avatar is male or female and what their eyes, clothes, or bodies look like. But for eyes we have different segments like pupils, eye lids, eye brows, and sclera. My question is on documentation there isn't enough info for me to have nice structured way to implement those. should i try to find a work around or is there a documentation for us to see how "segments" and "properties" on virtual goods work?


Best Answer

Just to share the work around i've found:

I created meta collection with desired properties and match them with shortCode of virtual goods.


Hi Future Fart,


We are actively updating all our documentation currently, and hope to include expanded sections on properties and segments in future.
If you can give us more detail of what exactly you wish to achieve we'd be happy to offer some help.


Thanks,


Oisin

What i am trying to achieve is:
Every player will have some item from virtual goods as their avatars.  Clothes, Accessories, and Body Parts. that will make their avatar. And some of the body parts consist of multiple virtual goods. For instance:

 Eye consists of:

  Pupil, Sclera and Eyelids

but Eyelids also consists of 3 different sprites.


Also I want to add some "properties" to virtual goods like wearing it gives you that much of that bonus. and when i reward them i need to calculate total bonuses players has and proceed accordingly.

My problem is. How do I structure virtual goods in a way that supports multiple sprites for one good and can have some properties.

To simplify what i am going to need:

Is there a way to create bundle from virtual goods. and sell it as a virtual good? (it should appear like the brought them individually)
How can I add properties for each virtual goods and once I have playerID get which virtual goods is he wearing and sum the bonuses.

Answer

Just to share the work around i've found:

I created meta collection with desired properties and match them with shortCode of virtual goods.

Login to post a comment