why this trigger bugs sometimes?

Happy

Well-Known Member
Reaction score
71
hey guys...

i found a problem in one of my triggers. it should revive every dead hero after an arena fight but it sometime dont revive one hero (and its not the same...so its not just player 1's hero it could also be player 7's or player 9's) Oo


this is the trigger part reviving the heroes (Temp_Group is (Units in (Entire Map))) :

Trigger:
  • port back and unpause
    • Events
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Unit Group - Pick every unit in Temp_Group and do (Actions)
            • Loop - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Conditions
                  • (Picked unit) Equal to (==) Arena_Heroes[(Integer A)]
                • 'THEN'-Actions
                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Conditions
                      • (Arena_Heroes[(Integer A)] is dead) Equal to (==) True
                    • 'THEN'-Actions
                      • Set Temp_Point = (Center of item fuse over rank 2 til rank 4 <gen>)
                      • Hero - Instantly revive Arena_Heroes[(Integer A)] at Temp_Point, Hide revival graphics
                      • Custom script: call RemoveLocation (udg_Temp_Point)
                    • 'ELSE'-Actions
                  • Unit - Move (Picked unit) instantly to player_positions[(Player number of (Owner of (Picked unit)))]
                  • Set Arena_Heroes[(Integer A)] = No Unit
                • 'ELSE'-Actions
      • Set heaven_done = False
      • Set hell_done = False
      • Custom script: call DestroyGroup (udg_Temp_Group)
      • Countdown-Timer - Start arena_timer as a One-Shot timer that will expire in 600.00 seconds
      • Countdown-Timer - Create a timer window for (Last started timer) with title Arena starts in...
      • Set timer_window = (Last created timer window)|


someone has a clue why it bugs?

thanks in advance

greetz happy
 
I dont understand so many parts of that trigger.
Why do you pick a unit group there, as it seems you only want to revive a single unit, and that unit is already saved in an array, so why the group iteration? It doesnt make any sense to me.

Then, the point seems to be fixed for all units, it doesnt change, so why do you constantly create and remove it? Over and over and over again?
 
this is just a part of the trigger ^^ its about 100 lines long xD so i just show the part that bugs xD and i need that group for the rest xD

the point part okay xD that i could change but it wont cause the bug afaik...
 
Nothing in that trigger should cause the bug. The cause got to be somewhere else since that part is (although pretty nonsense right now) not buggy.

Potential bug-reasons might be the Temp_Group and Arena_Heroes[] array being set incorrectly.
 
both cannot cause the bug...

the Temp_Group is working for the rest like it should and Arena_Heroes[] works too because the Arena_Heroes[] are ported to the arena and the check wether they died or not works too....its just the reviving part thats buggy and that the trigger part you can see above.
 
Clearly some other part of the trigger is interfering with that part. Post the whole TGIF and explain the function of each part, and we'll see what we can do ^^
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    It is weird seeing a way more realistic users online number
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top