≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Saturn 7
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: Good working.. some useful advice i used to before…. An inventory system have to start with a single question Is there an empty slot? So the first array must be "status" (0 empty 1 full 2 addable items etc..) and you need "number_of_items" variable.. create number of items on start up as empty, end then check if one avaiable. and using with one single function on "Before first drawing do something" tab, life may be easier for you :) //********************************* function saturn_on_start() { var varname="food"; ccbSetCopperCubeVariable(varname,200); varname="energy"; ccbSetCopperCubeVariable(varname,200); varname="stamima"; ccbSetCopperCubeVariable(varname,200); varname="temp"; ccbSetCopperCubeVariable(varname,100); varname="ammo"; ccbSetCopperCubeVariable(varname,60); varname="damage"; ccbSetCopperCubeVariable(varname,'0.0'); varname="heat"; ccbSetCopperCubeVariable(varname,'0.01'); varname="thirst"; ccbSetCopperCubeVariable(varname,'0.01'); // and so on.... }[/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