Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] ModifyUnitHangar() Trigger Help...
Report, edit, etc...Posted by Pie.CoM on 2007-01-25 at 22:54:43
Well, here's my trig:


Trigger
Description:
Hangar
Players:
¤ All Players
Conditions:
¤ Always();
Actions:
¤ ModifyUnitHangarCount(8, All, Carrier, All Players, Anywhere);
¤ ModifyUnitHangarCount(10, All, level 1, All Players, Anywhere);
¤ PreserveTrigger();
¤ Comment("Hangar");


Can someone help me out here? The trigger isn't working at all.

Edit: Attatched map(I know it runs slow right now, another bug that I am currently working out.)
Report, edit, etc...Posted by Doodan on 2007-01-26 at 01:15:20
Make sure that the upgrades required for reavers and carriers to have their maximum cargo are made. Also, you can fill them by double clicking or right clicking them in the editor and increasing the number inside the hanger to its maximum.

Otherwise, the trigger should work, unless there's something I'm forgetting.
Report, edit, etc...Posted by Pie.CoM on 2007-01-26 at 01:58:38
Thanks for reminding me to increase the hangar capacity... but that didnt work.
Btw the units that this trig should be working for are units not originally no the map, they are created/bought by a player.
Report, edit, etc...Posted by CheatEnabled on 2007-01-26 at 02:12:15
Try creating the units and modifying hangar count in the same trigger. If you delete the trigger you got, and add a hangar action when you purchase the unit, it should work just fine.
Report, edit, etc...Posted by Pie.CoM on 2007-01-26 at 02:59:42
It's still not working for some reason... Pissin me off.
I do have a question though:
Since i'm (obviously) making the trig in starforge, would it have anything to do with that? Just wondering.
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-26 at 15:28:22
StarForge? It's possible that SF altered your "Anywhere" location, causing your trigger to fail to work.

You can try creating a location covering your entire map and use that as the "Anywhere" location instead.
Report, edit, etc...Posted by CheatEnabled on 2007-01-26 at 15:31:55
Or you could just make the trigger in SCMdraft. That shouldn't mess up your triggers.
Report, edit, etc...Posted by Pie.CoM on 2007-01-26 at 15:51:11
K i'll try it in SCMDraft

Um... sf didnt modify my anywhere location, because i have many triggers using that, and they're all working fine.

ADDITION:
Nope... still isnt working cursing.gif
Report, edit, etc...Posted by PCFredZ on 2007-01-26 at 16:01:46
Attach your map.
Report, edit, etc...Posted by Pie.CoM on 2007-01-26 at 18:07:58
Done.
Report, edit, etc...Posted by Koltz on 2007-01-26 at 18:29:17
try making it more general like "all anyunit" and only add 1 at a time
Report, edit, etc...Posted by Pie.CoM on 2007-01-26 at 23:20:39
Still not working
Report, edit, etc...Posted by PCFredZ on 2007-01-26 at 23:24:31
Specifiy "Carrier" and "Reaver".
Report, edit, etc...Posted by Pie.CoM on 2007-01-26 at 23:46:58
STILL isnt working... i wonder if maybe i'm cursed or something... i had a basic set all unit hangar count to 10 trig in the first mach defense, it worked/works fine... now this rolls along and it decides to be a pain in the ass, just for me! friggin hippies...
Report, edit, etc...Posted by Marandule1 on 2007-01-27 at 16:33:40
^ what he said.
but also check if the hyper trigger has sumin to do with it... simplely by removeing it... testing and if it works... well then beh!
Report, edit, etc...Posted by Pie.CoM on 2007-01-27 at 17:12:59
Still not working... Here's the current triggers:

Carrier:

Trigger
Description:
Carrier Hangar
Players:
¤ Force1
Conditions:
¤ Bring(currentplayer,atleast,1,carrier.anywhere);
Actions:
¤ ModifyUnitHangarCount(1, All, Carrier, CurrentPlayer, Anywhere);
¤ wait(0);
¤ preservetrigger();
¤ comment("Hangar CountC");


Reaver:

Trigger
Description:
Reaver Hangar
Players:
¤ P7
Conditions:
¤ Bring(currentplayer,atleast,1,reaver,anywhere);
Actions:
¤ ModifyUnitHangarCount(1, All, Reaver, CurrentPlayer, Anywhere);
¤ Wait(0);
¤ PreserveTrigger();
¤ Comment("Hangar CountR");

Report, edit, etc...Posted by fritfrat(U) on 2007-01-27 at 17:50:51
I deleted a few of the more useless and completely wrong posts. First off, take those waits out of those triggers, and combine them.

Anyways, I added this to my test map with starforge:

ModifyUnitHangarCount(1, All, Reaver, All Players, Anywhere);

And it worked. I have no clue what wouldn't work for your map, assuming it wasn't hitting the unit limit.
Report, edit, etc...Posted by payne on 2007-01-27 at 19:05:55
Well... I have the same problem!
[attachmentid=22787]-> !Download meh and solve meH! <-
Report, edit, etc...Posted by Pie.CoM on 2007-01-27 at 23:39:35
meh... it's still not working, and i have exactly what you told me to put in...
Report, edit, etc...Posted by xmrxsiegecopx on 2007-01-28 at 02:22:00
It looks as if you have disabled the ability to build Interceptors. If I'm not mistaken, doesn't the Hangar trigger require interceptors to be enabled by default?
Report, edit, etc...Posted by Pie.CoM on 2007-01-28 at 02:46:20
I'm pretty sure they're enabled, but i'll check anyways...
(I'm going to shoot myself in the head if they are disabled, so dont expect a reply if you're idea is correct)

ADDITION:
cursing.gif *loads the gun* cursing.gif
solved... thankee
I'm officially going to join the crazy retards club.
wallbash.gif chair.gif bash.gif
Next Page (1)