Jump to content
  • 0

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


Tales

Question


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

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;"

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

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.

×
×
  • Create New...