Non-threaded

Forums » Feature Wishing Well » Read Thread

Suggestions for improvements and additions to the site.
This feature was rejected 10/13/2005: Will be implemented with Scripting.

V*N=S

19 years ago
Mabey you don't get that up there in the title.

Varible# times Varible# = Varible# change

Could adapt to addition, subtraction, multiplication, and division.

Lets call the first varible time!
It is 18
Lets call the second varible Money!
It is 3
The third is Score. The varibles that are in the equation could be anything.
T*M=S
18*3=54
18/3=6
18+3=21
18-3=15

Also, a way to add Absolute Value signs would be good. Add ()s into the equation.

In other words we call this Algebra. It would help me out a ton.

V*N=S

19 years ago
That would be sper useful Havac, good idea.

V*N=S

19 years ago
Well, algebra is helpful in other games makers. Why not this one?

V*N=S

19 years ago

Solostrike suggested this very feature a while back. You should have seen how he had to work around it ... hoo boy!

This feature will be implemented in the form of "Scripting." Next to each link, there will be a little button with a picture of a script (you know, next to the +-, restrictions, etc). In that box, you could type in restrictions, changes, etc. When you use a script on a link, no other option will be avaiable (var changes, item drops, etc).

Here is an example of a  Link Script:
 $HEALTH = $ATTACK + 4D20
 IF $HEALTH > 20 THEN %DESTINATION = P15

Does that make sense? I'll transalte to english:
  set the HEALTH variable to equal ATTACK variable plus 4 twenty-sided dice rolls
  if HEALTH variable is greater than twenty, then set the desitnation page# to 15

Here are some other example script commands you could put on a link:
  IF $MONEY > 50 THEN %ENABLED = NO
  IF %ITEMUSES(12) = 0 THEN %ENABLED = NO
  %DESTINATION = C3

Obvoiously this will be a *huge* change. But it would be really sweet.
 

V*N=S

19 years ago
yes, very much like PHP. var defined by $ sign, If then, etc. Anyways, This sounds like a great idea, and i like the idea of scripting because it opens up a bunch of possiblities and can work wwell together with a battle system/timing system.

TIMING SYSTEM:

If $time > 10 Then
You get 5 points
elseif $time < 10 then
You get 10 points
else (this would be exact ten)
You get 7 points


Battle System,

close to same thing.

V*N=S

19 years ago

It'll take a lot of time to think about, too. Whenever you make a programming language, you want to make sure it works from the start. When you upgrade the programming language, you don't want to make old scripts/.programs break.

My thoughts were to have ...
 $ prefixes variables
 % prefixes link characteristics (%ENABLED, %DESTINATION, etc) and item characteristics

Timer variables are definitely a thought, plus I'd like to touch up the events system. It's a bit bare now, and problemnatic if you get "stuck" under the event threshhold.

And yes, the btttle system is definitely on the list too ...

V*N=S

19 years ago
sounds very, very good.

But now that you MAY have this in the ADV editor, you should give members an OPTION to use this, like KEEP the original stuff, but in options, add a preference for this. Because you SHOULD have some background knowledge on this. Eventually you can learn how to script it.

V*N=S

19 years ago

The old stuff will definitely remain the same. The script button will just be another option on the link commands ... however, using it will disable all of the things  (drops, changes, and restrictions) for that link only ... if you want to use the "easier" way, you'd clear out the script from the link.

What I would do is put together a quick syntax guide and some sample codes, but hopefully some one would write an aritlce on it (hint hint ;-)) .

V*N=S

19 years ago
obviously i want to. (hint hint) (o wait that wasnt even a hint lol)

I wouldnt mind either. I have dibbs.

V*N=S

19 years ago
I wanted to just have algebra, and not scripting. Scripting is a little to advanced for the site. Wait about 5 years and then add it. Put in algebra and make it so that varilbles are just letters like A or B. You can define varible shortcuts on the varible page so that you can put in %%S%% for score or something like that. Another idea is to do something for the page destination.

If A is 15 or more and B is 0 than goto page...
If A is 15 or less and B is 0 than hide page.
If A is 15 or more and B is 1 than goto page...

You see how it works to be simplified to english. You don't need to know scripting which this 13 year old dosen't know.

V*N=S

19 years ago

It's easy to learn ...  you just need to translate ENGLISH to SCRIPT ...

IF A >= 15 AND B=0 THEN %DESTINATION = P15
IF A <= 15 AND B=0 THEN %ENABLED = NO
IF A >= 15 AND B=1 THEN %DESTINATION = P18

V*N=S

19 years ago
But that is for one links scripting. What about changeing varibles to one letters for up to 26 varibles.