Graal Forums

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

raiden0899 09-11-2005 05:37 AM

Showpoly (GS2)
 
Could someone explain showpoly(); and showpoly2(); to me?

Please don't just link me to the Graal Wiki page, I have already looked there and all it said was:
NPC Code:
showpoly(float,array);
showpoly2(float,array);


Ajira 09-11-2005 05:45 AM

NPC Code:

showpoly(index, {x1,y1,x2,y2,etc});
showpoly2(index, {x1,y1,z1,x2,y2,z2,etc});


Sildae 09-11-2005 05:48 AM

If it is anything like old gscript, the first parameter is an img index, similar to the first parameter of showimg, and the array specifies coordinates of each vertex of the polygon. For the showpoly version, the array goes {x1, y1, x2, y2, x3, y3, ..., xn, yn}, each vertex is connected to the next and the last is connected to the first and the whole is filled with white. showpoly2 is the same, except you get to specify a z coordinate after each y coordinate.
If that works, you should probably tell the wiki about it.

raiden0899 09-11-2005 06:51 AM

Thanks :D.


All times are GMT +2. The time now is 05:25 AM.

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