≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
well... humble try
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b][/b] wrote: There is a difference between coppercube variables and native javascript behavior, what you are doing is setting the coppercube variable, the thing is that you also need to get the coppercube variable value. the error you were getting of variable not defined is due to that only. you need to declare javascript native variables too. here is the solution to your problem. [code] var animEuWalk = ccbGetCopperCubeVariable("animEuWalk"); var animEuWalking = ccbGetCopperCubeVariable("animEuWalking"); if (animEuWalk == 1) ccbSetCopperCubeVariable("animEuWalking", animEuWalking+1); ccbSetCopperCubeVariable("npcIsCarried", 0); if (animEuWalking > 4) ccbSetCopperCubeVariable("animEuWalking", 1); [/code] in above code i removed the set coppercube variable as you are using the every few seconds behavior for this script. so using the ccbSetCoppercubeVariable will reset the value of the variables to 1 everytime it is executed, so you need to use this with before first drawing behavior or with something else .. i will recommend you to set all of your coppercube variables before first drawing... also there was no increment operation has done by you for the variable animEuWalking so i added +1 for increment of variable, you can also use ++ operand for increment .. also i don't know the use of variable animEuWalk but as you have used it in the above code so i left it as it is... set animEuWalk and animEuWalking both variable to value 1 , with the behavior before first drawing do something and then use the above code with every few seconds.. i believe the addition of variable animEuWalking will be performed... hope that helps...*holy**holy**holy*[/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