Staredit Network

Staredit Network -> UMS Assistance -> Anyone knows how to do it?
Report, edit, etc...Posted by DooM77 on 2006-08-25 at 16:10:21
I'm trying to make a map where hero will gain experience while just having enemies in range. In order to reach it I made constantly centering on my hero location that is a square where about half of side lenght's is unit range. On the first sight everything's allright, but it does not need to be a genius to realise that in square diagonal is always longer than any side. It means that if I'll be getting closer to enemy from f.e right side, experience will start to rose in the moment my hero starts shooting; but if I will come from f.e. upper-left, it starts to rose far too early. So hero who stand in convenient place will be getting exerience without any combat. Any ideas what can I do? It's a pity that locations can't be circles ;]. Please, try to help me...
Report, edit, etc...Posted by fritfrat(U) on 2006-08-25 at 16:15:33
Make 2 rectangular locations, one tall and one wide. And maybe even a square location, as well. Example:

2x5
3x3
5x2

Of course, this would call for multiple triggers; unlike in warcraft III's editor where 1 event would cause the trigger to run (super nice), SC needs to have all conditions met, always. Just have the action set a switch or set a variable (such as deaths for a random unit or an unused score) to atleast 1, and make a trigger:

Switch it set / deaths atleast 1: clear switch / set deaths to 0, add bonus.

EDIT: changed location sizes, originals weren't representative enough of the idea.
Report, edit, etc...Posted by DooM77 on 2006-08-25 at 16:36:24
Hmm... Yeah, good idea but I'm anxious if constant centering 3-4 or even 5 locations (i try to do my best in my map, and my hero is ghost) for heroes of 4 players won't slow the game so much. Anyways, thanks for advice smile.gif.
Report, edit, etc...Posted by MoonlighTurtle on 2006-08-25 at 16:51:41
Centering multiple locations on a unit will not lag the game.
Report, edit, etc...Posted by fritfrat(U) on 2006-08-25 at 17:10:26
The only thing that would lag a game would be massive amount of units and sprites on the map doing actions, such as in this map as time progresses:

http://www.staredit.net/index.php?showtopic=33838

That map lagged for me even in a replay, and I have a 3 ghz machine, lol.

The worst you can do trigger wise is that if you have a LOT of units spawning with hyper triggers, it is possible your map may crash every now and then. An Uberation 2 Compress and Protect always fixes that problem for me, though.

You could center 250 locations on a unit with hyper triggers and it would probably act exactly the same.
Report, edit, etc...Posted by PCFredZ on 2006-08-25 at 21:37:13
Be careful with your triggering so you don't get this bug: if a unit is overlapped by 2 locations, you'll be getting double experience.
Report, edit, etc...Posted by fritfrat(U) on 2006-08-25 at 22:43:39
Doing my suggestion of setting a switch or setting a counter and then adding the bonus is one possible way of resolving the issue PCFred issued, because it doesn't matter if the switch is set 1-3 times, it's set all the same. I didn't specify that was why I suggested using the switch/variable in my original post smile.gif
Report, edit, etc...Posted by DooM77 on 2006-08-26 at 09:01:59
Thanks a lot :*.
Next Page (1)