Results 1 to 6 of 6

Thread: Help with the code to Make Heroes Usable in Clan Wars While Upgrading.

  1. #1
    Fresh Spawn
    Join Date
    Jul 2015
    Posts
    3

    Help with the code to Make Heroes Usable in Clan Wars While Upgrading.

    Hi,

    I just read that the reason why supercell did not make it already is code issues.

    I was thinking about it and came with one simple solution:

    Make the heroes have 2 variables:
    upgradeTimeLeft
    CooldownTimeLeft

    The names speaks for itselves... So, now when going to attack the king is avaible:

    if (upgradeTimeLeft == 0 && CooldownTimeLeft==0) FOR NORMAL ATTACKS

    and

    if (CooldownTimeLeft==0) FOR CLAN WAR ATTACKS

    The upgradeTimeLeft can be attached to the hero's altar and the cooldownTimeLeft to the hero.

    I think it should do the job!

  2. #2
    OzAudi
    Guest
    I always enjoy a good laugh. Thanks for that.

  3. #3
    Forum Contender devil9394's Avatar
    Join Date
    May 2014
    Location
    In bed, just pretending I'm a carrot.
    Posts
    4,796
    Hello. If it would be this simple, then I imagine SuperCell would've done so long ago. Heroes usable in war while being upgraded is an idea which is around the forums for almost 1 year so I think SuperCell tried a lot of tests for this subject to see that it's not an easy thing to do.
    Quote Originally Posted by BRLESNAR View Post
    Mr.Devil does have a quality that he gives formal and good posts. A man of intellect, sorry, a demon of intellect.
    Quote Originally Posted by DaOneNOnly799 View Post
    It seems that we have a devilish devil here; that even the devil himself approves.
    "Trust those who seek the truth but doubt those who say they have found it."

  4. #4
    Fresh Spawn
    Join Date
    Jul 2015
    Posts
    3
    Quote Originally Posted by OzAudi View Post
    I always enjoy a good laugh. Thanks for that.
    have a better suggestion? Please, send it right here!

    Don't have? u're welcome to touch me =)

  5. #5
    Forum Master daz258's Avatar
    Join Date
    May 2013
    Location
    Australia
    Posts
    12,368
    Quote Originally Posted by thomasleick View Post
    have a better suggestion? Please, send it right here!

    Don't have? u're welcome to touch me =)
    I am no coder but if it was that simple, like Devil said I would have thought it would be happening now.

    SuperCell have not said as such but I expect the gems it makes it why it is been delayed. I have proposed a pause solution instead as some compromise. We get them in war, price been upgrade and builder busy for longer.

    As it has not been ruled out I am hopeful we will get our heroes in war soon, while it will not affect me much longer with 40/40 heroes coming.

    I have missed a lot of wars because of it, as have my clan mates. War is the most fun part of the game but many do not want to participate with a hand tied behind their back.
    Former Clasher
    Hay Day Farmer Lv 79, Town 23
    Of Chill Reputations - A different way to farm

  6. #6
    Trainee
    Join Date
    Jul 2015
    Location
    The restraint at the end of the universe
    Posts
    10

    That wouldn't work

    I code a little and if that was the case then well any code is not that simple that would require some more detailing and a lot more well ways to go wrong so yea let the pros do this

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •