Clan TMMM
Would you like to react to this message? Create an account in a few clicks or log in to continue.


The official site of Clan TMMM
 
HomeHomeSearchLatest imagesRegisterLog in


Latest topics
» Kevkevqaz is back
Trigger that works some of the time I_icon_minitimeby Eat_bacon_daily Wed Feb 22, 2023 7:22 pm

» Hey whats up
Trigger that works some of the time I_icon_minitimeby seankly Tue Feb 04, 2020 10:32 pm

» Gotta click fast - WC3 Mazing #mildlyinteresting
Trigger that works some of the time I_icon_minitimeby hoffmann Wed Jun 21, 2017 10:28 pm

» I'm getting married and you guys are invited
Trigger that works some of the time I_icon_minitimeby Achilles.42 Wed Sep 07, 2016 11:00 am

» Server Photo Album 1
Trigger that works some of the time I_icon_minitimeby Pat1487 Sat Aug 06, 2016 5:28 pm

» Legacy of The Void Beta
Trigger that works some of the time I_icon_minitimeby Achilles.42 Sun Oct 18, 2015 3:21 am

» Hey guys!!!
Trigger that works some of the time I_icon_minitimeby Eat_bacon_daily Fri Oct 16, 2015 11:20 pm

SC2 Links
SC2 Challenge/Tourney Info

Official SC2 Forums

SC2 Curse

SC2Mapster

Team Liquid

SC2 Replayed

SC2 Strategy
WC3 Links
Clan_TMMM[Host] Info

WC3 Challenge/Tourny Rules

Epicwar
Poll
What game does everyone play now?
Starcraft 2
Trigger that works some of the time I_vote_lcap26%Trigger that works some of the time I_vote_rcap
 26% [ 8 ]
Warcraft 3
Trigger that works some of the time I_vote_lcap35%Trigger that works some of the time I_vote_rcap
 35% [ 11 ]
League of Legends
Trigger that works some of the time I_vote_lcap19%Trigger that works some of the time I_vote_rcap
 19% [ 6 ]
World of Warcraft
Trigger that works some of the time I_vote_lcap0%Trigger that works some of the time I_vote_rcap
 0% [ 0 ]
Diablo 2
Trigger that works some of the time I_vote_lcap0%Trigger that works some of the time I_vote_rcap
 0% [ 0 ]
No games at all
Trigger that works some of the time I_vote_lcap10%Trigger that works some of the time I_vote_rcap
 10% [ 3 ]
Other game not listed
Trigger that works some of the time I_vote_lcap10%Trigger that works some of the time I_vote_rcap
 10% [ 3 ]
Total Votes : 31
Transparency

 

 Trigger that works some of the time

Go down 
2 posters
AuthorMessage
Serenity09
Moderator
Moderator
Serenity09



Trigger that works some of the time Empty
PostSubject: Trigger that works some of the time   Trigger that works some of the time I_icon_minitimeWed Jan 26, 2011 10:15 pm

Variables:

integer A is defined in the loop, its the index which goes from 0 - 7

Left is a boolean that is true when the left arrow key is pressed and false when it is released. checking to see if right was pressed at the time made it glitchy (so both can be pressed, but only the first pressed will do anything). its an array where left[0] is for red, left[1] blue etc

Right is the same deal

Angle is an array of reals. Angle[0] is for red etc. Angle starts out as 90 for each element and is updated by this function. Angle works fine.
it might look weird, but its made to prevent you from turning most of the way left or most of the way right. the very last part of ifs is to slowly reset your angle to being forward.

temp point is what its always been

heroes[0] is red's demonhunter etc

don't worry about timepressed

Code:
Turn
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        Do Multiple ActionsFor each (Integer A) from 0 to 7, do (Actions)
            Loop - Actions
                Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Left[(Integer A)] Equal to (==) True
                    Then - Actions
                        Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                Angle[(Integer A)] Less than (<) 155.00
                            Then - Actions
                                Set TimePressed[(Integer A)] = (TimePressed[(Integer A)] + 0.05)
                                Set Angle[(Integer A)] = (Angle[(Integer A)] + (0.50 + ((TimePressed[(Integer A)] + 1.00) x 3.00)))
                                Set TempPoint3 = (Position of Heroes[(Integer A)])
                                Unit - Move Heroes[(Integer A)] instantly to TempPoint3, facing Angle[(Integer A)] degrees
                                Custom script:  call RemoveLocation(udg_TempPoint3)
                            Else - Actions
                                Set Angle[(Integer A)] = 160.00
                    Else - Actions
                        Do Multiple ActionsFor each (Integer A) from 0 to 7, do (Actions)
                            Loop - Actions
                                Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        Right[(Integer A)] Equal to (==) True
                                    Then - Actions
                                        Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                Angle[(Integer A)] Greater than (>) 25.00
                                            Then - Actions
                                                Set TimePressed[(Integer A)] = (TimePressed[(Integer A)] + 0.05)
                                                Set Angle[(Integer A)] = (Angle[(Integer A)] - (0.50 + ((1.00 + TimePressed[(Integer A)]) x 3.00)))
                                                Set TempPoint3 = (Position of Heroes[(Integer A)])
                                                Unit - Move Heroes[(Integer A)] instantly to TempPoint3, facing Angle[(Integer A)] degrees
                                                Custom script:  call RemoveLocation(udg_TempPoint3)
                                            Else - Actions
                                                Set Angle[(Integer A)] = 20.00
                                    Else - Actions
                                        Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                Angle[(Integer A)] Greater than (>) 100.00
                                            Then - Actions
                                                Set Angle[(Integer A)] = (Angle[(Integer A)] - 0.50)
                                                Set TempPoint3 = (Position of Heroes[(Integer A)])
                                                Unit - Move Heroes[(Integer A)] instantly to TempPoint3, facing Angle[(Integer A)] degrees
                                                Custom script:  call RemoveLocation(udg_TempPoint3)
                                            Else - Actions
                                                Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    If - Conditions
                                                        Angle[(Integer A)] Less than (<) 80.00
                                                    Then - Actions
                                                        Set Angle[(Integer A)] = (Angle[(Integer A)] + 0.50)
                                                        Set TempPoint3 = (Position of Heroes[(Integer A)])
                                                        Unit - Move Heroes[(Integer A)] instantly to TempPoint3, facing Angle[(Integer A)] degrees
                                                        Custom script:  call RemoveLocation(udg_TempPoint3)
                                                    Else - Actions
                                                        Do nothing

Code:
DirectionPressLeft Blue
    Events
        Player - Player 2 (Blue) Presses the Left Arrow key
    Conditions
    Actions
        Set Left[1] = True

Code:
DirectionReleaseLeft Blue
    Events
        Player - Player 2 (Blue) Releases the Left Arrow key
    Conditions
    Actions
        Set Left[1] = False
        Set TimePressed[1] = 0.00


the problem is that for any player but red, the game registers that you hit left only some of the time.
ive only tested this as red and blue
but as blue
right works perfectly
and left works about half the time
its not a delay problem, if it doesnt work, it won't work at all.
it doesnt seem like a problem red causes for blue and i checked the set left/right triggers and red's doesn't mess with blues
blue can go left regardles of whether red's left/right are true/false... but still only half the time
i honestly have no idea whats causing such a half-the-time problem...


Last edited by Serenity09 on Thu Jan 27, 2011 6:29 pm; edited 1 time in total (Reason for editing : problem fixed)
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Trigger that works some of the time Empty
PostSubject: Re: Trigger that works some of the time   Trigger that works some of the time I_icon_minitimeThu Jan 27, 2011 4:38 pm

update:
right works perfectly for all player
left doesn't work at all for teal down.


fixed
had a for loop in the middle that didnt need to be there. it shouldnt have caused problems though


Last edited by Serenity09 on Thu Jan 27, 2011 6:29 pm; edited 1 time in total (Reason for editing : fixed)
Back to top Go down
AmAzIn[G]
Commander
Commander
AmAzIn[G]



Trigger that works some of the time Empty
PostSubject: Re: Trigger that works some of the time   Trigger that works some of the time I_icon_minitimeThu Jan 27, 2011 11:42 pm

someone has been having some anal refluxing going on :O.
Back to top Go down
Serenity09
Moderator
Moderator
Serenity09



Trigger that works some of the time Empty
PostSubject: Re: Trigger that works some of the time   Trigger that works some of the time I_icon_minitimeFri Jan 28, 2011 3:07 am

AmAzIn[G] wrote:
someone has been having some anal refluxing going on :O.

yep bud, you nailed it
anal reflux hit me pretty hard this time around, deleted half my maps and killed a few of my triggers. it was rough, but thats how i like it.
Back to top Go down
Sponsored content





Trigger that works some of the time Empty
PostSubject: Re: Trigger that works some of the time   Trigger that works some of the time I_icon_minitime

Back to top Go down
 
Trigger that works some of the time
Back to top 
Page 1 of 1
 Similar topics
-
» Trigger Help!
» ok Um -cam trigger
» Locust Trigger
» Why isn't my trigger working?
» Trigger Leaks

Permissions in this forum:You cannot reply to topics in this forum
Clan TMMM :: Warcraft 3 :: WC3 Tutorials and Help-
Jump to: