Tales Posted November 4, 2014 Group: Members Topic Count: 163 Topics Per Day: 0.03 Content Count: 319 Reputation: 8 Joined: 02/05/12 Last Seen: January 11, 2016 Share Posted November 4, 2014 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;" Quote Link to comment Share on other sites More sharing options...
Winz Posted November 4, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 4, 2014 (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 November 6, 2014 by Winz 1 Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 4, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 8 hours ago Share Posted November 4, 2014 you refering this ? http://rathena.org/board/topic/78263-scripting-faqtipstricks/?p=267219 Quote Link to comment Share on other sites More sharing options...
Question
Tales
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.