[System] PvP

S

shadowvzs

Guest
this system is leakable??

Code:
PvP
    Events
        Unit - A unit Is attacked
    Conditions
        ((Owner of (Attacked unit)) is an ally of (Owner of (Attacking unit))) Equal to True
        ((Owner of (Attacking unit)) controller) Equal to User
        (Owner of (Attacking unit)) Not equal to (Owner of (Attacked unit))
    Actions
        Game - Display to (All players) the text: ((Name of (Attacking unit)) +  is attacked his alliance, attacked unit automatical begin self defens system (heal half damage).)
        Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + ((Damage taken) / 2.00))
        Set Temp_point[2] = (Position of (Attacked unit))
        Cinematic - Ping minimap for (All players) at Temp_point[2] for 3.00 seconds
        Custom script:   call RemoveLocation(udg_Temp_point[2])
Code:
PvP Die
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Killing unit)) is an ally of (Owner of (Dying unit))) Equal to True
        ((Owner of (Killing unit)) controller) Equal to User
        (Level of Killing Level  for (Dying unit)) Equal to 0
        (Owner of (Dying unit)) Not equal to (Owner of (Killing unit))
    Actions
        Unit - Change color of (Killing unit) to (Color of Neutral Extra)
        Set Temp_point[2] = (Position of (Dying unit))
        Cinematic - Ping minimap for (All players) at Temp_point[2] for 3.00 seconds
        Custom script:   call RemoveLocation(udg_Temp_point[2])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) is A Hero) Equal to True
            Then - Actions
                Unit - Set mana of (Killing unit) to 0.00%
                Unit - Set life of (Killing unit) to ((Life of (Killing unit)) / 10.00)
                Set Tempory_nr[28] = ((Owner of (Killing unit)) Current gold)
                Player - Set (Owner of (Killing unit)) Current gold to (Tempory_nr[28] / 2)
                Unit - Remove All buffs from (Killing unit)
                Game - Display to (Player group((Owner of (Dying unit)))) the text: ((Name of (Killing unit)) + ( killed his allance Hero  + ((Name of (Dying unit)) + , now attacker unit lose 50% life and 100% mana and half gold and dispel all buff on killer unit.)))
            Else - Actions
                Unit - Set mana of (Killing unit) to 0.00%
                Unit - Remove All buffs from (Killing unit)
                Unit - Set life of (Killing unit) to ((Life of (Killing unit)) / 2.50)
                Player - Set (Owner of (Killing unit)) Current gold to (((Owner of (Killing unit)) Current gold) - 500)
                Game - Display to (Player group((Owner of (Dying unit)))) the text: ((Name of (Attacking unit)) + ( killed his allance unit  + ((Name of (Dying unit)) + , now attacker unit lose 40% life and 100% mana and 500 gold and dispel all buff on killer unit.)))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Killing Level  for (Killing unit)) Equal to 0
            Then - Actions
                Unit - Add Killing Level  to (Killing unit)
            Else - Actions
                Unit - Increase level of Killing Level  for (Killing unit)
        Game - Display to (All players) the text: (((Name of (Killing unit)) + ( is stage  + (String((Level of Killing Level  for (Killing unit)))))) + ( killer, who kill him rich with gold, his price is  + (String(((Level of Killing Level  for (Killing unit)) x 1000)))))

Code:
Killer Stage Clearing
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) controller) Equal to User
        (Level of Killing Level  for (Dying unit)) Greater than 0
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Killing Level  for (Dying unit)) Greater than 1
            Then - Actions
                Unit - Decrease level of Killing Level  for (Dying unit)
                Game - Display to (All players) the text: (((Name of (Dying unit)) + ( is stage  + (String((Level of Killing Level  for (Dying unit)))))) + ( killer, who kill him rich with gold, his price is  + (String(((Level of Killing Level  for (Dying unit)) x 1000)))))
            Else - Actions
                Unit - Remove Killing Level  from (Dying unit)
                Unit - Change color of (Killing unit) to (Color of (Owner of (Dying unit)))
                Game - Display to (All players) the text: ((Name of (Dying unit)) +  now his hero spirit is clear, he is not killer.)

FIXED

custom atribute ability (killing level ability)
PvP.GIF
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
I guarantee you if I play your map
Code:
    Events
        Unit - A unit Is attacked
    Conditions
        ((Owner of (Attacked unit)) is an ally of (Owner of (Attacking unit))) Equal to True
    Actions
        Unit - Set mana of (Attacking unit) to 0.00%
        Unit - Set life of (Attacking unit) to 70.00%
        Game - Display to (All players) the text: ((Name of (Attacking unit)) +  attacked his alliance, attacker unit lose all mana.)
will be abused to the fullest... If im low hp I will attack my ally and get 70% hp no problem :D .
 

pheonixashes

Those who misplace trust in gods learn their fate.
Reaction score
65
Instead of doing that, couldn't you just disable the attack of the attacking unit for a couple minutes, and then heal the ally for however amount of health it was damaged for?
 

denmax

You can change this now in User CP.
Reaction score
155
70% then if his life is below 70%, it will increase.. just leave it to be..
Also in the 1%, if the Killing Unit's life is under 1% (.05% for example) then his hp would also increase so, make it 0.01%..

Anyway, more PvP Systems exist for example..
You lost money by killing (bounty payment)
Negative Money Regeneration (More like Tax)
Loses life until death/after limit..
Get killed as well..
Ally has a chance to kill you without negative benefits.. (Self Defense)
Etc,,
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
u leak a player group:
Code:
Game - Display to (Player group((Owner of (Dying unit))))
leaks....
 
S

shadowvzs

Guest
this is the correct custom script?

"Custom script: call DestroyGroup( udg_PlayerGroupVariable )" ?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top