Thread: Showpoly
View Single Post
  #1  
Old 01-03-2004, 07:33 AM
CaTigus CaTigus is offline
Scripter
Join Date: Oct 2002
Posts: 80
CaTigus is on a distinguished road
Showpoly

hey, I need help with this showpoly script I'm making. I'm atempting to make it show five showpoly's at the same time with one command. I've done it before with showimg, though, for some reason its not showing the five polygons. Perhaps you can't put an index on a width and height var? I figured on the GUI I'm making, using polygons for text fields would be easier, if I used one command instead of making twently different showpoly commands with a new index for each. Seeing, all I need to do with this is use tokens and a few other things. Any ideas?

NPC Code:
setarray this.textboxx,5;
setarray this.textboxy,5;
setstring this.65box,85,114,130,140,150;

for (p = 0; p < 5; p ++) {
tokenize #s(this.65box);
this.textboxx[p] = 65;
this.textboxy[p] = strtofloat(#t(p));
showpoly p,{
this.textboxx[p], this.textboxy[p],
this.textboxx[p] + 70, this.textboxy[p],
this.textboxx[p] + 70, this.textboxy[p] + 21,
this.textboxx[p], this.textboxy[p] + 21
};
}
changeimgvis p,5;


Last edited by Loriel; 01-05-2004 at 05:17 PM..
Reply With Quote