In-game Echo Menus (How To)

An in-game echo menu is a menu displayed on your screen that you can choose things from. It's displayed in the same text as the console text, using the 'developer 1', 'echo', and 'developer 0' commands. For this guide we will be making an echo menu to buy a few items.

Step 1

First off we need to make the menu to be displayed on screen. Follow the guide:

Here are our developer aliases:

alias d+ "developer 1"
alias d- "developer 0"

Here is the layout of the echo menu:

alias ex1 "d+; echo Buy Mp5; d-"
alias ex2 "d+; echo Buy AK-47; d-"
alias ex3 "d+; echo Buy AWP; d-"
alias ex4 "d+; echo Buy HE Gren; d-"
alias ex5 "d+; echo Exit; d-"

The alias to display the menu is as follows:

alias exall "ex1; ex2; ex3; ex4; ex5"

Step 2

Now we need to make the command alias match up with the menu, in order to buy the items. Here are the commands for the echo menu:

alias exc1 "buy; menuselect 3; menuselect 1; clz"
alias exc2 "buy; menuselect 4; menuselect 1; clz"
alias exc3 "buy; menuselect 4; menuselect 6; clz"
alias exc4 "buy; menuselect 8; menuselect 4; clz"
alias exc5 "rebindall; clear"

The alias to bind all these commands to the number keys is as follows:

alias excall "bind 1 exc1; bind 2 exc2; bind 3 exc3; bind 4 exc4; bind 5 exc5"

We can't forget the 'clz' alias to close the menus:

alias clz "wait; wait; wait; wait; slot10; wait; wait; wait; wait; wait; slot10"

Step 3

We must also have an alias to rebind the number keys back from exc 1-5 to slot 1-5.

The rebind alias is as follows:

alias rebindall "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5"

Step 4

In this step we will make the aliases to display the menu, then rebind the keys. We will make a toggle to open and close the menu:

alias exmenu "exmenu+"
alias exmenu+ "exall;excall; alias exmenu exmenu-"
alias exmenu- "rebindall; clear; alias exmenu exmenu+"

And we need to bind exmenu to a key:

bind "<key>" "exmenu"

The exmenu+ will bring up the menu and you can make your selection. Then when you press the button again the slot keys will be reset and the screen will be cleared.

Final product

After doing all that you should come up with:

contimes 6 [Tells the game how many lines of text to display on screen]
alias d+ "developer 1"
alias d- "developer 0"

alias ex1 "d+; echo 1. Buy Mp5; d-"
alias ex2 "d+; echo 2. Buy AK-47; d-"
alias ex3 "d+; echo 3. Buy AWP; d-"
alias ex4 "d+; echo 4. Buy HE Gren; d-"
alias ex5 "d+; echo 5. Exit; d-"

alias exall "ex1; ex2; ex3; ex4; ex5"

alias exc1 "buy; menuselect 3; menuselect 1; clz"
alias exc2 "buy; menuselect 4; menuselect 1; clz"
alias exc3 "buy; menuselect 4; menuselect 6; clz"
alias exc4 "buy; menuselect 8; menuselect 4; clz"
alias exc5 "rebindall; clear"

alias excall "bind 1 exc1; bind 2 exc2; bind 3 exc3; bind 4 exc4; bind 5 exc5"

alias clz "wait; wait; wait; wait; slot10; wait; wait; wait; wait; wait; slot10"

alias rebindall "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5"

alias exmenu "exmenu+"
alias exmenu+ "exall; excall; alias exmenu exmenu-"
alias exmenu- "rebindall; clear; alias exmenu exmenu+"

bind "?" "exmenu"

If you are having problems getting your menu to work, or have any questions please e-mail me at gatodog@hotmail.com.

Comments

I-[GORE] l'infame
13:31 4/1/2002
its cery usefull for the scripting noobs
but better go see www.confid-world.com
... [ Comment: Report | IP: Logged ]
cus
14:03 4/1/2002
nice ;) [ Comment: Report | IP: Logged ]
omg
17:14 7/1/2002
well start with skippin some code....
menuselect 8; menuselect 2?

use buyequip instead... makes things faster [ Comment: Report | IP: Logged ]
Blitz
Editor
UKTerrorist
18:41 7/1/2002
Think he knows that, but to the untrained eye, it may be simpler just to refer to it as 8,2 atm... [ Comment: Report | IP: Logged ]
Shattered Life
02:25 17/1/2002
Sucks to be new to scripting (such as my self), its hrd to understand what some of the alias's do (like what slot 10 means or something like that). [ Comment: Report | IP: Logged ]
FuX
23:25 21/1/2002
yeah, that thing also like to make my HL cause invalid page faults - wtf ? [ Comment: Report | IP: Logged ]
Teflon
20:32 17/2/2002
take a look at my tool, it does build a menu for you,
http://menubuilder.mwuerr.de [ Comment: Report | IP: Logged ]
TeKilla
04:22 14/3/2002
im making a whole bunch of menus and believe me if a noob read it hed just go

???
O_o <- HUH?!?!

gj [ Comment: Report | IP: Logged ]
phlyte
12:39 26/8/2002
u should make it say - alias exall "d+; ex1; ex2; ex3; ex4; ex5; d-"

then u could remove all teh extra d+'s and d-'s in your initial echo commands

just a thought... ;-) [ Comment: Report | IP: Logged ]
Silverf*ck
15:14 29/10/2002
Can i just ask.. what do the developer commands (d+,d-) and actually do? ive made a few scripts and am trying to get a script to change cross hair colour.. but i have never found out what they mean.. any help? [ Comment: Report | IP: Logged ]
Akilae
00:38 3/4/2003
does someone still read such pages?

take time to give us comment and links and advices :)

i'm starting scripting and need few experience from other peeps ;) [ Comment: Report | IP: Logged ]
Adeptus
13:48 2/5/2003
I'm reading this page. I've recently decided to attempt to build buy aliases (at which I was mostly successful.) The only problem I've had is that I can't get the menu to close (I still have to click option 0 after I buy everything.) Here's what i've got. Maybe someone can help me.

alias "clz" "wait; wait; wait; wait; slot10; wait; wait; wait; wait; wait; slot10"

alias "BuyP" "buy; menuselect 1; menuselect 4; clz; wait; wait; wait; buy; menuselect 7"

hopefully you can tell my why the menu doesn't close. [ Comment: Report | IP: Logged ]
Leptest
19:22 12/5/2003
you probally use something like this:

alias clz "slot10; wait; wait; wait; slot10; wait; wait; wait; slot10"

alias buy1 "buy; menuselect 1; menuselect 4; clz; buyammo2"

rember you can use "buyammo1" and "buyammo2" commands for primary and secondary ammo. :-D
i shoved that into my autoexec.cfg and it worked first time. i tested in on my lan. If you have ne problems email me at FillMe@junkmail.com (it ain't fake) :-D

Leptest [ Comment: Report | IP: Logged ]
Dlite
11:10 9/6/2003
Just wondering if "clz" and "clear" is sposed to be the same alias?? [ Comment: Report | IP: Logged ]
leptest
18:12 18/6/2003
**

alias w6 "wait; wait; wait; wait; wait; wait"
alias clr "slot10; w6; slot10; w6; slot10; w6; slot10; w6; slot10; w6; slot10"

**

That is what i use now, and works fine on the internet. :-D

Leptest [ Comment: Report | IP: Logged ]
Leptest
02:44 3/7/2003
alias w6 "wait; wait; wait; wait; wait; wait"

alias clr "slot10; slot10; w6; slot10; slot10; w6; slot10; slot10"

always works for me :-D [ Comment: Report | IP: Logged ]
Add comment

Menu

News
Features
Events
Site
Search UKT:

User



Register here

Shoutbox

X
JESUS CHRIST ITS A LION
23:33 27/8/2008

`NWA
lol @ this shoutbox going stron 2 years after the last news item was posted.
02:22 27/8/2008

w1ckedz
I wrote that Culexus comment Myers hahahaha
21:32 25/8/2008

tiz
Stealing is terrible I know! Some ****er even had the cheek to put it on ebay... [ferrers
Who stole my mouse mat from ukt5 ?
08:16 22/8/2008

[ expand ]