Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
ccbSaveCopperCubeVariable

zoltae
Registered User
Quote
2017-05-12 21:31:52

Hi,
Is this a way to make a ccbSaveCopperCubeVariable ?
Thanks !


niko
Moderator
Quote
2017-05-13 08:25:48

You can read the variable content using ccbGetCopperCubeVariable, and depending on your platform, save it, or post it to a server for example.


zoltae
Registered User
Quote
2017-05-13 09:42:41

Hi, and thanks for the response !
I know you can save variable in copper cube with the action save variable. But i was asking if there's a way to save the variable directly in the javascript action created.
In my game, there's areas with a number of ennemys. There's 3 or 4 areas by map. So, i create an action javascript with the name of the map (an integer), an every area as a number. I use the ccbSetCopperCubeVariable like this :

ccbSetCopperCubeVariable (""+ name of the map + area number");

But I was asking if theres a way in jaascript to do this :

ccbSaveCopperCubeVariable (""+nameof the map + area number);

or if I must save every area with the action in copper Cube.

I don't know if it's clear...
Thanks !


niko
Moderator
Quote
2017-05-13 15:09:19

No, currently there is not, you are right. You could implment this manually via JavaScript, but there is no built-in function for that. Will probably add one, it would be really useful, you are right.


zoltae
Registered User
Quote
2017-05-13 15:48:52

OK ! Thanks a lot !


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact