Latheesan Posted March 13, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 50 Reputation: 54 Joined: 11/27/11 Last Seen: May 31, 2017 Share Posted March 13, 2013 Hi, I have a quick question. Take a look at this list of script command definitions (from http://svn.rathena.org/svn/rathena/trunk/src/map/script.c): /// script command definitions/// for an explanation on args, see add_buildin_funcstruct script_function buildin_func[] = { // NPC interaction BUILDIN_DEF(mes,"s*"), BUILDIN_DEF(next,""), BUILDIN_DEF(close,""), BUILDIN_DEF(close2,""), BUILDIN_DEF(menu,"sl*"), BUILDIN_DEF(select,"s*"), //for future jA script compatibility BUILDIN_DEF(prompt,"s*"),etc... Can someone help me understand what these values specified inside the double quotes, next to each function name. for e.g: s l * i ? v r I am guessing "s" is string and "i" is int, but what do others means? Also, if nothing is specified within double quotes, does that mean that particular script command doesn't take any arguments? Thanks. 1 Quote Link to comment Share on other sites More sharing options...
KeyWorld Posted March 13, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 379 Reputation: 304 Joined: 11/10/11 Last Seen: December 2, 2014 Share Posted March 13, 2013 v - value (string, int or reference) s - string i - int r - reference (variable) l - label ? - optional parameter * - as you want optionals parameters Quote Link to comment Share on other sites More sharing options...
Latheesan Posted March 13, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 50 Reputation: 54 Joined: 11/27/11 Last Seen: May 31, 2017 Author Share Posted March 13, 2013 Thanks allot Quote Link to comment Share on other sites More sharing options...
Question
Latheesan
Hi,
I have a quick question. Take a look at this list of script command definitions (from http://svn.rathena.org/svn/rathena/trunk/src/map/script.c):
Can someone help me understand what these values specified inside the double quotes, next to each function name.
for e.g: s l * i ? v r
I am guessing "s" is string and "i" is int, but what do others means?
Also, if nothing is specified within double quotes, does that mean that particular script command doesn't take any arguments?
Thanks.
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.