≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Feature Request: Ability to use values of variables in empty fields of built-in Actions and Behaviors.
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b]wild-master[/b] wrote: [b]Warning: If you'd hate doing this, don't worry about it. My other requests are far too important, and I don't want to shatter the goodwill toward me from Ambiera. I am asking for this in case I'm overestimating the difficulty of its implementation and it's actually almost effortless for you to add.[/b] Look at this picture: [url]https://drive.google.com/file/d/151BwWrnB0swmFTJWI4UhiiwrBtH2DYxM/view?usp=sharing[/url] [b]Sample of usage[/b]: Instead of adding "[b]1, 0, 0[/b]", I would write "[b]variable:speed[/b]", so it would use the value of a global variable named "[b]speed[/b]" for that field, and the variable would contain the value "[b]1, 0, 0[/b]". Currently, people can add that Action again based on the value of a variable, which is fine for small speed ranges, but pressing the Plus icon and adding that Action hundreds of times for large speed ranges will be unwieldy, so calling the variable within the Action means the Action would need to be created only once. [b]Easy example to portray why re-adding the built-in Action for every speed change is impractical:[/b] Imagine that I have a speed range from one to one hundred. I would have to do this one hundred times: [code][b]If variable has a value, do something: If 'speed' variable = 1, Move by vector into facing direction: 1, 0, 0 If variable has a value, do something: If 'speed' variable = 2, Move by vector into facing direction: 2, 0, 0 If variable has a value, do something: If 'speed' variable = 3, Move by vector into facing direction: 3, 0, 0 + 97 more times[/b][/code] I would have to do that one hundred times. Clicking the Plus icon to add that structure hundreds of times for my large speed ranges is inconvenient. [b]Reminder:[/b] I know that CopperCube has a special variable named "[b]movementspeed[/b]" for the A.I.'s motion. This feature would enable different situations. [b]Example of a spot where you already added this ability[/b]: The built-in Action called "[b]If a variable has a value, do something[/b]" has a drop-down menu called "[b]ValueType[/b]" that has these options: "[b]Value[/b]" and "[b]Variable[/b]". Imagine that drop-down menu being used for all empty fields of built-in Actions and Behaviors! [b]Note of personal cruelty:[/b] As far as I currently remember, I care about this being added only for the "[b]Move by vector into facing direction[/b]" feature. If you're willing to do a one-time addition of this specifically for that Action but unwilling to redesign your whole project to add it to every Behavior and every Action, keep that in mind. All customers would find new great uses of this if you add it to every field. I am just admitting my own sinful reason for this request. *devil* I looked into the source of CopperLicht and I attempted to copy the "[b]Move by vector into facing direction[/b]" part of the code for hours and rebuild it as a custom Action, but that section was too difficult for me. I wanted to surprise the forum with a great script, but debugging a portion of code of that difficulty until it works might be like a monkey attempting to assemble furniture.[/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