|
Scripts
|
|
08 Jul 10, 06:53PM
Post: #61
|
|||
|
|||
|
RE: Scripts
lol
it's common, believe it or not. |
|||
|
09 Jul 10, 02:01AM
Post: #62
|
|||
|
|||
|
RE: Scripts
With all the people making a different attack button for each gun (wtf) it would probably work as well..
|
|||
|
09 Jul 10, 10:29AM
Post: #63
|
|||
|
|||
|
RE: Scripts
//-- rolldie command to see who goes first in matches
alias rolldie [ if (&& (> (listlen $arg1) 0) (> (listlen $arg2) 0) ) [dieteams1 = $arg1; dieteams2 = $arg2] [dieteams1 = CLA; dieteams2 = RVSF]; if (rnd 2) [dieteams = $dieteams1] [dieteams = $dieteams2]; sleep 100 [say Random Die Roll - team $dieteams was chosen!]] by DES|R4zor |
|||
|
09 Jul 10, 10:33AM
Post: #64
|
|||
|
|||
|
RE: Scripts
For noobs coop editing official maps on public servers :
Code: alias lol [ |
|||
|
09 Jul 10, 01:45PM
Post: #65
|
|||
|
|||
|
RE: Scripts
R4zor, you wouldn't believe how efficient it is.
|
|||
|
09 Jul 10, 02:57PM
Post: #66
|
|||
|
|||
|
RE: Scripts
Ragequit with style..i need that =)
|
|||
|
09 Jul 10, 03:53PM
Post: #67
|
|||
|
|||
|
RE: Scripts
Simple slap script i wanted to make:
Code: slap = [say slaps ($arg1) with a rusty salmon]Thanks to R4 for putting up with me and making it :D |
|||
|
09 Jul 10, 04:09PM
Post: #68
|
|||
|
|||
|
RE: Scripts
In 1.1 you'll be able to do the /me command, so
Code: slap = [me slaps ($arg1) with a disco stick] |
|||
|
09 Jul 10, 04:34PM
Post: #69
|
|||
|
|||
|
RE: Scripts
The rolldie command:
rnd 2 will produce either 0, 1, or 2. The context "if (rnd 2)" makes it interpreted as either 1 or 0. When a number greater than 1 is put to a binary test, it is called "1". "if (rnd 2)" is generating such a binary test, but producing 3 possible numbers. Whatever is picked as $arg1 will be selected 66% of the time, while the second argument will only be picked 33% of the time. Test it! |
|||
|
10 Jul 10, 02:11AM
Post: #70
|
|||
|
|||
|
RE: Scripts
I got RVSF 15+ times with (rnd 1) - how can we solve that
|
|||
|
10 Jul 10, 02:22AM
Post: #71
|
|||
|
|||
|
RE: Scripts
Raise the probabilities for CLA?
|
|||
|
10 Jul 10, 02:23AM
Post: #72
|
|||
|
|||
| RE: Scripts | |||
|
10 Jul 10, 02:29AM
(This post was last modified: 10 Jul 10 02:47AM by Gibstick.)
Post: #73
|
|||
|
|||
|
RE: Scripts
Code: rvsforcla = [rnd 8] |
|||
|
10 Jul 10, 02:49AM
Post: #74
|
|||
|
|||
|
RE: Scripts
Good thinking; lets add it in soo.
Code: //-- rolldie command to see who goes first in matches |
|||
|
10 Jul 10, 04:12AM
(This post was last modified: 10 Jul 10 04:12AM by DrauL.)
Post: #75
|
|||
|
|||
|
RE: Scripts
Nuke script for those MW2 fans wanting to disconnect in style:
Code: nuke = [say "Tactical Nuke Incoming!"; sleep 200 [say "5"]; sleep 1200 [say "4"]; sleep 2400 [say "3"]; sleep 3400 [say "2"]; sleep 4400 [say "1"]; sleep 4600 [disconnect] ]Just type /nuke |
|||
|
10 Jul 10, 02:41PM
Post: #76
|
|||
|
|||
|
RE: Scripts
why do you delay additional 200 millis from #3 onwards? And then only 200 before "0"?
If you're going to count seconds then that'd be 1000 millis, or just go with 500 - but changing pace?!?! Are you a drummer? (haha, old musician joke). Code: nuke = [ |
|||
|
10 Jul 10, 02:46PM
Post: #77
|
|||
|
|||
| RE: Scripts | |||
|
10 Jul 10, 02:57PM
Post: #78
|
|||
|
|||
|
RE: Scripts
@Gibstick:
D: I just realized, I made a really lame mistake. (rnd 2) produces a random number between 0 and 2, including 0 but not including 2. This means it will only produce 1 or 0. So... Your original script has no problems -- only my judgment. XD sorry. |
|||
|
10 Jul 10, 03:12PM
Post: #79
|
|||
|
|||
|
RE: Scripts
NOOB!
|
|||
|
10 Jul 10, 07:38PM
(This post was last modified: 10 Jul 10 07:45PM by Ronald_Reagan.)
Post: #80
|
|||
|
|||
RE: Scripts
(01 Jul 10 06:48PM)DES|V-Man Wrote: Rave - Changes light levels and fog colors to simulate a rave atmosphere! I downloaded this script awhile back, and I have been messing around with it. I saw your music commmand, I looked through the reference (looked=used the find command) for the command music, it I didn't see the command. Is there a description for it? More about the script, in the music command, it has a argument for command, Code: (music [$musicpath] [ms length] [command]) |
|||
|
11 Jul 10, 02:52AM
Post: #81
|
|||
|
|||
RE: Scripts
(10 Jul 10 02:41PM)flowtron Wrote: why do you delay additional 200 millis from #3 onwards? And then only 200 before "0"? I enjoy my crappyness. |
|||
|
11 Jul 10, 04:21AM
(This post was last modified: 11 Jul 10 04:22AM by Mael.)
Post: #82
|
|||
|
|||
RE: Scripts
![]() Any way around this "cannot redefine" stuff? I've been staring at the docs for an hour or so and can't figure it out. I'd like to be able to execute one command only when I'm on CLA team and another only if I'm dead. |
|||
|
11 Jul 10, 04:54AM
Post: #83
|
|||
|
|||
|
RE: Scripts
Post the scripts that your trying to use here.
|
|||
|
11 Jul 10, 05:37AM
Post: #84
|
|||
|
|||
|
RE: Scripts
R4zor helped me with it and I'm no longer getting that message, however the script is still not working properly.
Code: infection = [say "Infection mode enabled"; if (&& (= (curteam) 0) (= (alive) 0)) [changeteam]]The script is supposed to changeteam if a player is on CLA team and dead. It does that when I enter /infection but it needs to do it automatically and I need a way to loop it so it executes once every second or so. |
|||
|
11 Jul 10, 11:54AM
(This post was last modified: 11 Jul 10 11:54AM by Gibstick.)
Post: #85
|
|||
|
|||
|
RE: Scripts
Code: infecloop = [sleep 1000 (infection)] |
|||
|
11 Jul 10, 12:14PM
Post: #86
|
|||
|
|||
|
RE: Scripts
Code: infect = [if (> (listlen $arg1) 0) [alias infectmode $arg1]] |
|||
|
12 Jul 10, 01:55AM
(This post was last modified: 12 Jul 10 01:56AM by DES|V-Man.)
Post: #87
|
|||
|
|||
RE: Scripts
(10 Jul 10 07:38PM)Ronald_Reagan Wrote: (Rave) "[$musicpath]" should contain the path to a music file (ogg or wav) of your choosing (e.g., packages\audio\songs\Ronald_Reagan); "[ms length]" is how long you want the song to play for, in milliseconds; "[command]" is what (if anything) you want to happen when the song finishes playing. |
|||
|
12 Jul 10, 03:51AM
(This post was last modified: 12 Jul 10 04:10AM by Ronald_Reagan.)
Post: #88
|
|||
|
|||
|
RE: Scripts
Ok, thanks, I wasn't sure what that [command] was there for, I caught the rest.
Edit; then why is Code: music [packages/audio/songs/ac.ogg] [8400] |
|||
|
12 Jul 10, 04:30AM
Post: #89
|
|||
|
|||
|
RE: Scripts
:/
I know it's given me trouble in the past, but I can't remember exactly why. Definitely leave out the ".ogg" part. I believe (now that I'm actually using some brain cells) that the path should start in the "songs" folder. so: Code: music [ac] [8400] |
|||
|
12 Jul 10, 04:55AM
(This post was last modified: 12 Jul 10 04:56AM by Ronald_Reagan.)
Post: #90
|
|||
|
|||
|
RE: Scripts
That makes sense in a very confusing way. But you were right.
Btw, broken link for me. |
|||
|
« Next Oldest | Next Newest »
|




![[Image: cannotredefine.jpg]](http://img228.imageshack.us/img228/2791/cannotredefine.jpg)