Posts: 40
Threads: 11
Joined: May 2012
I need a bit of help with my script...
bind F8 [ showmenu Prison_Break ]
newmenu Prison_Break
menuitem "Easy" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot 3 CLA best]
menuitem "Normal" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot 5 CLA best]
menuitem "Hard" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot 7 CLA best]
menuitem "Insane!" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot 20 CLA best]
menuitem "Random 1-10" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot (rnd 10) CLA best]
menuitem ""
menuitem "Prison Break By Tacky Man and [SODA] Santiagoz"
When the map is installed and stuff, the mode and map loads and it sends you to RVSF, but the bots will not apear on any of the difficulties.
Posts: 1,331
Threads: 44
Joined: Jun 2010
22 Jun 12, 06:34AM
(This post was last modified: 22 Jun 12, 06:51AM by Bukz.)
[cubescript]menuitem "Random 1-10" [team RVSF] [mode 7;map Prison_Break_TM] [addnbot (rnd 10) CLA best][/cubescript]
becomes:
[cubescript]menuitem "Random 1-10" [add2alias mapstartonce [ team RVSF; addnbot (+ (rnd 10) 1) CLA best ]; mode 7; map Prison_Break_TM][/cubescript]
everything within the 1st set of brackets "[]" is the 2nd argument of /menuitem
mapstartonce is a native alias that, if defined, is automatically executed on the next map load
[cubescript]menuitem "Prison Break By Tacky Man and [SODA] Santiagoz"[/cubescript]
becomes:
[cubescript]menuitem "Prison Break By Tacky Man and [SODA] Santiagoz" -1[/cubescript]
Reason being is that, currently, if you click on that menuitem cubescript will throw an unknown command error, the -1 as the 2nd argument of /menuitem forces that menuitem to only display the text, and have no action if clicked. Same goes for the:
[cubescript]menuitem ""[/cubescript]
for making a blank menuitem, instead, use:
[cubescript]menuitem "" -1[/cubescript]
...so that if they are ever clicked, cubescript won't spam the user with errors.
Posts: 40
Threads: 11
Joined: May 2012
22 Jun 12, 07:52AM
(This post was last modified: 22 Jun 12, 07:54AM by TackyMan.)
I got it fixed up added the autoexec and map into a compressed folder, typed up a README
BAM!
Thanks for the clarification! :D
Posts: 272
Threads: 17
Joined: Oct 2010
Now you can try adding menuitem colours. Ill let you figure out this one :)
Posts: 40
Threads: 11
Joined: May 2012
03 Jul 12, 04:55PM
(This post was last modified: 03 Jul 12, 05:11PM by TackyMan.)
I figured out that one too! Took a while, I think I released that version on Akimbo... cant remember...
I did now, lol.
Posts: 335
Threads: 15
Joined: Aug 2011
Posts: 740
Threads: 61
Joined: Jun 2011
Nice Job for a first script, im not very good at scripts, just the simple stuff :>
Posts: 2,144
Threads: 38
Joined: Aug 2010
*sigh* Link...
Quote:19. Do not post ”empty” or useless responses, such as just ”lol”, "+1", or ”cool.” Only post responses when you have something to contribute. The only exception to this rule is in the off-topic forum.
I think "I liek" falls into said category.
Ironically this was pointed out by none other than the beloved fredrikson of the Scandinavian heartland.
Also, Jg99, I find your bragging offensive. Thanks.
Anywho:
Tackyman, this script does look quite intriguing. I look forward to testing it out.
Posts: 272
Threads: 17
Joined: Oct 2010
He's not bragging o_0 . He's saying he can only do the simple stuff with scripts.
Posts: 40
Threads: 11
Joined: May 2012
Quote:He's not bragging o_0 . He's saying he can only do the simple stuff with scripts.
I do agree.
Quote:Tackyman, this script does look quite intriguing. I look forward to testing it out.
Thanks! It's an honor!
Quote:Nice Job for a first script, im not very good at scripts, just the simple stuff :>
After sitting on the PC staring at the cubescript page for 4 hours and nearly falling asleep, I'm surprised I couldn't of added more!
Posts: 2,144
Threads: 38
Joined: Aug 2010
Lol.
Failed sarcasm on my part.
It's just intriguing how every post jg makes is about himself.
But ignore me, I digress.
Posts: 40
Threads: 11
Joined: May 2012
04 Jul 12, 12:16AM
(This post was last modified: 04 Jul 12, 12:35AM by TackyMan.)
In text, you usually have to ad a smiley or lol to express sarcasm.
Alright, so this is the next map for the script:
Prison Break 2!
After that I'll do some themes like Prison Break: Quarantine, or Prison Break: Dungeon
First I have to finish this one! lol