[tutorial]Advanced vstr toggles

View previous topic View next topic Go down

[tutorial]Advanced vstr toggles

Post by FreckleS on Thu Jan 03, 2008 12:13 am

gday people if you arent good with vstr toggles go read mine or blah's tutorial back a page<---
if you are lets go.

we will make a two button confirm name changer today which is based on the same principal as a normal vstr name changer but it echo's the names first then you hit another button before it selects so that you do not get kicked for multiple name changes (i have over 10 names so its good)

ok so first we want the keys you are going to bind
Code:
//Name Toggle
bind F5 "vstr namesel"
bind F6 "vstr name+"
now we need to start the toggle
Code:
set name+ "vstr name01"
ok but what is name01? name01 will be the echo, so the first button(F6) to toggle the names before selecting

Code:
set name01 "echo Name01"
now we need more commands to activate the secound button (F5)
Code:
set name01 "echo Name01 - Press F5 To Select; set namesel vstr namesel01"
ok but what happens if you dont want that name and you want to check your second name?

Code:
set name01 "echo Name01 - Press F5 To Select; set namesel vstr namesel01; set name+ vstr name02"
ok that is the first name almost done but whatever happended to namesel01? it doesnt exist, yet.

Code:
set namesel "echo ^1NO NAME SELECTED PLEASE USE F5 TO CHOOSE"
Code:
set namesel01 "set name Name01"
okie dokie but a toggle cant just toggle one name can it? no because that isnt a toggle haha, comedian aint i?

Code:
set name02 "echo Name02"
now excatly the same as name01 we need the extra button's activation commands
Code:
set name02 "echo Name02 - Press F5 To Select; set namesel02"
and again what happens if you dont want that second name?
Code:
set name02 "echo Name02 - Press F5 To Select; set namesel02; set name+ vstr name01"
ok and your done remember this is only a two name, you can put in as many as you want as long as you have it seqential order
any problem post it here and i will help you out, im sure blah could as well

wd on reading this and have fun

Finished Toggle
Code:
bind F5 "vstr namesel"
bind F6 "vstr name+"

set name+ "vstr name01"
set name01 "echo Name01 - Press F5 To Select;set namesel vstr namesel01;set name+ vstr name02"
set name+ "vstr name02"
set name02 "echo Name02 - Press F5 To Select;set namesel vstr namesel02;set name+ vstr name01"
set namesel "echo ^1NO NAME SELECTED PLEASE USE F5 TO CHOOSE"

set namesel01 "set name Name01"
set namesel02 "set name Name02"


FreckleS
Config Coder
Config Coder

Male
Number of posts : 13
Age : 23
Location : Underwater
MonsterPoint : 0
Respected?! : 0
Registration date : 2008-01-03

View user profile http://www.cfgworld.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum