Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.