why this trigger bugs sometimes?

Happy

Well-Known Member
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
 

Accname

2D-Graphics enthusiast
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?
 

Happy

Well-Known Member
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...
 

Accname

2D-Graphics enthusiast
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.
 

Happy

Well-Known Member
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.
 

Smitty

Member
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.
  • tom_mai78101 tom_mai78101:
    Would like to get some annual forum statistics report.
  • The Helper The Helper:
    there are stats in the xenforo forum admin section and we have matomo stats we started collecting beginning of the year so we will not have annual on that until next year
  • The Helper The Helper:
    I thought you had keys to the bathroom Tom? Ghan does Tom have access to the stats thread in the bathroom
  • The Helper The Helper:
    since I started jacking with the bots on the site we doubled our page views on the site in a week lol
  • The Helper The Helper:
    I have been having lots of fun
  • The Helper The Helper:
    we have had like 6000 views of the American Airlines economy class thread in the last week
  • The Helper The Helper:
    I ought to stick a travel affiliate link or something on that page to try and monetize that they are just going there and leaving it might even be bots I am not sure
  • The Helper The Helper:
    I just got into it with the Atari VCS Facebook Moderator I started trolling him and almost got banned
  • The Helper The Helper:
    They deleted one of my posts one time so I was trolling him on a help post I put up because I am evil I guess and bored and the guy handled it well I loved his attitude Atari has a good social media presence even if they do not have many games.
  • The Helper The Helper:
    The French Atari they call them even though they are like totally based in America they just have French Money coming in. Gotta love it
  • Ghan Ghan:
    Microsoft buying Activision Blizzard holy crap!
  • The Helper The Helper:
    I know right holy cow
  • Accname Accname:
    Thats not going to save it.
  • The Helper The Helper:
    It might
  • The Helper The Helper:
    They are going to use alot of that IP in the Metaverse
  • The Helper The Helper:
    I found a new section of the stats that is freaking interesting!
  • The Helper The Helper:
    oh yeah this is what I was looking for good job matomo! These are some sweet stats I am learning the interface on it too!
  • The Helper The Helper:
    If anyone ever asks later how I found out about it was watching the site bots but not watching what they were doing but asking myself why they were here?
  • The Helper The Helper:
    there must be a reason and ok that is it
  • The Helper The Helper:
    the past and the future all come together into one
  • The Helper The Helper:
    the search engines are what built thehelper.net the search engines will make it big again maybe
  • The Helper The Helper:
    the real question is are 5 million links better than 60 real good links?
  • The Helper The Helper:
    the answer is 60 lol
  • The Helper The Helper:
    unless you put 100k links on it lol then you get something

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top