Thread: typing script
View Single Post
  #1  
Old 12-10-2005, 10:35 PM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
Exclamation typing script

im making a script so when you type one the screen it shows what your typing...except im having a lil problem...i dno how to make the letters actually type XD...i have an idea of it done..look at the script

NPC Code:


//#CLIENTSIDE

if (created){
disablepause;
disableselectweapons;
sy = 60/100 * screenheight;
timeout = .05;
}


if (timeout){
sx = 50/100 * screenwidth+this.keyspressed;
message #v(this.keyspressed);
timeout = .05;
}
if (keypressed){
this.keyspressed++;
addstring this.lastletter,#p(1);
if (!strequals(#p(1),)){
showimg 1,@Arial@b@#s(this.lastletter),sx,sy;
changeimgvis 1,4;
changeimgzoom 1,.60;
}else{this.keyspressed--;}
}


Reply With Quote