------

Started by ------, Fri 10/07/2009 00:47:19

Previous topic - Next topic

------

---

RickJ

Probably the upgrade caused some of your script to break.  I don't think anything is wrong with the variables you defined.  Perhaps you can provide more details.

------

#2
----

GuyAwesome

Graphical Variables are no longer supported by AGS, AFAIK, because they're no longer needed having been replaced in the editor by Global Variables (which act more like script variables).

The function should still work, however, for backwards-compatability issues like this... Is there a line number attached to that error? There's nothing in the code that you've posted that looks like it's calling SetGraphicalVariable.

Two other things: The error refers to Paso, and your variable is now called IntVar_Paso - unless this is just a typo here, that might explain the problem. And, since you're now using regular (non-Graphical) variables, you can change them directly in script, no need for any function, e.g.
Code: ags

  IntVar_Paso = 1;
  // Instead of SetGraphicalVariable("IntVar_Paso", 1);


Finally, you might want to make that second if an else if - if IntVar_Paso is set to 1 by hotspot3_a();, the second condition will run as well.

------

#4
-----

SMF spam blocked by CleanTalk