Getting a syntax error with this GUI trigger?

X-maul

AKA: Demtrod
Reaction score
201
I got this trigger:
Code:
Select Hero
    Events
        Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
    Local Variables
    Conditions
        Or
            Conditions
                (Used dialog item) == Karass Select
                (Used dialog item) == Schlar Select
                (Used dialog item) == Hrun Select
                (Used dialog item) == Tinker Select
                (Used dialog item) == Malqi Select
                (Used dialog item) == Gunnar Select
                (Used dialog item) == Xenon Select
                (Used dialog item) == Enzi Select
                (Used dialog item) == Zetax Select
                (Used dialog item) == Helios Select
                (Used dialog item) == Krain Select
                (Used dialog item) == Balthu Select
    Actions
        General - Switch (Actions) depending on (Used dialog item)
            Cases
                General - If (Karass Select)
                    Actions
                        Dialog - Destroy Karass Select
                        Variable - Set Karass Select = No Dialog Item
            Default
And it gives me this error:
Script failed to compile: Syntax error (See Trigger Editor for more details)
Code:
//--------------------------------------------------------------------------------------------------
// Trigger: Select Hero
//--------------------------------------------------------------------------------------------------
bool gt_SelectHero_Func (bool testConds, bool runActions) {
    int autoB06D3301_val;
[B][COLOR="#FF0000"]    parent auto3C53C56B_val;[/COLOR][/B]

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == gv_karassSelect) || (EventDialogControl() == gv_schlarSelect) || (EventDialogControl() == gv_hrunSelect) || (EventDialogControl() == gv_tinkerSelect) || (EventDialogControl() == gv_malqiSelect) || (EventDialogControl() == gv_gunnarSelect) || (EventDialogControl() == gv_xenonSelect) || (EventDialogControl() == gv_enziSelect) || (EventDialogControl() == gv_zetaxSelect) || (EventDialogControl() == gv_heliosSelect) || (EventDialogControl() == gv_krainSelect) || (EventDialogControl() == gv_balthuSelect)))) {
            return false;
        }
    }

    // Actions
    if (!runActions) {
        return true;
(I only took part of the code as it is pretty long)

How can I fix this?
 

X-maul

AKA: Demtrod
Reaction score
201
Uhmm, never mind - I got no idea what was wrong, but I just copy & pasted the trigger and it worked:confused:
 

Dave312

Censored for your safe viewing
Reaction score
269
The line that is giving you the error should not be there. I have tried to recreate your trigger using the info provided and I do not have this line. I think your best bet would be to recreate your trigger and see if you still get the error.
 

X-maul

AKA: Demtrod
Reaction score
201
Okay, copy&pasted the trigger and it worked. So it was no problem after all, but thank you for the effort :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top