So this is one of the craziest attempts at a script I’ve ever seen. I don’t mean any offense, but it’s not even close. It’s pretty clear you don’t have much of an understanding of the language structure at all, so there’s not much help anyone here can give you on this script that will make any sense to you.
Go through the scripting tutorials. With the exception of classes and variable typing, UnityScript is very similar to JavaScript, so maybe go through some tutorials on that as well if you’re determined to use UnityScript.
After that, you’ll want to take a fresh look at what you wrote and see how you can change it. (Hint: change almost all of it :p). If/when you run into issues, post back again with your updated code, and specific errors you’re receiving or how functionality is different than what you expect.
The code is with many syntax errors, the (absolute) and (relative) are to indicate the type of value.
Thank you send me learning from 0, but I like to learn by practicing with concrete exercises such as this.
I am content to help me to declare a numeric variable, and add value on a relative basis.
var menun: float? decimal? … var menun : decimal = 1; ??
if (Input.GetButtonDown ("L1")) { menun = -1; }
but this “-1” relative, how I can indicate that?
if you help me with just those two lines, I think I can get the rest of the code
What I’m trying to say is that you need to understand the language before you can understand how to do the things you’re asking. Unfortunately, I have a full time job, a wife, and a two month old baby, so I don’t have time to teach you how to program. If you take the time (probably less than an hour, as most tutorials teach you things like variables and value assignments early on) to learn the proper way, your answers will become immediately evident to you, I promise.