<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Best Practices - Level Completion and Rewards]]></title><description><![CDATA[<p dir="auto">We are setting up our server storage and would like to use BreainCloud's built-in tools as much as possible to avoid recreating the wheel.</p>
<p dir="auto">Our game will have levels you must complete to advance to the next. You can go back and replay those levels for smaller rewards.</p>
<p dir="auto">Milestones look like a good option for handling the items/currency/xp you get for finishing a level but all of these appear to be tied into stats. What is best practice for these? Do we need to set up a stat (0 to 1) for each of these as they are earned to trigger milestones and rewards or should we roll our own approach for this? Ideally we'd like to have a way in the UI  to configure a milestone for each board (named by the board id) and assign what they get in each milestone. Then as they complete we have them trigger, but I can't seem to find a way to do this directly and making a stat for each board seems overly convoluted.  Am I missing something that would be better/easier?</p>
<p dir="auto">Thanks for any pointers.</p>
]]></description><link>https://forums.getbraincloud.com/topic/183/best-practices-level-completion-and-rewards</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 09:53:35 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/183.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Sep 2023 20:24:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Best Practices - Level Completion and Rewards on Tue, 19 Sep 2023 23:22:43 GMT]]></title><description><![CDATA[<p dir="auto">That said - any system you want can be constructed with cloud code.</p>
<p dir="auto">Hope that helps!</p>
]]></description><link>https://forums.getbraincloud.com/post/536</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/536</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Tue, 19 Sep 2023 23:22:43 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practices - Level Completion and Rewards on Tue, 19 Sep 2023 23:21:42 GMT]]></title><description><![CDATA[<p dir="auto">My bad - the UI does support extra data - though as you indicate - it's limited to key + value pairs.</p>
]]></description><link>https://forums.getbraincloud.com/post/535</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/535</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Tue, 19 Sep 2023 23:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practices - Level Completion and Rewards on Tue, 19 Sep 2023 23:20:14 GMT]]></title><description><![CDATA[<p dir="auto">Currently when created via the portal - rewards are limited to XP, currencies and statistics. The SYS APIs allow you to attached "extraData" JSON though - which you could use for anything.</p>
]]></description><link>https://forums.getbraincloud.com/post/534</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/534</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Tue, 19 Sep 2023 23:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practices - Level Completion and Rewards on Fri, 15 Sep 2023 17:41:41 GMT]]></title><description><![CDATA[<p dir="auto">Ok that makes sense. For the items and rewards, would that just be keys/values we set or is there a way to have a custom global entity reference ids of other entities via the interface?</p>
]]></description><link>https://forums.getbraincloud.com/post/533</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/533</guid><dc:creator><![CDATA[chuck]]></dc:creator><pubDate>Fri, 15 Sep 2023 17:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to Best Practices - Level Completion and Rewards on Thu, 14 Sep 2023 19:02:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi Chuck,</p>
<p dir="auto">Milestones are normally used for triggering things like achievements - and yes, the generally trigger across common stats like levelsCompleted, civiliansSaved, gamesWon - that sort of thing.  Keeping track of each level passed as a separate stat is probably annoying and wasteful.</p>
<p dir="auto">As for keeping track of level completion - one would normally just use a User Entity - probably via the Singleton API (though that is up to you).</p>
<p dir="auto">And as for awarding certain amounts of currency, items, etc. of level completion - you could set up:</p>
<ul>
<li>a Global Entity type of "Levels" for that sort of thing - each level entry could contain those rewards</li>
<li>or Unowned Custom Entity &lt;- same idea</li>
</ul>
<p dir="auto">And then have a cloud code data handle the reward calculations server-side...</p>
<p dir="auto">Anyway - hope that helps!</p>
<p dir="auto">Paul.</p>
]]></description><link>https://forums.getbraincloud.com/post/531</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/531</guid><dc:creator><![CDATA[Paul Winterhalder]]></dc:creator><pubDate>Thu, 14 Sep 2023 19:02:38 GMT</pubDate></item></channel></rss>