Ally attacking question

KojiR

New Member
Reaction score
3
Code:
Stop TK
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacking unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True
    Actions
        Unit - Pause (Attacking unit)
        Game - Display to (All players controlled by a ((Owner of (Attacking unit)) controller) player) for 5.00 seconds the text: "Random Error"
        Unit - Unpause (Attacking unit)

:) hope it works..

Edit: Just tested it - it works
Edit2: You dont need the message there, btw.. but it spams them until they stop attacking, try it out xD
 

Weirdoze

New Member
Reaction score
6
Hmm, should add a wait of 0.01 sec to Pause (here) Unpause, and why random error xD?
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Code:
No Attack Allies
    Events
        Unit - A unit Is attacked
    Conditions
        ((Triggering unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
    Actions
        Unit - Order (Attacking unit) to Stop

Edit:

Damn beaten, but my is simplier XDDD
 

KojiR

New Member
Reaction score
3
Lol, i love giving random errors, you don't need the wait - but you can add it if you want.

The error, well i like them being puzzled :D
 

KojiR

New Member
Reaction score
3
yea, ill use yours :D^^simplier

the reason why i paused the unit is that the stop one can be exploited. If you played Defiance's RPG, you could exploit the ally attacking mechanism if you had any spells that procced. The pause/unpause cancels abilities too.
 

Weirdoze

New Member
Reaction score
6
the reason why i paused the unit is that the stop one can be exploited. If you played Defiance's RPG, you could exploit the ally attacking mechanism if you had any spells that procced. The pause/unpause cancels abilities too.

hmm, yea actually i have played defiances ORPG ^^ and u are right in that.
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Doesn't matter, Pause stops spells, but so what? You won't really cast a storm bolt on your ally unless you check the targets allowed to friend. And if you do that, it's supposed to hit allies.
 

KojiR

New Member
Reaction score
3
Good ol' defiance's, too bad he got a gf and had real life to attend to.. -_-
Yeah, if you were a scout you could kill all the villagers..

@Draphoelix
No, I mainly meant orb effects instead of spells, if they proc they can kill the villagers / allies..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top