uhmno, a script is the base of the addon, it calls all the functions, handles all the effects, deals the damage, ect ect.
echo("helloworld");
This outputs helloworld to the console
function Howmany(%amount,%cost,%vara)
{
if(%vara){
%newcost=%cost;
%newcost/=%amount;
echo(""@%amount@" apples costs "@%newcost@" dollars each!");
}
else
{
%newcost=%cost;
%newcost*=%amount;
echo(""@%amount@" apples costs "@%newcost@" dollars!");
}
}
if you put in howmany(5,10,1);
it will say in console
5 apples costs 2 dollars each!
Scripting is complex
(btw the syntax for that is howmany(amountofapples,costofone_or_costofall,wetherornot_you_put_costofone_or_costofall)
so howmany(5,10,0) would return
5 apples cost 50 dollars!)