This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
So I made this trigger that, as far as I can see, is practically a replica of what the Galaxy editor would give me for GUI. It's giving me errors.
void gt_KamehamehaCast_Init () { gt_KamehamehaCast = TriggerCreate("gt_KamehamehaCast_Func"); TriggerAddEventUnitAbility(gt_KamehamehaCast, null, AbilityCommand("Kamehameha", 0), c_abilEffectStageFinish, false); }
This should technically work. I've initialized the trigger here
//-------------------------------------------------------------------------------------------------- // Trigger Initialization //-------------------------------------------------------------------------------------------------- void InitTriggers () { gt_Init_Init(); gt_KamehamehaCast_Init(); }
//-------------------------------------------------------------------------------------------------- // Trigger Variables //-------------------------------------------------------------------------------------------------- trigger gt_Init; trigger gt_KamehamehaCast;
So it gives me an invalid variable name or cannot parse function line. What could possibly be making this go haywire?
Well, you would obviously need the gt_Init_Init function somewhere, as well as a function called gt_KamehamehaCast_Func returning boolean with 2 boolean parameters. Other than that, it should work.
Edit: Fixed the error, got Notepad and noticed I was missing a bracket and return true; at the end of the function. Thanks for looking everyone
So I made this trigger that, as far as I can see, is practically a replica of what the Galaxy editor would give me for GUI. It's giving me errors.
This should technically work. I've initialized the trigger here
So it gives me an invalid variable name or cannot parse function line. What could possibly be making this go haywire?
Well, you would obviously need the gt_Init_Init function somewhere, as well as a function called gt_KamehamehaCast_Func returning boolean with 2 boolean parameters. Other than that, it should work.
Edit: Fixed the error, got Notepad and noticed I was missing a bracket and return true; at the end of the function. Thanks for looking everyone