HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Question] I'm just curious, but...

04-05-2008, 04:14 AM#1
Tide-Arc Ephemera
How would I go about using a "draw" method and detecting if a pentacle has been drawn?

The "draw" method is assuming a unit activates an ability and moves, leaving a trail of units or things of some sort to make the markings.

I was thinking distance relative to another one, but that could be abused via pentagon or circle... though I did have the idea of the distance in relative to it and the previous one, but that could be abused by a line being followed up and down a few times.

In any advent this helps, think Trauma Center's Healing Touch.
04-05-2008, 04:21 AM#2
Pyrogasm
That sounds extremely complicated. What the hell do you need this for?
04-05-2008, 04:23 AM#3
Tide-Arc Ephemera
Well my map ideas usually come from what I've seen recently or things I thought really cool. At the moment, I have an addiction to Trauma Center. The "Healing Touch" is activated by drawing a star, it does several things but the most common one is increasing concentration to a point where time appears slows down (in some cases, stop.)
04-05-2008, 04:29 AM#4
Pyrogasm
Well, you'd probably have some sort of periodic script that periodically checked the position of said unit in relation to the vertex he is moving from to where he is going to; I imagine some sort of angle comparison to make sure the line doesn't wander too far.

This would be looping for the 5 lines of the pentagram, then it would continue on to the following: periodically checking to make sure the unit is moving outside a certain circle and inside another (of larger radius) until it reaches half-way around the circle. Then it would do the same checks, but for the next half of the circle.
04-05-2008, 04:36 AM#5
Tide-Arc Ephemera
Hm... I had a super special awesome idea, but I forgot what it was. Though I have a simpler idea now that could be easier to manage.

Instead of using one flowing ability to draw it, maybe a multi-cast ability that's used five times and then the points are linked. I guess that'd require angle-between-point comparisons and it could be a whole lot more simple... possibly less lagged up, too.

For that one, I'd be checking for the angles... (assuming X is the current point)

- Angle between X and X+1
- Angle between X and X-1
- Angle between the first and last point

Correct?