View Single Post
Old 07-03-2002, 05:53 AM   #150
Phunen ey
 
Phunen ey's Avatar
 
Join Date: Jun 2002
Posts: 26
Re: cycle through reborn model with a key

Quote:
Originally posted by Replica X
This script lets you cycle through reborn skins with M


set change1 "model reborn 1;; bind m vstr change2"
set change2 "model reborn/acrobat 2;; bind m vstr change3"
set change3 "model reborn/boss 3;; bind m vstr change4"
set change4 "model reborn/fencer 4;; bind m vstr change1"
bind m vstr change1
Replica~ here's a better way to write your script (as well as the very long one).

Code:
set change1 "model reborn 1;set change_reborn_skin vstr change2"
set change2 "model reborn/acrobat 2;set change_reborn_skin  vstr change3"
set change3 "model reborn/boss 3;set change_reborn_skin  vstr change4"
set change4 "model reborn/fencer 4;set change_reborn_skin  vstr change1"
bind m vstr change_reborn_skin
What I did was I got rid of the bind statement in statements 1 through 4 and replaced them with set change_reborn_skin vstr vstrname. My reasoning behind doing this is to make it easier on you or whomever to rebind this script to a new key. If you keep your very long one the way it is and if you decide to remap it to another key then you would have to go through every line and make the change (Find & Replace work good here). But there's no need to do that. Once your script is working there shouldn't be any need to mess with it, even for binds. Just map a key for the general variable string. Try mine out and you'll see it works just as good as yours but mine is easier to remap.


bgc|Phucen-`ey
Phunen ey is offline   you may: quote & reply,