HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Circle Based Move: Look here

05-29-2006, 09:30 PM#1
Kalvorod
I've made a simple circle based move system for all those people who want to make interesting turn based RPGs. Take look very interesting and easy to implement.

The distance the unit can move depends soley on their move speed:


Trigger:
Collapse Events
Unit - A unit Is issued an order targeting a point
Conditions
*** (Issued order) Equal to (Order(move))
Collapse Actions
Set ActiveUnit = (Triggering unit)
Wait 5.00 seconds
Unit - Order ActiveUnit to Stop

***- Note this doesn't seem to be the correct condition, so if you leave it out the event will work.

I'm sure an intuitive person could figure out how to limit the person by Move Points or similar variable rather than 5 seconds. This is just a guide line because I have not seen any maps use circular Turn Based Move systems.

(square based is much harder believe it or not)

Edited by Blade.dk. Reason: Use the correct tags, please. Trigger tags made your post look better..
05-29-2006, 11:56 PM#2
Rising_Dusk
I don't see how your function would be any different for a square.
To be quite honest, I don't see how it works any differently for any shape, it seems very generic.

You just sort of wait 5 seconds and stop a unit when you issue an order to it.
05-29-2006, 11:59 PM#3
Anopob
EDIT: Oh, wait. Nevermind.
05-30-2006, 03:38 PM#4
TaintedReality
It would be different for a square because the distance to the corners is longer than the distance if they moved straight to one side. Doesn't really matter much though =P.
05-30-2006, 04:10 PM#5
Rising_Dusk
See, I get what you're saying.
I'm just pointing out that this little smidgen of code really doesn't account for anything of the sort in circles or squares.

I guess if you just kept running in all directions for the 5 seconds you'd get a circlish shape. Still though, that seems a bit contrived.
05-30-2006, 04:25 PM#6
The)TideHunter(
Yea, when i first read this thread, i thought to myself, this is meaningless...
Its nice he has posted for other people, but it dosent accomplish anything in my books