Posts: 335
Threads: 15
Joined: Aug 2011
15 Jul 12, 09:29PM
(This post was last modified: 20 Jul 12, 05:19PM by Link.)
A menu that allows you to select different names to use in game. Handy for people who use aliases.
(NOTE: Screenshot is of a early version of the script. All the "aliases" were changed to nicknames. I know, the image is poorly cropped, I tried my best to take a screenshot and make it into this. EDIT: It's all SKB's fault because of round menu corners.)
Akimbo Thread
Posts: 2,144
Threads: 38
Joined: Aug 2010
A similar concept...
n = [name (at $randomname (rnd 31))]
randomname = [ "Omegatron" "B}ShadowZ" "|LOL|Pwns" "|40+|KaBOOMZ" "Haxorus" "hax_et_lag" "Dragonite" "The_Mystic_{B}" "Pikachuuuu" "Metagross" "MasterChef" "OptimusCrime" "lolzatron" "SuperMashPros" "teh_pwnzor" "|ELITE|Panchito" "BlazingRage" "V-kachu" "boba_fett" "Fragtastic" "LightZ" "a_ninja" "ShadowStrike" "FunFlory" "SpamSlam_3000" "Alacrity" "Scipio" "Aquilon" "Zephyrus" "eXcaliBurN" "Brahmagupta"]
Then what I did when I opened AC was /bind n n
I guess there's a simpler way to do that (without the redundant n's), but I'm sure a more experienced coder can figure that out.
The "31" corresponds to the # of names listed.
I made this script following the model of another person's "random" script.
Posts: 335
Threads: 15
Joined: Aug 2011
15 Jul 12, 11:39PM
(This post was last modified: 16 Jul 12, 02:33AM by Link.)
(15 Jul 12, 10:50PM)ShadowFlameZ Wrote: random code
Nice!
EDIT: wtf LightZ is my alias. Take that out.
Posts: 2,144
Threads: 38
Joined: Aug 2010
Lol we discussed this before.
You had that after me ;).
Posts: 335
Threads: 15
Joined: Aug 2011
(16 Jul 12, 04:49AM)ShadowFlameZ Wrote: Lol we discussed this before.
You had that after me ;).
no I orginally used that to piss you off (i didnt you used that as an alias), but I decided not to do that
Posts: 2,144
Threads: 38
Joined: Aug 2010
Lol.
Whatevs fanboy.
Let's not make this thread go offtopic.
Posts: 560
Threads: 10
Joined: Jan 2011
You probably could've just used bot names or something instead to avoid any chance of these sort of conflicts.
Anyway, that's not the point.
Stop arguing, forum-goers, and make more cool scripts :D
Posts: 1,331
Threads: 44
Joined: Jun 2010
Quote:The "31" corresponds to the # of names listed.
[cubescript]n = [ name (at $randomname (rnd (listlen $randomname))) ][/cubescript]
Posts: 881
Threads: 74
Joined: Mar 2011
Hhaha update it so it has PaulMuadDib , there shall be moar!
Good job brah!
Posts: 2,144
Threads: 38
Joined: Aug 2010
(22 Jul 12, 04:44PM)Bukz Wrote: [cubescript]n = [ name (at $randomname (rnd (listlen $randomname))) ][/cubescript]
(15 Jul 12, 10:50PM)ShadowFlameZ Wrote: n = [name (at $randomname (rnd 31))]
What exactly is the difference? Just curious :)
Posts: 3,462
Threads: 72
Joined: Jun 2010
22 Jul 12, 09:32PM
(This post was last modified: 22 Jul 12, 09:32PM by Ronald_Reagan.)
You don't need to change the number when you add more names.
Although is listlen just SVN for right now?
Posts: 756
Threads: 53
Joined: Nov 2011
22 Jul 12, 10:16PM
(This post was last modified: 22 Jul 12, 10:17PM by Felix-The-Ghost.)
1.1.0.4 command.cpp Wrote:int listlen(char *s)
{
int n = 0;
whitespaceskip;
for(; *s; n++) elementskip, whitespaceskip;
return n;
}
...
COMMAND(listlen, ARG_1EST);
Posts: 3,462
Threads: 72
Joined: Jun 2010
23 Jul 12, 12:24AM
(This post was last modified: 23 Jul 12, 12:25AM by Ronald_Reagan.)
Huh, I kinda assume that all of the super useful features of AC CS are in SVN not 1104 :>