does anyone know what vsay teamobjective, vtarget, telltarget do. those commands are unknown to me though i think some of them have to do with targets, and bots.
Hi everybody, Im new to this page. My name is Willy, i have been reading the scrips and i think they are pro, when i play counter-strike i have many scrips too, but it took me a while to understand the quake3 scrips anyways, this is my first scrip and i'm not sure if i did it right so i hope you guys may check it out and help me fix my errors, the one i think that might be wrong is the force01 and force02 which i have no idea how to set it up, i got those number from the C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\base\forcecfg folder so i'm not sure if i did it right or not THX!! for l@@king at it and help me fix any problem that i might do wrong =D
//name, key, forcepower changer
set name1 "vstr name01; vstr unbkey; vstr key01; vstr force01; vstr say01"
set name2 "vstr name02; vstr unbkey; vstr key02; vstr force02; vstr say02"
set name01 "name l337_^1SiTH"
set name02 "name l337_^4JeDi"
set unbkey "unbind C; unbind ALT; unbind F"
set key01 "bind C "+force_lighting"; bind ALT "+force_drain"; bind F "+force_grip""
set key02 "bind C "force_heal"; bind ALT "force_absorb"; bind F "force_distract""
set force01 "forcepowers 7-2-031330330000031322"
set force02 "forcepowers 7-1-330323000030000332"
set say01 "echo ^1Dark_Force_Enabled"
set say02 "echo ^4Light_Force_Enabled"
bind F2 "vstr name1"
bind F3 "vstr name2"
oh ya i'm also kinda new to Jedi Outcast, i just start playing it last friday so i'll be cOo if you guys can tell me what server you guys go on so i can play with you guys some time! when i play i just go to free for all on the type and i see which server has some good ping and lots of people and i go there, sometimes i go to supercomputers, sometimes i go to DKD server, and sometimes i go to the cassendra one and i also went to the servers too! hope i can have a chance to duel with you guys some time.
Darkside has some really good no force dueling servers & they just put up some TFFA servers too.
cOo!!!! whats their i'll see you on friday, cus my mom don't let me play on weekdays :rolleyes: :( but anyways thx for telling me the servers to play with :D
the ^8 and ^0 don't make it black when you press Tab (scores), some people have it black there, that's what we're trying to find out ;)
Ok, I won't babble, here's just a small point.
If the moves are "So easy" to do, then why script them in the first place. There's more honour in dying a n00b than winning as a scripter.
its cuz the black doesn't work for names . it works for normal text though. i know ^0 works better than ^8. cuz ^8 doesn't work for me
Originally posted by Hybrid-Halo
Ok, I won't babble, here's just a small point.
If the moves are "So easy" to do, then why script them in the first place. There's more honour in dying a n00b than winning as a scripter.
scripts don't help . even with the most wicked scripts a newbs still a newb. scripts just look coo
Originally posted by Dracofyre
To add to your list of binds here's mine. X is whatever key you wanna use.(end rant)
bind X say"Your having problems? Well first go to your console, and type quit. That should fix everything."
You'd be surprised how often that works. MUAHAHAHAHA stupid newbies.
???
"quit" command not recognized.
I don't get it. HELP ME!!!!!
j/k!
the one i think that might be wrong is the force01 and force02 which i have no idea how to set it up, i got those number from the C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\base\forcecfg folder so i'm not sure if i did it right or not THX!! for l@@king at it and help me fix any problem that i might do wrong =D
Change forcepowers/alignment:
seta forcempowers a-b-cdefghijklmnopqrst
a=forcelevel: 7-jedimaster 6-jediknight 5-jediguardian
b=alignment: 1-light 2-dark
c-t=individual forcepowersettings: 0-no force 1-lvl1 2-lvl2 3-lvl3
c=Heal
d=Jump
e=Speed
f=Push
g=Pull
h=Mind Trick (L)
i=Grip (D)
j=Lightning (D)
k=Dark Rage (D)
l=Protect (L)
m=Absorb (L)
n=Team Heal
o=Team Energize
p=Drain (D)
q=Seeing
r=Saber Attack : SPECIAL: if you place value 5 here, you gain 2 additional stances.
s=Saber Defend
t=Saber Throw
Note:This only changes your force configuration after you have respawned. Also your setup screen may also not change from the old setting even though you already have.
ohHHHHH i get it now so you put seta forcempowers in the place it has force01. iciciccic thx for helping me egg ur cOo
so in the end the scrip is suppose to look like this:
//name,key and forcepower changer
set name1 "vstr name01; vstr unbindkey; vstr key01; vstr force01; vstr cchange01; vstr say01"
set name2 "vstr name02; vstr unbindkey; vstr key02; vstr force02; vstr cchange02; vstr say02"
set name01 "name ^1DanTE's%WiLL!"
set name02 "name ^1DanTE's%WiLL!"
set unbindkey "unbind "C"; unbind "ALT"; unbind "F""
set key01 "bind C "+force_lightning"; bind ALT "+force_drain"; bind F "+force_grip""
set key02 "bind C "force_heal"; bind ALT "force_absorb"; bind F "force_distract""
set force01 "seta forcepowers 7-2-031330330000031322; forcechanged"
set force02 "seta forcepowers 7-1-330323000030000332; forcechanged"
set cchange01 "color1 0"
set cchange02 "color1 4"
set say01 "echo ^1Dark_Force_Enabled"
set say02 "echo ^4Light_Force_Enabled"
bind F2 "vstr name1"
bind F3 "vstr name2"
did i do it right? oh and i also have this scrip that i used to make it work but i don't know what i did, it dosn't work no more :( here i'll show you :
// useall
set use_all "use_sentry; vstr use_all2"
set use_all2 "use_field; vstr use_all3"
set use_all3 "use_bacta; vstr use_all4"
set use_all4 "use_seeker"
bind E "use_all"
help willy... willy stuck :(
sorry typo in last post: theres no m in forcepowers
as for the 2nd script, i dunno what's wrong with it, sorry. Do you have all 4 inventry pick ups?
EDIT: hmm seems you got it fixed the typo already never mind
oh... so for the second one, you need the iteam to make it work... hmmm thats weird alright i'll give it a try thx egg for helping me!
Originally posted by lllKyNeSlll
its cuz the black doesn't work for names . it works for normal text though. i know ^0 works better than ^8. cuz ^8 doesn't work for me
if you would of read the 'last' pages of this thread then you'd know more than one person has seen people use black names, there IS a way...'we' just don't know it...
anyways, where is Maximus =/ haven't seen his face here for a while, if you do stop by here and see this message, tell me this
how to have spaces in names when used as a script ? like in-game I can have the Five Star but when I script it it has to be the_Five_Star :( and if I don't use the _ then the scripted name the Five Star would look like this --> the
meaning, everything after the space wouldn't bee seen in-game...
instead of using name the Five Star try replacing it with set name the Five Star.
See if it works.
Originally posted by remark 666
anyways, where is Maximus =/ haven't seen his face here for a while, if you do stop by here and see this message, tell me this
how to have spaces in names when used as a script ? like in-game I can have the Five Star but when I script it it has to be the_Five_Star :( and if I don't use the _ then the scripted name the Five Star would look like this --> the
meaning, everything after the space wouldn't bee seen in-game...
Yeah, what Egg said should work. I made a script for this for NemoX & posted it a few pages back. Let me know if you can't find it & I'll dig it up again.
the problem is... it's for a name scrolling script, I don't want it to set my name every time I scroll through ALL the names
here is my script as it stands
// Name Scroll
set UseName "vstr Name01"
set NextName "vstr Name02"
set PreviousName "vstr Name07"
set Name01 "set UseName name ^7the^5F^7ive^5S^7tar; set PreviousName vstr Name10; set NextName vstr Name02; echo ^7the^5F^7ive^5S^7tar"
set Name02 "set UseName name ^5the^7F^5ive^7S^5tar; set PreviousName vstr Name01; set NextName vstr Name03; echo ^5the^7F^5ive^7S^5tar"
set Name03 "set UseName name ^1|:|^5R^7e^5M^7a^5R^7k^1|:|; set PreviousName vstr Name02; set NextName vstr Name04; echo ^1|:|^5R^7e^5M^7a^5R^7k^1|:|"
set Name04 "set UseName name ^7{^5holy^7.^5snip3r^7}; set PreviousName vstr Name03; set NextName vstr Name05; echo ^7{^5holy^7.^5snip3r^7}"
set Name05 "set UseName name ^0.BlackSunOverMidland.; set PreviousName vstr Name04; set NextName vstr Name06; echo ^0.BlackSunOverMidland."
set Name06 "set UseName name ^7|-^1D^7eath^1.^7b^1EAD^7-|; set PreviousName vstr Name05; set NextName vstr Name07; echo ^7|-^1D^7eath^1.^7b^1EAD^7-|"
set Name07 "set UseName name ^1De^7:^1Vadasy^7__; set PreviousName vstr Name06; set NextName vstr Name08; echo ^1De^7:^1Vadasy^7__"
set Name08 "set UseName name ^7|^1JOR^7|^4remark^7|^1666^7|; set PreviousName vstr Name07; set NextName vstr Name09; echo ^7|^1JOR^7|^4remark^7|^1666^7|"
set Name09 "set UseName name ^4@TLG@the^5F^4ive^5S^4tar; set PreviousName vstr Name08; set NextName vstr Name10; echo ^4@TLG@the^5F^4ive^5S^4tar"
set Name10 "set UseName name ^2>TTC<_the^5F^2ive^5S^2tar; set PreviousName vstr Name09; set NextName vstr Name01; echo ^2>TTC<_the^5F^2ive^5S^2tar"
bind F11 vstr "UseName"
bind F10 vstr "NextName"
bind F12 vstr "PreviousName"
To clear some questions that have been asked (perhaps already answered, don't know, only had patience to read through first 6 pages):
1) seta sets an archived variable; that is, the variable is saved in your jk2mpconfig.cfg upon exiting the game, and will still be there when you restart the game. set just sets a plain variable with no flags; it is lost when the game is restarted.
2) Lightning speed depends solely on the client's fps. If you have 80 fps, your lightning will be four times as fast as if you had 20 fps (of course that means your force pool will drain 4 times as fast as well). The default fps cap (variable com_maxfps) is 85; by increasing it further (say to 200) your lightning speed can be increased if your machine is able to give out more than 85 fps (which should be no problem for contemporary 1000+ MHz CPUs and GeForce 4's and likes). As of 1.04, this is the case in both single player and multiplayer.
Also I saw someone (playing recently) who was combining kick and backsweep - they would first render the opponent immobile by kicking them, then do a quick spin. True Darth Maul vs Qui-Gon Jinn style.
Nevermind, just use the one below. Have fun!
Remark,
Here's the script I made for NemoX altered for you to edit as you please:
set use_name "vstr Name1"
set nxt_name "vstr Name2"
set prv_name "vstr Name3"
set Name1 "set use_name vstr Remark666name-01; set prv_name vstr Name3; set nxt_name vstr Name2; echo ^1Name One"
set Name2 "set use_name vstr Remark666name-02; set prv_name vstr Name1; set nxt_name vstr Name3; echo ^2Name Two"
set Name3 "set use_name vstr Remark666name-03; set prv_name vstr Name2; set nxt_name vstr Name1; echo ^3Name Three"
set Remark666name-01 "set name ^1Name One"
set Remark666name-02 "set name ^2Name Two"
set Remark666name-03 "set name ^3Name Three"
bind 3 vstr use_name
bind 4 vstr nxt_name
bind 2 vstr prv_name
Originally posted by remark 666
anyways, where is Maximus =/ haven't seen his face here for a while, if you do stop by here and see this message, tell me this
Muahahahahahahaha......................Im Back!
Ok...
When I do this in my script:Sith Maximus
I get this in the game:Sith Maximus
I do not use any _ in the name.
Keep in mind these things:
I wite all my scripts in notepad.
I delete my jk2mpcfg.cfg before I load a session of JK2 or after I change a or add script or name.
I always go into a game as a Padawan andthe exec my files.
I never write scripts while the game is in a window.
Thats all the help that I can give you. But I will stop by and see the progress. Seeya!
i didnt read the other posts, but i would like the see this floating script that people use...
Well its not a script just a Jedimod/Jediplus/Omnimod command.
In console:
/secretissafewithus
Thats it.
great to see you back, I need big help on this next one =/
here is how it goes:
// Clan Name Scroll
set UName "vstr Name1"
set NName "vstr Name2"
set PName "vstr Name9"
set Name1 "set UName name ^2>TTC<_the^5F^2ive^5S^2tar; say ^2Turtle ^2Turtle! ^2T^1he ^2T^1urtle ^2C^1lub; set PName vstr Name9; set NName vstr Name2; echo ^2>TTC<_the^5F^2ive^5S^2tar"
set Name2 "set UName name ^4@TLG@the^5F^4ive^5S^4tar; say ^4Get ^4ready ^4For ^4The ^Pain!; set PName vstr Name1; set NName vstr Name3; echo ^4@TLG@the^5F^4ive^5S^4tar"
set Name3 "set UName name ^3[^2F^5OO^6D^3]^3CHEESE^1.^3TACO; say ^5Food ^6is ^3Good!!!; set PName vstr Name2; set NName vstr Name4; echo ^3[^2F^5OO^6D^3]^3CHEESE^1.^3TACO"
set Name4 "set UName name ^7|^1JOR^7|^4remark^7|^1666^7|; say ^1Jedis ^4of ^4the ^1Old ^1Republic!; set PName vstr Name3; set NName vstr Name5; echo ^7|^1JOR^7|^4remark^7|^1666^7|"
set Name5 "set UName name ^3<|>^4DOF^3<|>^4pum^3B^4a; set PName vstr Name4; set NName vstr Name6; echo ^3<|>^4DOF^3<|>^4pum^3B^4a"
set Name6 "set UName name ^2<>^3jeDIE^2<>^5s.u.p.r.e.m.e.; set PName vstr Name5; set NName vstr Name7; echo ^2<>^3jeDIE^2<>^5s.u.p.r.e.m.e."
set Name7 "set UName name ^1|-|^5D.N.A.^1|-|^5Double^1Helix; set PName vstr Name6; set NName vstr Name8; echo ^1|-|^5D.N.A.^1|-|^5Double^1Helix"
set Name8 "set UName name ^7]-^4JOR^7-[^4remark^7*; say ^7Jedis ^4of ^4the ^7Old ^7Republic!; set PName vstr Name7; set NName vstr Name9; echo ^7]-^4JOR^7-[^4remark^7*"
set Name9 "set UName name []|^1JOR^7|[]the^5F^7ive^5S^7tar; set PName vstr Name8; set NName vstr Name1; echo []|^1JOR^7|[]the^5F^7ive^5S^7tar"
bind F7 vstr "UName"
bind F8 vstr "NName"
bind F6 vstr "PName"
it's a script to scroll through my clan names (I have one for regular names too), what I want it to do:
say a message after a specific name is loaded, example: ^7Jedis ^4of ^4the ^7Old ^7Republic! *AFTER* ^7]-^4JOR^7-[^4remark^7* is loaded
what it does right now:
tells the message when I scroll through the names, without me activating that name =/
so what I want done is I scroll through the names...the special messages doesn't show up, I select a name...the specific message appears AFTER that name is set
I hope you get my weird explanation and mostly, I hope someone can help me :)
btw. it was my idea to do /secretissafewithus, Dest liked it so we implimented it ;)
Originally posted by remark 666
I need big help on this next one =/
it's a script to scroll through my clan names (I have one for regular names too), what I want it to do:
say a message after a specific name is loaded, example: ^7Jedis ^4of ^4the ^7Old ^7Republic! *AFTER* ^7]-^4JOR^7-[^4remark^7* is loaded
what it does right now:
tells the message when I scroll through the names, without me activating that name =/
so what I want done is I scroll through the names...the special messages doesn't show up, I select a name...the specific message appears AFTER that name is set
I hope you get my weird explanation and mostly, I hope someone can help me :)
btw. it was my idea to do /secretissafewithus, Dest liked it so we implimented it ;)
Use the same format as the one I gave you, but slightly rename parts so that the two scripts won't interfere with each other if you plan on using them at the same time, then add the "say" commands in the section as follows:
set use_name "vstr Name1"
set nxt_name "vstr Name2"
set prv_name "vstr Name3"
set Name1 "set use_name vstr Remark666name-01; set prv_name vstr Name3; set nxt_name vstr Name2; echo ^1Name One"
set Name2 "set use_name vstr Remark666name-02; set prv_name vstr Name1; set nxt_name vstr Name3; echo ^2Name Two"
set Name3 "set use_name vstr Remark666name-03; set prv_name vstr Name2; set nxt_name vstr Name1; echo ^3Name Three"
set Remark666name-01 "set name ^1Name One; say saying number one"
set Remark666name-02 "set name ^2Name Two; say saying number two"
set Remark666name-03 "set name ^3Name Three; say saying number three"
bind 3 vstr use_name
bind 4 vstr nxt_name
bind 2 vstr prv_name
If you need some time between the name change & when you want it to say your phrases you could also add in a "; wait 100" line & adjust the number to your liking. This is similar to the one I made where you can have a scrolling script that will change the name, model, saber color, & do a taunt. It can be adapted many ways to do more or less commands at the press of the use key.
i need sombody to show me how to bind the blue style upper cut move to x, so when im running i dont have to duck then do the uppercut and it will be more of a fluid motion so it makes it look like i never stopped running and did a uppercut
please explain in detail cause i dont know about scripts
havent been here in a loooooooooong time, im surprised to see this thread's a sticky now. is jaradaj even here still? and i guess no one posts anymore anti-script messages anymore, did they finally realize how stupid they sound and what a great idea sharing these scripts were?
anyways, many thanks again to all those who share. some people look at these as ways to be l33t and look cool online. those who dont and choose to teach everyone how to script really help the jk2 community!
the running lunge can be performed without scripts by timing to press crouch, and attack at the sametime whilst holding running, you can always try toggle walk just before lunging to make it easier.
As a script, its quite simple and is only 1 of prolly 2 useful combat script that actualy helps the user.
bind x "+attack; +forward; +movedown"
thanks a lot ToppDog, everything came out just the way I wanted!
3 useful scripts someone might want
// Suicide
set kamikaze "say ^1KAMIKAZE!!!!! ^5*doh*; kill"
bind H "vstr kamikaze"
//Music OFF
bind ] "music off"
//Exec AutoExec.cfg
bind \ "exec autoexec.cfg"
what I need now is a screenshot button, preferably without the text [b]seenshot##.jpg[/] and without the console or hud...possible ?
what my clan-name script looks like now (if someone needs ref. material):
// Clan Name Scroll
set use_name "vstr Name1"
set nxt_name "vstr Name2"
set prv_name "vstr Name3"
set Name1 "set use_name vstr name-01; set prv_name vstr Name9; set nxt_name vstr Name2; echo ^2>TTC< ^2the^5F^2ive^5S^2tar"
set Name2 "set use_name vstr name-02; set prv_name vstr Name1; set nxt_name vstr Name3; echo ^4@TLG@the^5F^4ive^5S^4tar"
set Name3 "set use_name vstr name-03; set prv_name vstr Name2; set nxt_name vstr Name4; echo ^3[^2F^5OO^6D^3]^3CHEESE ^3TACO"
set Name4 "set use_name vstr name-04; set prv_name vstr Name3; set nxt_name vstr Name5; echo ^7|^1JOR^7|^4remark^7|^1666^7|"
set Name5 "set use_name vstr name-05; set prv_name vstr Name4; set nxt_name vstr Name6; echo ^3<|>^4DOF^3<|>^4pum^3B^4a"
set Name6 "set use_name vstr name-06; set prv_name vstr Name5; set nxt_name vstr Name7; echo ^2<>^3jeDIE^2<>^5s.u.p.r.e.m.e."
set Name7 "set use_name vstr name-07; set prv_name vstr Name6; set nxt_name vstr Name8; echo ^1|-|^5D.N.A.^1|-|^5Double^1Helix"
set Name8 "set use_name vstr name-08; set prv_name vstr Name7; set nxt_name vstr Name9; echo ^7]-^4JOR^7-[^4remark^7*"
set Name9 "set use_name vstr name-09; set prv_name vstr Name8; set nxt_name vstr Name1; echo []|^1JOR^7|[]the^5F^7ive^5S^7tar"
set name-01 "set name ^2>TTC< the^5F^2ive^5S^2tar; color1 3; say ^2Turtle ^2Turtle! ^2T^1he ^2T^1urtle ^2C^1lub"
set name-02 "set name ^4@TLG@ the^5F^4ive^5S^4tar; say ^4Get ^4ready ^4For ^4The ^Pain!"
set name-03 "set name ^3[^2F^5OO^6D^3]^3CHEESE ^3TACO; say ^5Food ^6is ^3Good!!!"
set name-04 "set name ^7|^1JOR^7|^4remark^7|^1666^7|; say ^1Jedis ^4of ^4the ^1Old ^1Republic!"
set name-05 "set name ^3<|>^4DOF^3<|> ^4pum^3B^4a"
set name-06 "set name ^2<>^3jeDIE^2<>^5s.u.p.r.e.m.e."
set name-07 "set name ^1|-|^5D.N.A.^1|-|^5Double^1Helix"
set name-08 "set name ^7]-^4JOR^7-[^4remark^7*; say ^7Jedis ^4of ^4the ^7Old ^7Republic!"
set name-09 "set name []|^1JOR^7|[]the^5F^7ive^5S^7tar"
bind F7 vstr use_name
bind F8 vstr nxt_name
bind F6 vstr prv_name
screenshot without text displayed:
bind x "screenshot silent"
also without HUD
bind x "set cg_draw2d "0"; wait; screenshot silent; wait; set cg_draw2d "1""
thanks egg, I'm gonna try that.
Ok, I am not sure if this has already been posted but I will post what I have just found out about black letters in your name. I went to a server where a guy new how to do it and he was kind enough to tell me how. To get black letters it's:
^^0InsertName
The only annoying thing about this option is that there will be a ^ in white before your name, you will see what I mean after u have tried it. Hopefully someone will figure out a way to get rid of it.
When u are chatting your name will be in black but when u press tab your name will appear as such 0InsertName
Enjoy! ;)
I knew there was a way, I'm going to try it, thanks so much!
there is a way to have your name as a blank space, I don't have the time to try it, anyone know how ?
try typing a colour code, eg. ^1.
If this doesnt work, try adding a space after it.
I havent tried this and i'm just guessing
Yeah, that will work. Actually any color will work plus the space.
i just use bind (key) say (whatever you want to say)
i do it like shift6+1234567890 thats how i add color
SO I tried all the stuff posted about opening in notepad or editing in notepad and I can't get it to allow me to exec the cfgs I save.....I noticed that the configs I save still look like notepad files. Is there some special way to change them to config files? Do I have to use the force or something.
-one confused jedi
you have saved the configs as
configname.cfg.txt , which is still a txt file.
there's 2 ways to change this, first when you save a file in notepad, you'll notice a tab underneath the name. Select All Files instaed of Text Files. then type in the space for the name [name].cfg
or just save your config as a txt file then go to your window explorer, enable viewing file extensions in the View Options and just change the .txt extension to .cfg
the black name doesn't work when you press Tab, only when you type...that's easy to do...so ^^8 doesn't do it =/ nether does ^^0
what else is left to script anyhow ?anything interesting ?
Ok, I'm completly confused. I'm a total newbe. Can some one give me exactly how to make a script please? I mean, step by step.
-Iynx
Sorry, disreguard my first post, I figured it out. Here's to all the people how don't like scripts. People bought this game to have fun, the designers made this game so you could have fun, who cares if they cheat, they're doing exactly what the game is for. Having fun.
-Iynx
hi, excuse me. does anyoone know the script that allows you to do blue lunge from medium stance and then switch you back to medium stance immediately once I lunge? thanks
version 1.04 disabled saberattackcycle being used more than once in scripts so there can be no such script in 1.04. for previous versions, there are huge sections regarding these types of scripts in the first few pages.
bind x "saberattackcycle; saberattackcycle; wait; +attack; +forward; +movedown; +wait; saberattackcycle"
crap what you say... I for myself use a script that lunges out of red an switches back... no problem at all... in 1.04 pure servers
Making a looping script, say i wanted to make my name or sbaer color loop untill i un-toggle a button. what would the scripting look like?
I want to make it so that when i hit a button my name or sabercolor changes and keeps changing untill i press the button again.
~ thnx in advance
Originally posted by Derogate
Making a looping script, say i wanted to make my name or sbaer color loop untill i un-toggle a button. what would the scripting look like?
I want to make it so that when i hit a button my name or sabercolor changes and keeps changing untill i press the button again.
~ thnx in advance
I'm not sure that the looping part of it can be done in the manner you desire. What I mean is, I'm not sure you can make it so you press a button ONCE & the script will keep running continuously until you press a button AGAIN to turn it off.
But, it could work very easily as a continuous toggle script where you PRESS & HOLD the key to cycle through the commands & then STOP PRESSING when you want it to stop.
There can be many variations of this type of script that are pretty cool too. You could have 2 buttons linked to each other that cycle through the commands forward & backward. More advanced scripts will let you toggle through your choices forward & backward before choosing one to execute.
We need to know what you want to use it for. The description of the script you want would lag you out of most servers regardless if you had to hold one button down or use on/off buttons.