for the second question, do
e2 Code:
@outputs LS:string #LS = LastSaid if(chatclk()&lastSpoke()==entity():owner()){ LS=lastSaid() if(LS=="If"){ Do stuff } }
Hey guys! Im back >: D.
Nah, i just want to ask you a couple of questions!
Okay, so i got this expression2, and i want it to run 4 different sounds, now since there is no wait command i used a timer, but the timer seems to trigger the E2 all the time, so instead of the sounds playing only once, they seem to keep playing because the timer is changing, i tried to use the trigger thingy. But no results. So i thought that some of you guys might know a "Wait" command, i know that the Wait command is not in the E2, because of various reason. But someone must know of a way to make the effect of the Wait command? (no results on Wiki)
Second of i would like to ask; When i get the Lastsaid() from the chat, how would look if it contained the word "if" (case-insensitive), the only thing i know off right now is how to find the "If" in chat, which means, that if i want it to trigger, i would have to write "If" instead of writing "if i am cool". (i tried to look at wiki, again no results)
Thirdly i would like to ask if there is somewhere (lua file, on the web etc) i can view ALL the commands of the E2 (The wiki doesent have them all).
I think i've heard something of a Lua file? Thanks in advance!
-Tasuit
for the second question, do
e2 Code:
@outputs LS:string #LS = LastSaid if(chatclk()&lastSpoke()==entity():owner()){ LS=lastSaid() if(LS=="If"){ Do stuff } }
Last edited by Donkie; 06-08-2009 at 06:36 AM. Reason: forgot a bracket :P
Hurr
working as intended.
Havent had time to test it, but by the looks of it, it only checks if the string is "If". i want it to check if the string contains If
About the Wait; I would really like to know this, since im facing a problem, any help appreciated, ill try and post some of my code so you can see it:
You see the problem is, instead of triggering the sounds once, it spams em, because the input T is changing (T is the Time of the timer)Code:if (BeginLoop) {soundPlay(2,0,"vo/Breencast/br_collaboration01.wav"), TRun = 1} if (T > 2 & T < 4) {soundPlay(3,0,"vo/Breencast/br_collaboration02.wav")} if (T > 4 & T < 6) {soundPlay(4,0,"vo/Breencast/br_collaboration03.wav")} if (T > 6 & T < 8) {soundPlay(5,0,"vo/Breencast/br_collaboration04.wav"), Reset = 1}
Last edited by Tasuit; 06-08-2009 at 10:08 AM.
Bookmarks