Staredit Network

Staredit Network -> UMS Assistance -> Trigger Help
Report, edit, etc...Posted by IA-little_Nemo on 2007-01-06 at 19:50:30
I am making a map where, in order to get more energy for a darkarchon, but in order to do so you must collect minerals, one mineral equals +1 energy for DA, however, mind controlling will take up more energy and i need it to add up, and the current trigger i have is this:

Condition:
Player X Accumulates 1 mineral(s)

Actions:
Subtract one mineral from Player X
Modify Unit Energy count to 1 percent
Preserve Trigger

I know however, that each time i collect a mineral, the energy count will stay at one percent, i need it so that the DA's energy does not stay at one percent. I am using X-tra editor.
Report, edit, etc...Posted by Zeratul_101 on 2007-01-06 at 20:05:30
the best way i can think of right now involves binary countoffs, hyper triggers, and death counters. i don't know your level of mapping ability, so this may be a bit much.

anyhow, observe this map: [attachmentid=22334]

Report, edit, etc...Posted by LazyCoder on 2007-01-06 at 23:11:39
You can't (easily) increment the amount of energy something has. It only works in percentages (we can all thank Blizzard for that).

I think you should scrap that idea, it is too much of a hassle to get it to work like that.
Report, edit, etc...Posted by green_meklar on 2007-01-06 at 23:54:51
I'd have to agree with these other guys, the only way I can think of is to have some kind of external counter. I'm not too good with these aspects of trigger creation, though, so I probably wouldn't be able to come up with a very efficient way of doing this. :\
Report, edit, etc...Posted by fritfrat(U) on 2007-01-07 at 10:42:17
Um.. I don't see the difficulty here. You'll have to use 2 energy each time instead of 1 since the DA has 200 energy instead of 100, but just do:

Accumulates exactly 1: Set energy percentage to 1%. Preserve.
Accumulates exactly 2: Set energy percentage to 2%. Preserve.
Accumulates exactly 3... etc. Trigger duplicator can do all 100 of these triggers in no time.

Then, once they gain control of another unit, subtract some minerals away from them. Yay.
Next Page (1)