Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   new setshape mode suggestion (https://forums.graalonline.com/forums/showthread.php?t=63901)

jake13jake 02-04-2006 02:08 AM

new setshape mode suggestion
 
Well, setshape was obviously made with the intention of having different modes, but thus far it only has one. that would be mode 1: square.

I hereby suggest setshape(2,rx,ry) for ellipses.
rx: the x-radius
ry: the y-radius

This came to me because my new damage system for classic will support radius-based damage.

jake13jake 04-15-2006 03:08 AM

Another setshape idea!
setshape(3,{x1,x2},{y1,y2});
Really, all these setshapes would be useful!

Omini 04-15-2006 06:36 AM

Quote:

Originally Posted by jake13jake
Another setshape idea!
setshape(3,{x1,x2},{y1,y2});
Really, all these setshapes would be useful!

what exactly would that do?

maximus_asinus 04-15-2006 07:43 AM

Quote:

Originally Posted by Omini
what exactly would that do?

I would assume that it'd allow him to make shapes easily, from pointing to the different coordinates. (I'd expect there would be more than 4 'point to' coordinates, to allow making other shapes).

jake13jake 04-15-2006 05:36 PM

Quote:

Originally Posted by Omini
what exactly would that do?

Well, it's useful for changing the shape of an NPC.
Noww... aside from simply changing the shape of an NPC, this would be extremely useful for my damage system if:
http://forums.graalonline.com/forums...ad.php?t=65028
was implemented, in which the coords/shape of an NPC would need to be declared immute somehow.

Another possibility would be setting the NPC's shape to another image, rather than the NPC's own image determining its default shape.

Omini 04-15-2006 07:26 PM

Why not ask for pre-set shapes in a script like this
NPC Code:
setshape3 3,5,3,{
0,0,0,
0,0,0,0,
22,22,22,22,22
};



Have the first number like a mode for the shape, like keydown(0) is up, keydown(1) is left etc.
Have it like
setshape3 mode,width,height,{set tile modes (blocking, non-blocking, hurting, etc)};
1 - Square/Rectangle
2 - Circle
3 - Triangle
4 - Pentagon
5 - Hexagon
6 - Octagon
etc etc


All times are GMT +2. The time now is 08:15 PM.

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