• Discuss all the things!

    77 Topics
    197 Posts

    That said - any system you want can be constructed with cloud code.

    Hope that helps!

  • Suggestions for improvements, new features, etc.

    21 Topics
    64 Posts

    @paul-winterhalder
    if detect refund than ban automatically with few condition matched(Size or number of refunds)
    Nxx Gamebxxx has this function

  • Questions specific to particular APIs, libraries, etc.

    40 Topics
    138 Posts

    thank you

  • General cloud code discussions...

    23 Topics
    73 Posts

    @JasonL Thanks, I ended up with this cloudCode:

    isForceCreate = String(data.callingMessage.forceCreate) == "true"; isNewUser = String(data.message.newUser) == "true"; var response = {}; response.status = 200; response.data = data.message; if (isForceCreate && isNewUser) { var min = 10000000, max = 999999999 prefix = ["player", "user", "member"] const num = Math.floor(Math.random() * (max - min + 1)) + min; const pre = prefix[Math.floor(Math.random() * prefix.length)]; var defaultPlayerName = pre + String(num); var playerStateProxy = bridge.getPlayerStateServiceProxy(); // We are changing the player name on the server. playerStateProxy.updatePlayerName(defaultPlayerName); // And in this API Call's return data. response.data.playerName = pre + String(num); } response; //return the object

    This works just the way I need

  • brainCloud's online learning tutorials and examples.

    1 Topics
    1 Posts

    Hi,

    If you haven't found them yet - our new brainCloud BootCamp videos can be found at:

    https://bootcamp.braincloudservers.com

    There are currently two courses:

    Unity BootCamp Unreal BootCamp

    each with over 30 videos of tutorial content.

    The courses are completely free - so be sure to check them out - and let us know what you think!

    Paul.

brainCloud 5 is alive!

brainCloud 5 features Portal-X (our next-gen portal), Integrated Forums (you found them), our new Bootcamp training videos, and more!

Join the discussion here!

brainCloud Bootcamp!
brainCloud's new video learning portal is now online! Go check out brainCloud BootCamp!

Need to report a defect?
Use the chat widget from the Design Portal - or send an email to support at getbraincloud.com. Thanks!