Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Magus_BGforge
« on: September 07, 2017, 09:56:58 PM »

Ok, thanks, the following worked
Code: [Select]
ACTION_DEFINE_ASSOCIATIVE_ARRAY notes BEGIN

ar7200, 2108, 2963 => 1
ar7200, 1770, 2481 => 2
...
END

ACTION_PHP_EACH notes AS loc => note_num BEGIN
  OUTER_SPRINT map ~%loc_0%~
  OUTER_SET x = %loc_1%
  OUTER_SET y = %loc_2%
  OUTER_SPRINT note (AT note_num)
END
Posted by: Wisp
« on: September 06, 2017, 12:41:09 PM »

(AT foo) is semantically equivalent to @"%foo%" (which is not valid). If the variable foo evaluates to 1, (AT foo) is equivalent to @1.
Posted by: Mike1072
« on: September 06, 2017, 04:22:35 AM »

Sorry, you can use it to achieve your goal by assigning integer values in the array, then fetching those values out of the array and using AT on them.
Posted by: Magus_BGforge
« on: September 06, 2017, 01:21:53 AM »

sorry, I don't understand what syntax is supposed to be used. I tried
Code: [Select]
LOAD_TRA ~%MOD_FOLDER%/tra/%LANGUAGE%/map_notes.tra~
ACTION_DEFINE_ASSOCIATIVE_ARRAY notes BEGIN
  ar7200, 2108, 2963 => ( AT 1 )
  ...
END
Code: [Select]
LOAD_TRA ~%MOD_FOLDER%/tra/%LANGUAGE%/map_notes.tra~
ACTION_DEFINE_ASSOCIATIVE_ARRAY notes BEGIN
  ar7200, 2108, 2963 => ( AT "1" )
  ...
END
it doesn't work
Posted by: Wisp
« on: September 04, 2017, 02:13:08 PM »

Posted by: Mike1072
« on: September 03, 2017, 11:11:40 PM »

I couldn't find this in the docs, but it's listed in the changelog:

Quote
(AT var) is equivalent to @<value of var>
Posted by: Magus_BGforge
« on: September 03, 2017, 09:33:27 PM »

Is there a way to have a tra string as a result in associative array?
I'm trying multi ADD_MAP_NOTE with strings traified.