1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How to forbid/block CHEATS!?

Discussion in 'Triggers & Scripts' started by slovak27, Oct 2, 2013.

  1. slovak27

    slovak27

    Joined:
    Aug 10, 2010
    Messages:
    64
    Resources:
    0
    Resources:
    0
    1. Guys how to block Greedisgood or whosyourdaddy in map? :p (singleplayer)
    I really have not any idea.

    2.Other question in spell :p how to block ability in fight - HEAL
    You can heal after you ended battle not in battle.I think it is simple but no idea too :D
     
  2. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    1. use event Player chat a message (but i don't know the next, lol)
    2. i have no idae what are you talking about
     
  3. slovak27

    slovak27

    Joined:
    Aug 10, 2010
    Messages:
    64
    Resources:
    0
    Resources:
    0
    1. This metod do not working with cheats!(of course that i tried this i am not a new in triggers)
    2.what do you don t understand, I have Hero who is an attack and i need trigger that if hero is in battle he cannot use the ability :).
     
  4. Dark_Axl

    Dark_Axl

    Joined:
    Dec 12, 2007
    Messages:
    473
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    1.
    about that greedisgood cheat, if you know the maximum gold/lumber player can get in single instance, you can use a timer with 0.25 sec interval which saves all players's gold and lumber (for gold example g1). each tick of the timer, you check the difference between g1 and current gold, and if the difference is greater than the maximum threshold for gold gain per tick, that player is using cheat, return their gold value to g1. the downside of this workaround, player can just cheat a low value repetitively to avoid check.

    for whosyourdaddy cheat, set up 2 units for each player, 1 with 10 hitpoint with 100 hp regen with no attack, the other one has attack damage of 1 with 0.25 attack cooldown. give the ownership of attack unit to the each player and give the high hp unit to neutrals. order the unit with attack to attack the high hp unit. then run a timer in 0.25 sec interval. each tick of timer, check if the high hp is alive. whosyourdaddy cheat multiply damage dealt by 100, if the player is using whosyourdaddy cheat, that high hp unit will be dead, after that decide what you want to do with it.

    2.
    about that block ability, you can trigger the ability to check if the caster is in combat before heal take place (probably via boolean and hashtable), if its in combat, don't do the spell effect.
     
  5. slovak27

    slovak27

    Joined:
    Aug 10, 2010
    Messages:
    64
    Resources:
    0
    Resources:
    0
    1.Done
    2.Still don t know how :p I was finding triggers in boolean but i don t know how to do that :) can someone post the trigger with Heal ability which can not by be use if my unit is attacked by other unit? :)
     
  6. mikagami

    mikagami

    Joined:
    Aug 9, 2012
    Messages:
    112
    Resources:
    0
    Resources:
    0
    here :

    HOW about u create a ttrigger that BUFF your attacked UNIT,
    yes attacked unit as ur desire as u mean combat area , combat mode or whatever, im pretty sure that began with taking damage.
    then u create a dummy to cast WHATEVER buff to your attacked unit... drunken haze or many more....

    then the heal spell...
    use channel or else that dont base ON HEALING....

    the unit starts the effect of an ability,
    condition if the triggeirng unit has specific buff not equal to true
    then u set the heal you want....


    also u can modify the buff as u wish, the duration and also dont forget to remove the buff after combat, simple as that :D

    its jst a suggestion thou
     
  7. GreeN!X

    GreeN!X

    Joined:
    Oct 20, 2012
    Messages:
    2,346
    Resources:
    2
    Maps:
    1
    Template:
    1
    Resources:
    2
  8. slovak27

    slovak27

    Joined:
    Aug 10, 2010
    Messages:
    64
    Resources:
    0
    Resources:
    0
    1.DONE
    2.DONE

    Thanks :)
     
  9. mikagami

    mikagami

    Joined:
    Aug 9, 2012
    Messages:
    112
    Resources:
    0
    Resources:
    0
    Sooo does it works as u wish? :)
     
  10. Dat-C3

    Dat-C3

    Joined:
    Mar 15, 2012
    Messages:
    2,469
    Resources:
    10
    Models:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    1
    Resources:
    10
    You could just disable single-player all together.
     
  11. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,936
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    just link your tuto here
     
  12. Dat-C3

    Dat-C3

    Joined:
    Mar 15, 2012
    Messages:
    2,469
    Resources:
    10
    Models:
    1
    Maps:
    5
    Spells:
    3
    Tutorials:
    1
    Resources:
    10
    Tuh Da

    ^Link to learning how to disable single-player, but enable LAN.
     
  13. slovak27

    slovak27

    Joined:
    Aug 10, 2010
    Messages:
    64
    Resources:
    0
    Resources:
    0
    Yes, everything works perfectly.Thank you all :) ... SOLVED