PDA

View Full Version : Working on a name script


Ifurita
10-26-2007, 05:39 PM
set namescript1 "ui_name '^8Ifurita.'; ui_clanTag ''; ui_clanTagPosition 0; bind 6 $namescript2"
set namescript2 "ui_name '^7Ifurita.'; ui_clanTag '^PWJ^H|'; ui_clanTagPosition 0; bind 6 $namescript3"
set namescript3 "ui_name '^MIf^Puri^Mta.'; ui_clanTag '^P|^MTX^P|'; ui_clanTagPosition 0; bind 6 $namescript1"
bind 6 $namescript1


This really just changes the color scheme of the account ID and tags via a simple toggle. However, it seems to work inconsistantly. It seems to work in warmup, but not after the game starts. Is there an inherent block on changing names mid-match?

Any ideas?

samsho5
10-26-2007, 05:42 PM
no there is not. i have one of these toggles with 3 schemes and it works perfectly online.i do not have a clan tag on mine tho.
i used seta also not set.

i am at work for another 2.5 hours but i will post it when i get home.

samsho5
10-26-2007, 08:21 PM
seta sam1 "ui_name '^1sa^7ms^4ho^95^7' ; bind i $sam2"
seta sam2 "ui_name '^4sa^1ms^7ho^95^7'; bind i $sam3"
seta sam3 "ui_name '^7sa^4ms^1ho^95^7'; bind i $sam1"
bind "i" "ui_name '^1sa^7ms^4ho^95^7' ; bind i $sam2" "" "default"

btw, i dont think you need to add ui_clanTagPosition if it doesnt change. you are telling it to change it to the same position on every line. if the value is set once(aka cfg) you dont need it in there.

prophet
10-26-2007, 08:46 PM
I just use separate name configs for different color schemes/tags:

seta ui_clanTagPosition "0"
seta ui_clanTag "^1BYE^9|"
seta ui_name "^7proph^9ett"

exec bye to make the change

samsho5
10-26-2007, 09:02 PM
I just use separate name configs for different color schemes/tags:

seta ui_clanTagPosition "0"
seta ui_clanTag "^1BYE^9|"
seta ui_name "^7proph^9ett"

exec bye to make the change

oh yeah, i forgot about calling up exec, you can make '1 button complete bindings change' with them. :D
bind F10 "exec flightcontrolls.cfg"

Ifurita
10-26-2007, 09:55 PM
for some reason, it just didn't recognize that key 6 was bound to anything. After I manually added the bind line in the console, it worked fine.

I've stated the tag position, because depending on the team I play on, that might change

tombstone
10-27-2007, 03:22 PM
i've tried this, but i can't really get it to do anything. i've tried manually running the script from the console, and i know it runs, as the console will say 'tombstone is now known as tombstone' or whatever it is. can anyone see something wrong? (it's not finished yet anyway, wanted to test the concept first)

seta ui_name "^1T^9o^7m^1BS^9to^7n^1E"
// ricer name toggle
seta rot0 "ui_name '^1T^9o^7mB^1St^9o^7n^1E'; bind HOME $rot1"
seta rot1 "ui_name '^1To^9m^7BS^1to^9n^7E'"; bind HOME $rot2"
seta rot2 "ui_name '^7T^1om^9B^7St^1on^9E'"; bind HOME $rot3"
seta rot3 "ui_name '^9T^7o^1mB^9S^7to^1nE'"; bind HOME $rot0"
bind "HOME" "ui_name '^1T^9o^7m^1BS^9to^7n^1E';bind HOME 'vstr $rot0'" "" "default";

Ifurita
10-27-2007, 03:44 PM
bind "HOME" "ui_name '^1T^9o^7m^1BS^9to^7n^1E';bind HOME 'vstr $rot0'" "" "default";

Should probably be bind Home $rot0

This is driving me nuts. My current script looks like this:

// Name script
seta namescript1 "ui_name '^8Ifurita.'; ui_clanTag ''; ui_clanTagPosition 0; bind 6 $namescript2"
seta namescript2 "ui_name '^7Ifurita.'; ui_clanTag '^PWJ^H|'; ui_clanTagPosition 0; bind 6 $namescript3"
seta namescript3 "ui_name '^MIf^Puri^Mta.'; ui_clanTag '^P|^MTX^P|'; ui_clanTagPosition 0; bind 6 $namescript4"
seta namescript4 "ui_name '^4I^pfurit^4a.'; ui_clanTag '^4D^pc^4D^p|'; ui_clanTagPosition 0; bind 6 $namescript1"
bind 6 $namescript2

For some reason, it doesn't seem to recognize the last bind. When I drop the console and type bind 6, it shows it as unbound. However, when I paste this line in, the script works fine. I'm probably missing something really stupid.

tombstone
10-27-2007, 04:13 PM
i thought that there might be a conflict with my vsay thing on kp_end, so i rebound it to remove that. it currently looks like this, and works brilliantly :)

good end of game spam hehe

seta ui_name "^1T^9o^7m^1BS^9to^7n^1E"
// ricer name toggle
seta rot0 "ui_name '^1T^9o^7mB^1St^9o^7n^1E'; bind kp_home $rot1"
seta rot1 "ui_name '^1To^9m^7BS^1to^9n^7E'; bind kp_home $rot2"
seta rot2 "ui_name '^7T^1om^9B^7St^1on^9E'; bind kp_home $rot3"
seta rot3 "ui_name '^9T^7o^1mB^9S^7to^1nE'; bind kp_home $rot0"
bind "kp_home" "ui_name '^1T^9o^7m^1BS^9to^7n^1E';bind kp_home $rot0" "" "default";

Ifurita
10-27-2007, 05:19 PM
well I'll be damned. Edited my last bind line like yours and it works fine now.

tombstone
10-27-2007, 06:15 PM
kudos to samsho5 for that one ;)