wc3edit.net

United Warcraft 3 map hacking!
It is currently April 26th, 2024, 4:35 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: July 22nd, 2009, 7:53 pm 
Offline
Junior Member
User avatar

Joined: June 13th, 2009, 10:55 pm
Posts: 41
Location: *******************
Title: Warcraft 3 Addict
I want it to fire every time you type tips on, but so far I cannot find a way to make it stop firing and leaking after the first time?? Can you help me, and is it possible?? Please?? Here is the coding:

Spoiler:
Code:
function Trig_Text_3_Actions takes nothing returns nothing
    set bj_forLoopAIndex = 1
    set bj_forLoopAIndexEnd = 21
    loop
        exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
        call TriggerSleepAction( 2 )
        set udg_Tips_On[1] = udg_Tips_On[1]
        set udg_Tip1 = "|c37585252Cutting Corners In This Map is for noobs, just be patient because this map is so pro most mazers can't even rush it!!!"
        call TriggerSleepAction( 2 )
        call DisplayTimedTextToForce( GetPlayersAll(), 5.00, udg_Tip1 )
        call TriggerSleepAction( 10.00 )
        set udg_Tips_On[1] = "Tips_On[2]"
        set udg_Tip2 = "|c47657585Have fun with this, because I took a long time to make it, and it has a lot of commands.  Press F9 for commands!!!"
        call TriggerSleepAction( 2 )
        call DisplayTimedTextToForce( GetPlayersAll(), 5.00, udg_Tip2 )
        call TriggerSleepAction( 20.00 )
        set udg_Tips_On[1] = "Tips_On[3]"
        set udg_Tip3 = "|c35758552Press F9 for a list of awesome commands and information."
        call TriggerSleepAction( 2 )
        call DisplayTimedTextToForce( GetPlayersAll(), 5.00, udg_Tip3 )
        set udg_trigger_queue = GetTriggeringTrigger()
        call TriggerSleepAction( 2 )
        call QueuedTriggerAddBJ( GetTriggeringTrigger(), false )
        call QueuedTriggerRemoveBJ( GetTriggeringTrigger() )
        call TriggerSleepAction( 0.50 )
        call DestroyTrigger( GetTriggeringTrigger() )
        call DisableTrigger( GetTriggeringTrigger() )
        set bj_forLoopAIndex = bj_forLoopAIndex + 1
    endloop
endfunction

//===========================================================================
function InitTrig_Text_3 takes nothing returns nothing
    set gg_trg_Text_3 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Text_3, Player(0), "tips on", true )
    call TriggerAddAction( gg_trg_Text_3, function Trig_Text_3_Actions )
endfunction

Edit: Sorry if I did something wrong because I got no sleep last night. :(

Edit #2: Yes this trigger does work because it saved correctly.

_________________
My Websites:

Spoiler:
http://Ghost4942.webs.com, http://wc3gamer.forumcircle.com


Top
 Profile  
 
PostPosted: July 26th, 2009, 7:26 pm 
Offline
Member

Joined: April 12th, 2007, 2:43 am
Posts: 54
Location: STALKER!!!
Why are you looping and showing the messages to everyone?

If you want only tips to show the triggering player, then just remove the loop and change All Players to GetTriggerPlayer()

_________________
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!


Top
 Profile  
 
PostPosted: July 26th, 2009, 7:49 pm 
Offline
Spice Pirate
User avatar

Joined: January 29th, 2009, 5:35 pm
Posts: 949
Location: Canada
Title: LHC
Would it not be better to do something like... Make a string array for the tips, and have a timer that chooses a random number within range of the array, and shows that to everyone?

_________________
Spoiler:
xkiska wrote:
BARTIMEAUS is more understandable then u
Senethior459 wrote:
Wow, Dream Theatre reminds me of Dragonforce, but with real skill.
Ozzapoo wrote:
We laughed, we cried. Trashed.
Quote:
FatherSpace: You don't find smart chicks hawt?
GeorgeMots: not anymore, im fed up with that kind of girls
FatherSpace: lol
FatherSpace: What happened?
GeorgeMots: most smart girls find out that i date/do/see other girls....
FatherSpace: ...
FatherSpace: So monogamy is your enemy?
Quote:
Bartimaeus: Hmm, well, I hope my sister hasn't been kidnapped.
FatherSpace: What happened, Bart?
Bartimaeus: She walked out of the house saying that she was going over to some friends, and it's been like two hours, and my mom is trying to get a hold of her, which she's been unable to.
Bartimaeus: I can also hear three car alarms going off.
GeorgeMots: how old is she?
Bartimaeus: I haven't a clue. Probably 17.
UndeadxAssassin: wut
AbusivePie: You don't know how old your sister is?
Bartimaeus: Nope.
UndeadxAssassin: Epic fail
GeorgeMots: is she cute??
Quote:
Bartimaeus: So, uh, how about you get into the Christmas spirit and put that avatar on before I do it myself and take away your bloody avatar-changin' rights?
Quote:
UndeadxAssassin: If I thought of a random one...
UndeadxAssassin: Like....
UndeadxAssassin: I'll get back to you on that


Top
 Profile  
 
PostPosted: July 27th, 2009, 1:00 am 
Offline
Member

Joined: April 12th, 2007, 2:43 am
Posts: 54
Location: STALKER!!!
FatherSpace wrote:
Would it not be better to do something like... Make a string array for the tips, and have a timer that chooses a random number within range of the array, and shows that to everyone?


Well, it depends, really, on how he wants the tips to show up :-/ Right now, we don't know how he wants it.

_________________
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!


Top
 Profile  
 
PostPosted: July 27th, 2009, 4:37 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
SEVION is an idiot, dont listen to his bull shit.

jass-triggers-f4/jass-question-or-jass-request-here-t9401-80.html

jass-triggers-f4/tutorial-efficient-jass-composing-intermediate-level-t9017-10.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)