ET-Scripts
Welcome to the ET-Scripts website.
Enter your username and password to login.

Greetings,
Chef
ET-Scripts
Welcome to the ET-Scripts website.
Enter your username and password to login.

Greetings,
Chef
ET-Scripts
Would you like to react to this message? Create an account in a few clicks or log in to continue.

ET-Scripts

For all your Scripts and Configs.
 
HomeLatest imagesSearchRegisterLog in

 

 Advanced vstr toggles [ Tutorial ]

Go down 
AuthorMessage
r4m4
Moderator
Moderator



Posts : 37
Join date : 2009-03-28
Age : 114

Advanced vstr toggles [ Tutorial ] Empty
PostSubject: Advanced vstr toggles [ Tutorial ]   Advanced vstr toggles [ Tutorial ] I_icon_minitime3/29/2009, 19:32

hey guys im sure most people know how to make a simple toggle but if not here is an outline of it.
NOTE:BASIC SCRIPTING KNOWLEDGE REQUIRED.

A toggle is like a light switch there is ON and there is OFF they are toggled between by a SET command and a VSTR command

There is 2 SET's to each line of a basic toggle,
the SET of the name of your command so-
Code:
set name1
then you need your et console command so in this case of a name toggle it is
Code:
set name1 "name Name1"
but that is only the first part and to toggle between other names you need another SET
Code:
set name1 "name Name1; set nextname vstr name2"
ok now we are almost through but how do you know what name you just toggled to? you need an ECHO
Code:
set name1 "name Name1; set nextname vstr name2; echo Renamed to-Name1"
woo that is the first half of the toggle done now you need the name2 refered to above
we use the same approach as above
Code:
set name2 "name Name2; set nextname vstr name1; echo Renamed to-Name2"
now to finish it off
Code:
set name1 "Name1; set nextname vstr name2; echo Renamed to-Name1"
set name2 "Name2; set nextname vstr name1; echo Renamed to-Name2"
set nextname "vstr name1"
bind n "vstr nextname"
Back to top Go down
 
Advanced vstr toggles [ Tutorial ]
Back to top 
Page 1 of 1
 Similar topics
-
» Chef's Guide - Config making (4) "Variable & Vstr"
» Chef's Guide - Config making (7) "+Vstr"

Permissions in this forum:You cannot reply to topics in this forum
ET-Scripts :: ET-Scripts :: Guides-
Jump to: