Jump to content
  • 0
Sign in to follow this  
Indomitus

Visual scripting: Alpha compare and sort

Question

I want to build a routine to Alphanumeric sort a list of names/items.  The existing comparison operator will not accept anything that is not numeric.  Could we please get an operator that can compare string objects?

Share this post


Link to post
Share on other sites

2 replies to this bug / suggestion

Recommended Posts

  • 0

Would be helpful if implemented, but if you need it *now* you could assign each name as an array with each index for each character having a numeric value, A being 1, D being 4 and so on.

Then sorting each array based on the value at each index point.

Share this post


Link to post
Share on other sites
  • 0

I know.  I'm trying to avoid excess code, since VS can get unstable if there's too much.

Some things are far more efficient if we have a command to let the core of the game handle it, rather than interpreted script.  Trying to nudge VS a little more in that direction.

 

edit:   I'm not saying VS is bad.  I've seen a lot of scripting systems over the years, and they all have a point where the interpreter gets overwhelmed.

Edited by Indomitus

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×