Jump to content

Xynvaroth_DynamicSelect 1.2


Recommended Posts


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

This function is passed an array and it will then generate a string to be used as a parameter of select or prompt with the possibility of selecting each value of this array.

There is a detailed documentation inside the file.

Xynvaroth_DynamicSelect

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Useful. XD
 
Your documentation still says "Xynvaroth_ItemDynamicSelect", btw. :3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

Thank you; I changed that.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

We can retrieve an .@var array in a function with .@var[0] in argument? I though we couldn't

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

We can retrieve an .@var array in a function with .@var[0] in argument? I though we couldn't

I am not sure, whether I have understood you correctly.

I think you mean that it is not possible to directly pass a NPC variable array to a function and then use it in the function, right?

You can do this using copyarray:

copyarray .@Array$[ 0 ], getarg( 0 ), getarraysize( getarg( 0 ) );
If you pass a NPC variable, it will also be copied into .@Array$. That worked when I tested it.
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Yes that's what I mean. Thanks you I learned something interesting

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

1.1

- Revised the documentation.

1.2

- Revised the documentation.

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
Reply to this topic...

×   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...