HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Lagg

01-22-2005, 09:59 PM#1
oNdizZ
I have no idea why this lag, but it happens when i press Accept on the buy hero thingy. this is the triggers which fires off when you press the accept button:

Code:
Choose Hero
    Events
        Dialog - A dialog button is clicked for Q_HeroChoose[1]
        Dialog - A dialog button is clicked for Q_HeroChoose[2]
        Dialog - A dialog button is clicked for Q_HeroChoose[3]
        Dialog - A dialog button is clicked for Q_HeroChoose[4]
        Dialog - A dialog button is clicked for Q_HeroChoose[5]
        Dialog - A dialog button is clicked for Q_HeroChoose[6]
        Dialog - A dialog button is clicked for Q_HeroChoose[7]
        Dialog - A dialog button is clicked for Q_HeroChoose[8]
        Dialog - A dialog button is clicked for Q_HeroChoose[9]
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[11]
                        (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[12]
                        (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[13]
                        (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[14]
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[11]
                        (Player 1 (Red) Current gold) Greater than or equal to (Point-value of Swordsman)
                    Then - Actions
                        [color=SeaGreen]Player - Add ((Point-value of Swordsman) x -1) to Player 1 (Red) Current gold
                        Set HeroPoint = (Center of Spawn Bought Hero <gen>)
                        Unit - Create 1 Swordsman for Player 1 (Red) at HeroPoint facing Default building facing (270.0) degrees
                        Custom script: call RemoveLocation( udg_HeroPoint )
                        Set HeroPoint = (Center of Spawn Bought Hero <gen>)
                        Special Effect - Create a special effect at HeroPoint using Abilities\Spells\NightElf\ReviveNightElf\ReviveNightElf.mdl
                        Custom script: call RemoveLocation( udg_HeroPoint )
                        Dialog - Clear Q_HeroChoose[1][/color]
                    Else - Actions
                        Game - Display to Player Group - Player 1 (Red) the text: Not enough money!
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Or - Any (Conditions) are true
                            Conditions
                                (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[12]
                                (Clicked dialog button) Equal to Q_ChickHeroChoose_Buttons[14]
                    Then - Actions
                        Dialog - Clear Q_HeroLook[1]
                        Dialog - Change the title of Q_HeroLook[1] to Click for more info...
                        Dialog - Create a dialog button for Q_HeroLook[1] labelled (Swordsman |cff000000(|r|cffFFFF00 + ((String((Point-value of Swordsman))) + G|r|cff000000)|r))
                        Set Q_ChickHero_Buttons[11] = (Last created dialog Button)
                        Dialog - Create a dialog button for Q_HeroLook[1] labelled (Ranger |cff000000(|r|cffFFFF00 + ((String((Point-value of Footman))) + G|r|cff000000)|r))
                        Set Q_ChickHero_Buttons[12] = (Last created dialog Button)
                        Dialog - Create a dialog button for Q_HeroLook[1] labelled (Warlock |cff000000(|r|cffFFFF00 + ((String((Point-value of Footman))) + G|r|cff000000)|r))
                        Set Q_ChickHero_Buttons[13] = (Last created dialog Button)
                        Dialog - Create a dialog button for Q_HeroLook[1] labelled Go Back
                        Set Q_ChickHero_Buttons[14] = (Last created dialog Button)
                        Dialog - Show Q_HeroLook[1] for Player 1 (Red)
                    Else - Actions
            Else - Actions

i think it laggs somewhere there at the green place.