Post: Quicker/Shorter way of using vstr strings! (1.12)
07-30-2011, 06:46 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey guys,ive decided to release this idea that i came up with when i was making my second clantag editor,and it actually worked out,had all 4 digets,and less lines of coding used.so this is a quicker way if your trying to make a big menu or other stuff (e.g infections,clantag editor,class reNamer,rank customizer,prestige toggle etc) so enjoy this little tutorial and hope it comes handy for any of your 1.12/1.11 patches.

Key: How to Use vstr (skip this if known)
how to shorten your strings
how to get them working(from part 2)

to start off,you will need to know what to do or what you can do with the command 'vstr'

1.first,get your dvar or bind,in this case i will be using DPAD_UP,so once you`ve added your option to your patch,your going to need to add a semi-colon inside the brackets and add the command 'set' then your own custom value(e.g bind DPAD_UP vstr A)this will direct me to the new string named 'A' and finally you create a new line and add this "set A" (without the quotes) and andd your commands after it.so your done for part 1,now for part 2.

2.now,this is were it gets all confusing,if you have ever seen a clantag editor in a 1.11 patch you will see its set out as this:
a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9
this is what it should look like when your done but it will work with your 1.12 patch,now grab your own vstr string layout(using the one above as an example) put these settings if you want numbers only or alphabet only:
    [COLOR="#FFD700"]set CG "bind DPAD_DOWN toggle vstr 1 2 3 4 5 6 7 8 9"[/COLOR]

or
    [COLOR="#00FF00"]set CG "bind DPAD_DOWN toggle vstr a b c d e f g h i j k l m n o p q r s t u v w x y z"[/COLOR]

this is all depending on what you want to toggle through,for the ones above will work with clantag editors and other stuff.


3.now,the final bit of this tutorial is very importent,you must now join the values to different strings(the values above)so heres an example of a line of coding ive used
    set a "bind BUTTON_A clanname a"
set b "bind BUTTON_A clanname b"
set c "bind BUTTON_A clanname c"

from this,you will need to continue depending how long your values are in the main vstr string(the value holder,like in part 2)but if you have done it right,it will turn out like this(these are the instructions on how it works):
    Player 1:Press BUTTON_BACK which took me to 'set CG' then i pressed DPAD_DOWN and then clicked BUTTON_A which gave me the clantag A,i changed it by pressing DPAD_DOWN which then took me to b,then clicked BUTTON_A which gave me the clantag B etc


so thanks for reading and hope this doesnt confuse anyone which it sounded like it did to me,but it cant be explained any easyer sorry,enjoy
-CodGlitcher
(adsbygoogle = window.adsbygoogle || []).push({});

The following 8 users say thank you to Uk_ViiPeR for this useful post:

add_me, BuC-ShoTz, Kakashii, User23434, TheFallen, xVz, YouRecognizeMe, zFlaVouR
07-30-2011, 08:45 PM #11
zFlaVouR
Former zFlaVouR!
Originally posted by xShowtime32x View Post
i know how to make a patch w/out gen.itd be really cool but really difficult


if you made one it would only hold like 3 char or something...
08-01-2011, 08:31 AM #12
TheFallen
Former Dark Night
Originally posted by UK
that aint all my friend,that aint all =D


Just tested and it doesn't work :(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo