temnix Posted March 12, 2021 Share Posted March 12, 2021 I'm patching area scripts with an extension that sets a variable, this variable is set outside the script. It should be simple, but nothing changes in scripts after this patch. Here is how the added bit runs: IF Global("SIZE","MYAREA",0) THEN RESPONSE #1 SetGlobal("SIZE","MYAREA",%size%) Continue() END And outside of this the code, hidden in some nesting, is: OUTER_TEXT_SPRINT 5 size EXTEND_TOP ~%area%.BCS~ ~The Space-Fun Continuum/Script/ARSIZE_#.BAF~ EVALUATE_BUFFER area is set above. So why aren't the scripts getting extended? There are no parsing errors. Quote Link to comment
Gwendolyne Posted March 14, 2021 Share Posted March 14, 2021 You have inverted the name of the variable and its value: OUTER_TEXT_SPRINT size "5" You can also use OUTER_SET size = 5 Quote Link to comment
temnix Posted March 16, 2021 Author Share Posted March 16, 2021 Yes, I figured it out by now. I think I have to use text, though, because SET creates an integer, not a string. I mean, it gives 5, not "5". No? Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.