Creating a single use ability!

Easy question: yet I don't know the answer!

 

How to create a one-time only ability that will permanently disable itself after first use?

To clarify, it will have no cost, and I don't want to put a 9999999 sec cooldown time as it looks HORRIBLE in game!

What I want in nice terms...is for the DOME upcoming game mode. I would like to have invulnerable structures (easy to do) which once you capture, trigger an ability (easy to do) which calls in reinforcments but then disables itself permanently (HARD PART) or until lost...since it cannot be abandonned!

 

Help?

Thank you!

3,911 views 8 replies
Reply #1 Top

shadow how about a very llllooooonnnngggg cooldown ie about 2hours?

harpo

 

Reply #2 Top

would setting cooldown time to 0 make it an infinite cooldown, or no cooldown? (just speculating...i have no clue)

Reply #3 Top

@ Harpo! I SAID SPECIFICALLY NOT PUTTING A 00000 minute (in this case 2 hour) RESPONSE! Thats the whole point :(! I know its a drag but I like when things are neatly done ;)

@Wrath2552:  Setting cooldown at 0 = no cooldown at all = ABILITY SPAM FTW!!!! LOL

Reply #4 Top

What about giving it a negative anti-matter recharge rate from a passive ability?  Then just make the cooldown long enought that by the time the ability is ready to cast again there is no anti-matter left.  The problem would be that it would only be one use ever, regardless of another player capturing it.  The solution would be to have all of the structures anti-mater restored when it is captured(maybe make that a secondary effect of what every ability you use to capture it, with a delay so that the anti-matter is only restored after the structure is captured.

One problem with the above is that there are anti-matter restoring units, so the anti-matter would need to be above anything a player could do.  Say 10000 anti-matter for the structure, ability costs 9500 with a 10 second plus cool down, a passive ability that drains 100+ a second, and have the ability auto-cast as soon as it can.

You would have: capture-> anti-matter restored -> ability auto-casts -> anti-matter zero by the time the ability is ready to cast again.

 

Reply #5 Top

Hmm...  Maybe an old trick from Empire at War will work...

Try setting the cooldown to -1.  That's how we gave ships invulnerability.  It'll probably cause a minidump, but it might be worth a try.

Reply #6 Top

set it to be a perioidic action with a single action on a buff with no finish conditions

 

Reply #7 Top

Hmmm.... SOunds interesting!!   :)

-Teal

 

Reply #8 Top

Quoting Terraziel, reply 6
set it to be a perioidic action with a single action on a buff with no finish conditions

 
End of Terraziel's quote

NOW THAS THE SPIRIT! THANKS!