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:
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.
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.
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?
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??
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?
UndeadxAssassin: If I thought of a random one... UndeadxAssassin: Like.... UndeadxAssassin: I'll get back to you on that
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!!