Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showpoly (https://forums.graalonline.com/forums/showthread.php?t=50110)

CaTigus 01-03-2004 07:33 AM

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;


Thak2 01-03-2004 07:45 AM

Re: Showpoly
 
Uh, not sure. But maybe moving that changeimgvis inside the for-loop will fix it?

Mykel 01-03-2004 07:51 AM

Re: Re: Showpoly
 
Quote:

Originally posted by Thak2
Uh, not sure. But maybe moving that changeimgvis into the for function will fix it?
Giltwist is helping me with scripting. We were talking about this on AIM. It seems that is part of it. Also, [from Giltwist] tokenize breaks up over spaces not over commas, if he wants to define 65box that way he should be using string array stuff not tokenize stuff.

Lance 01-03-2004 08:33 AM

Giltwist-through-Mykel is correct, though as the old saying goes, there's more than one way to do it. ;)

Hevaricubed 01-03-2004 05:55 PM

old saying == more than one way to skin a cat :p

Lance 01-03-2004 08:43 PM

Quote:

Originally posted by Hevaricubed
old saying == more than one way to skin a cat :p
Tim-Toady.

TMTOWTDI.

Quote:

Originally posted by marcoR
Is Lance smoking pot, or is that a really long abbreviation?
There's
More
Than
One
Way
To
Do
It
.

osrs 01-04-2004 10:57 PM

WASA, Lance. :grin:

[SIZE=0.5]*what a stupid abbreviation, Lance.[/SIZE]

Dach 01-05-2004 04:07 AM

abbr's are stupid, IMO

Mykel 01-05-2004 04:44 AM

brb.
afk.

CaTigus 01-05-2004 06:14 AM

Wow thanks guys you really helped ¬_¬

Loriel 01-05-2004 03:11 PM

Indeed... stop the offtopic posting! *deletes some*

GoZelda 01-05-2004 03:45 PM

Perhaps, just perhaps, it's because of the fact that that poly stuff isn't on the same line.

Doubtful though.


All times are GMT +2. The time now is 08:24 AM.

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