Announcement

Collapse
No announcement yet.

script problem, possibly glitch with disc?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    script problem, possibly glitch with disc?

    well simply put; i have a action script in which a flag is turned on to activate another event.
    the problem is that the flag turns on but the event only activates once you press the "square" button.
    ive looked through a the script and have even made multiple and simpler scripts/events to try and find the problem but there seems to be nothing wrong with the scripting. and i have also made MANY checks on the event itself.
    but even with the flag turning on, the event only acivates when i press the square button, and i dont want that to happen.

    #2
    Re: script problem, possibly glitch with disc?

    Changing a flag doesn't have any effect on any other event. It just changes the flag. I can understand your confusion, just about everyone makes this mistake. Something has to happen to make the other event run and check the flag and there are only two things that will do that:

    1) a content script ends
    2) A system script ends

    When the [] button is pressed a system script starts and ends. The same thing happens when you enter a map.

    The advantage of action scripts is that they run completely independent of any other scripts. but this also means that they can't trigger content scripts or event conditions.

    Solutions:

    If the reason you need a flag is to get another event to do something then use Event : Control : change instead. With this command you can tell another event to do something while the current script is still running.

    If you need to control the party, it can get tricky. You could put a triggering event around the party so that it activates when the player moves onto it.

    You can ask the player to press [].

    You can give the party members a custom condition (indirect effect) that runs a system event every time the party moves.

    If these solutions don't help, tell me specifically what you want to happen and I'll come up with a solution for you.




    The Crown of Order demo is here.

    Comment


      #3
      Re: script problem, possibly glitch with disc?

      Thank you so much!
      i was able to use the custom condition/indirect effect to finally fix it and now it works perfectly!
      thanks for all the helpful advice

      Comment


        #4
        Re: script problem, possibly glitch with disc?

        You're welcome.

        I'm glad you were able to figure out a solution.




        The Crown of Order demo is here.

        Comment

        Working...
        X