≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
FREE Inventory setup
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]Robo[/b] wrote: After much hassle I have managed to create and save an array in CopperCube. It saves & loads back up fine also: http://lasttrump.net/gamedev.html I wanted to use an array as its like a table of data that can be queried and able to save many variables easily and interconnected with multiple item characteristics per inventory slot. I am posting here for free - hope you like. Also see a copy of my game to date showing how it works in practice. I have it all in simple array style in one big string separated by commas. Each inventory slot has 11 different sub variables so that the whole list always has a factor of 11 elements in it. The inventory download has the spreadsheet showing each element for each inventory slot - you can use for yourself in your game if you like. To save use: var data = invMe.toString(); ccbWriteFileContent('save.dat', data); or save as normal method also as a single varaible 'invMe' if you like. To reload: data = ccbReadFileContent('save.dat'); var load = data.split(","); var invMe = load; Enjoy.[/quote]
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