Page 1 of 1

Group centerpoint

Posted: Fri Aug 31, 2007 9:05 am
by gugusm
I have a bunch of units, there are many kinds of them (Thrall, Soulless, Wights, Fetches, Stygs, Myrks etc. - a lot of them), so I separated them to groups. Now I have in my script this (among a lot of other actions):

DARK FORCES
Link ---> Thrall1, Soulless1, Wights1 etc. etc.

And they are all in the same place, so when I MOMA all DARK FORCES somewhere, I can choose which group of enemies I want to appear and attack player forces (I hope you got it), beacause all of them are there.

And it was OK, but something screwed up recently and now they don't appear in exact place where I want them to appear. Can I make something like group centerpoint (like in Squads) for all DARK FORCES, so they will appear exactly where I want? Or maybe there is another way to fix it...

I also noticed that when everything was OK, when I selected those units which were standing in a perfect circle, and when I right-click to move them (everything in Loathing) my mouse cursor was exactly in the middle of them. Now it isn't exactly in the middle, so surely this is the problem, but I don't want to fix it by adding some other units outside of this group and linking them to DARK FORCES, cause it isn't precise and it could mess up my whole idea.

I hope you did understand me and you can help. Thanks.

Posted: Fri Aug 31, 2007 10:07 am
by A-Red
It sounds like your script is something like this:

LINK Dark Forces
. Myrks
. Thralls
. ...
MOMA Dark Forces Move
ACLI Pick Dark Forces to Appear (randomized)
. CTRL Myrks Appear
. ATTA Myrks Attack
. CTRL Thralls Appear
. ATTA Thralls Attack
. ...


So every time a Dark group is selected to appear, the entire Dark army MOMAs to that spot. That sounds like it could easily get messy, so I'm not surprised you're having trouble. I think you'd be better off with something like this:

Myrks
Thralls
...
ACLI Select A Dark Group
. MUNG Insert Myrks into Selected Units Container
. MUNG Insert Thralls into Selected Units Container
<<Selected Units Container>> (contains empty subj, mons_identifier)
MOMA Move Selected Units
CTRL Selected Units Visible
ATTA Selected Units Attack

In the script above, you would randomly select a Munger, and each Munger feeds a different group of enemies into the unit container...then all the actions after that just use the unit container as a Link.

Posted: Fri Aug 31, 2007 2:45 pm
by gugusm
Yes A-Red, my script looks similar to this which you posted, but there is one difference: not every group attack after appearing (but it doesn't matter at all in this case).

And yeah, your idea is good, but I have no problem with orienting myself in this script and it works well. The only problem is MOMA, cause these units don't move exactly where I want. Yeah, maybe if I change my script 'system' to yours (using MUNGs), then smaller groups will be moving and they will move in a good place, but I'm near the end of my work and changing everything now would make me crazy :x In addition everything worked well 2 days ago, but when I tested my map yesterday it screwed up :? So, isn't it possible to make centerpoint for a group or something to fix it?

Posted: Fri Aug 31, 2007 5:25 pm
by gugusm
Whee, I found a group of units which were screwing my MOMA, and I changed it already, so it works fine now :D

Anyway, thanks for your suggestion A-Red :)