Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2006, 02:08 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #2  
Old 04-15-2006, 03:08 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Another setshape idea!
setshape(3,{x1,x2},{y1,y2});
Really, all these setshapes would be useful!
Reply With Quote
  #3  
Old 04-15-2006, 06:36 AM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
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?
Reply With Quote
  #4  
Old 04-15-2006, 07:43 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,748
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
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).
__________________
Save Classic!
Reply With Quote
  #5  
Old 04-15-2006, 05:36 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #6  
Old 04-15-2006, 07:26 PM
Omini Omini is offline
Millenium Owner
Join Date: Feb 2006
Location: N.Ireland
Posts: 293
Omini is on a distinguished road
Send a message via AIM to Omini Send a message via MSN to Omini Send a message via Yahoo to Omini
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
Reply With Quote
Reply


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 10:50 PM.


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