This spell trigger is driving me crasy! T.T

Magoiche

Member
Code:
MA Settings
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to (==) Mystical Axe 
        ((Triggering unit) is A Hero) Equal to (==) True
    Actions
        Set MA_Caster = (Triggering unit)
        Set MA_CasterOwner = (Owner of MA_Caster)
        Set MA_CasterPosition = (Position of MA_Caster)
        Set MA_RandomNumber = (Random integer number between 1 and 100)
        Set MA_RandomNumberOfAxes = (Random integer number between 2 and 3)
        Set MA_Chance = (33 x (Level of Mystical Axe  for MA_Caster))
        Set MA_Range = 700.00
        Trigger - Run MA Effects <gen> (ignoring conditions)
Code:
MA Effects
    Events
    Conditions
    Actions
         Do Multiple ActionsFor each (Integer MA_Loop) from 1 to MA_RandomNumberOfAxes, do (Actions)
            Loop - Actions
                 Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        MA_RandomNumber Less than or equal to (<=) MA_Chance
                    Then - Actions
                        Unit Group - Pick every unit in (Units within MA_Range of MA_CasterPosition matching ((((Matching unit) belongs to an enemy of MA_CasterOwner) Equal to (==) True) and (((Matching unit) is alive) Equal to (==) True))) and do (Actions)
                            Loop - Actions
                                Unit Group - Add (Picked unit) to MA_PossibleTargets
                        Unit - Create 1 Dummy Unit for MA_CasterOwner at MA_CasterPosition facing 0.00 degrees
                        Set MA_Dummy = (Last created unit)
                        Unit - Add a 2.00 second Generic expiration timer to MA_Dummy
                        Unit - Add Mystical Axe  to MA_Dummy
                        Unit - Set level of Mystical Axe  for MA_Dummy to (Level of Mystical Axe  for MA_Caster)
                        Unit - Order MA_Dummy to Human Mountain King - Storm Bolt (Random unit from MA_PossibleTargets)
                    Else - Actions
                        Do nothing
Whem i cast the spell the WC crashes. Not much to say.
I am with this problem for 2 days and can't solve it T.T
 

vypur85

Hibernate
> You're right.

Er... Is the problem solved?


The problem with the trigger could be infinite loop (which is the usual cause of crash).

Code:
Unit - Add Mystical Axe  to MA_Dummy
Unit - Set level of Mystical Axe  for MA_Dummy to (Level of Mystical Axe  for MA_Caster)
You add the same spell to the dummy and order the dummy to cast the spell. So the first trigger will fire repeatedly every time your dummy casts the spell. And this continues infinitely. So crash :). I think.... Unless your actual ability has the exact same name as the dummy ability.


Edit (for below post):
Ignoring condition should work fine. It only ignores the main condition, but not the if then else.
 

Curo

Why am I still playing this game...?
What vypur said. Also:

Trigger - Run MA Settings <gen> (ignoring conditions)
I don't think you want to ignore the conditions.
 

Magoiche

Member
vypur.
I put a condition that only accepts if a hero casts.
See in he first trigger =P

But the problem is already solved xD
 
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

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome
    Top