Jump to content


Photo

Specifying Function Argument Help for scripts?


  • Please log in to reply
No replies to this topic

#1 Mack151

Mack151

    GMC Member

  • GMC Member
  • 61 posts
  • Version:GM:Studio

Posted 23 May 2012 - 03:39 PM

I recently learned that by putting a comment at the top of a code action with three slashes, you can replace the "Execute a piece of code" with the comment.

Example:

///Initialize variables
global.importantstuff[0] = 5
global.importantstuff[1] = 2
gives you

:GM069: Initialize variables


What I want to know is if there's any way to do something similar with the Function Argument Help at the bottom of the code editor - to specify the arguments for scripts in the same manner as how functions are displayed through FAH. For instance, if I were to specify:

(index,name,element,hp,mp,atk,def,spd,money,exp)
at the top of script_define_enemy_1, then whenever I type

script_define_enemy_1()

in the code editor, it would show
"script_define_enemy_1(index,name,element,hp,mp,atk,def,spd,money,exp)" in FAH.


So, is something like this possible in GM8.1? If not, is it possible in GM Studio? Lastly, if it isn't already a feature in either version then how difficult would it be to implement in a future update?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users