Jump to content
  • 0

About "set .varname,0;" and ".varname = 0"


Question

Posted
So..., reading the docs of rathena i found something that get me confuse.

 

Athena programming says:

 

You dont need to declare a variable... If it so, whats the difference between ".set varname,0;" and "varname = 0;"

2 answers to this question

Recommended Posts

Posted (edited)

Normal Variables

As of r15982 the usage of set has become obsolete and is no longer a requirement.

You set a variable by using the command set. The format is:

  • set <variable>,<value>;
or
  • <variable> = <value>;

No difference, I guess. but, some would may prefer Athena-ish script, so they use set. I'm one of them.

no difference tho.

by the way, it shall be

set varname, 0;
or
set .varname,0;

not
.set varname,0;

*Update

<variable> = <value>; may be used as well, but only rAthena is compatible with this statement. eA and 3CeAM (even 3CReAM) seems not to.

Edited by Winz
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...