Jump to content

Recommended Posts

Posted

The toggle

Very often you see scripts posted that come without a toggle, so you can't switch it on/off easily. Here I will show you how to make one yourself.

 

This script for example, it's a duck jump script. Code:

alias "+dJump" "+jump;+duck"

alias "-dJump" "-jump;-duck"

bind "space" "+dJump"

 

 

 

As it is now it's always on, which is in some cases inconvenient, so we add a toggle. There are two ways of doing it, rebinding and realiasing, the first one is very easy to do, the second one is more complex but more flexible for when you change binds.

 

Making the rebind toggle

This thing just toggles binds between +dJump and +jump. Code:

alias "dJumpOn" "bind space +dJump;alias dJumpToggle dJumpOff"

alias "dJumpOff" "bind space +jump;alias dJumpToggle dJumpOn"

alias "dJumpToggle" "dJumpOff" // Change it to on if duck jump is off by default

bind "home" "dJumpToggle"

 

 

 

It's as easy as that, but when you change your bind you have to change the script too, of course that isn't too much of a hassle in this example, but when it gets bigger it's better to use realiasing method (which is also better for script releases to improve usability).

 

Making the realias toggle

With this method we have an alias called +doJump, when you toggle you change his function, this alias will be bound to the jump key. So when you decide that your jump key will not be the space bar, you only have to change one bind. Marvelous, isn't it? Code:

alias "dJumpOn" "alias +doJump +dJump;alias -doJump -dJump;alias dJumpToggle dJumpOff"

alias "dJumpOff" "alias +doJump +jump;alias -doJump -jump;alias dJumpToggle dJumpOn"

alias "dJumpToggle" "dJumpOff" // Change it to on if duck jump is off by default

bind "space" "+doJump"

bind "home" "dJumpToggle"

 

 

 

NOTE: since it's a meta alias (+/-alias) you have to realias both the + and - alias.

 

I hope this helped you on the way.

Credits : ELX[Draco]

Posted

lol ? u are stupid???? what want i say?.pff

 

I deleted a lot of your messages with Good Job dude keep up i'm sick of your shits.

-1 Karma for insulting a mod&spamming.

0 TOLERANCE RULE: ON

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • so whitch plan is it? because in here is one price and in ur websit is another...
    • Ты настолько смешон, что создал специально для этого левый аккаунт?)))  ты не стоишь даже капли с моего члена что бы я ради тебя писал что-то на анг)  Человек видимо облажался с запуском, слил бабки в помойку теперь с горящей жопой бегает по форуму и не знает кого обвинить))))) перечитай что я тебе написал, мне насрать на тебя на твой сервер и на то что ты там выложил)  это все дерьмо неактуально уже давно, скажу тебе если твоя тупая голова это не поняла, АКТУАЛЬНОЕ НИКТО НЕ ПРОДАЕТ, потому что любая продажа это = шара, все что продается ЭТО ОТЪЕЗЖЕННОЕ ГОВНО которое не нужно хозяину, старое как твои обвисшие от гнева сиськи    
    • L2 HARMONY - BANNERS & ICONS       L2 COLD - NPC ANIMATED BANNER
    • LA ERA DE EINHASAD - Lineage 2 en Castellano Lineage II Crónica 4: Vástagos del Destino x5 - Main Class - Full Craft ───────────────────────────── La diosa Einhasad ha despertado... Una nueva era comienza para los verdaderos aventureros. Un mundo completamente traducido al español, fiel al Lineage II original, creado para una comunidad hispanohablante unida por la nostalgia y la pasión. ───────────────────────────── APERTURA OFICIAL: 14 de NOVIEMBRE - 20:00hs (GMT-3) ───────────────────────────── INFORMACIÓN PRINCIPAL Rates: x5 Tipo: Main Class Sistema: Full Craft Idioma: 100% Español (traducción completa del juego) Comunidad hispanohablante Balance original con mínimas modificaciones Buffer Offline, los jugadores pueden crear sus tiendas de buffs Progresión de crónicas cada 4 meses aprox. Economía estable - Sin Pay to Win - No venta de items/adena por donación Comunidad de 1.000 personas Anterior versión x1 duro casi 3 años con 952 IPs distintas de pico ───────────────────────────── CARACTERÍSTICAS DESTACADAS Experiencia fiel al Lineage II clásico, sin alteraciones invasivas Interfaz, diálogos y objetos completamente en español Ventana de comunidad con servicios personalizados y comercio por Monedas de Oro Olimpiadas, Épicos y Asedios originales Recompensas por votación, Eventos TVT con 3 arenas diferentes. Participan todos sin importar el nivel, pero dentro de la arena solo se atacan por rango cercano Soporte activo y presencia constante del administrador Tickets de soporte con atención rápida en Discord ante cualquier problema ───────────────────────────── ENLACES OFICIALES Website: La Era de Einhasad Discord: https://discord.com/invite/A6PtCCN2SF ───────────────────────────── Una comunidad unida por el idioma, la pasión y la nostalgia. Redescubrí Aden… en tu propio idioma. Bienvenido a La Era de Einhasad.  
    • English you belarus retard ) Seems you so desperate and angry cant even speak back in EN, well guys you see how its easy to destroy scammer xD
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock