≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Guest's scripts and plugins
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b]Guest[/b] wrote: After a bit of thinking, I think "Print to console" can be simplified to "Print message". Let's make the change. [code] // CopperCube action that prints a message to the console /* <action jsname="action_PrintMessage" description="Print message"> <property name="Message" type="string" default="Hello, World!" /> </action> */ action_PrintMessage = function () { } action_PrintMessage.prototype.execute = function () { print(this.Message); } [/code] Save this as "action_PrintMessage.js" and place it in your CC extensions folder like was stated in the previous post. Delete the "action_PrintToConsole.js" and then restart your CC app to see "Print to console" has been changed to "Print message". Can you spot where I changed the code to make this happen? Be prepared for changes like this in the future; it's an unfortunate part of the evolution of code. Our next script will be an action that prints the value of a variable to the console. These two scripts are the workhorses of the CC developer.[/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