Force Allied/Unallied Player Trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
One4Fun11
Junior Member
Posts: 25
Joined: August 24th, 2013, 1:18 pm
Title: *Pahlawan*Curang*
Location: Indonesia

Force Allied/Unallied Player Trigger

Post by One4Fun11 »

I Really Interest To Trolling Friends Make Them Unallied or Allied. And I Really Confused How To Make The Trigger In Jass, Can Anyone Make The Trigger? With The Command -friend/enemy ## ## (which makes the 1st slot player unallied/allied the 2nd slot player), I'll Wait It ;-)

Thanks alot for the help :D
Forgive Me Whenever My English Typing Is So Badly :? , Because It Was Not My Native Language :roll:
But Truly Thankfully With The Google Translate Helps :D
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: Force Allied/Unallied Player Trigger

Post by zUsername »

Code: Select all

 
elseif SubString(s2s,0,4)=="-aa "and S2I(SubString(s2s,4,6))<16 and S2I(SubString(s2s,7,9))<16 and S2I(SubString(s2s,4,6))>-1 and S2I(SubString(s2s,7,9))>-1then
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(s2s,4,6))),Player(S2I(SubString(s2s,7,9))),true)
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(s2s,7,9))),Player(S2I(SubString(s2s,4,6))),true)
call SetPlayerAllianceStateVisionBJ(Player(S2I(SubString(s2s,4,6))),Player(S2I(SubString(s2s,7,9))),true)
elseif SubString(s2s,0,4)=="-ua "and S2I(SubString(s2s,4,6))<16 and S2I(SubString(s2s,7,9))<16 and S2I(SubString(s2s,4,6))>-1 and S2I(SubString(s2s,7,9))>-1then
call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(s2s,7,9))),Player(S2I(SubString(s2s,4,6))),false)
 call SetPlayerAllianceStateAllyBJ(Player(S2I(SubString(s2s,4,6))),Player(S2I(SubString(s2s,7,9))),false)
put this code to JJCP and done
-aa ## ## make ## be friend with ## ( like what u said)
-ua ## ## make ## be an enemy with ##
User avatar
One4Fun11
Junior Member
Posts: 25
Joined: August 24th, 2013, 1:18 pm
Title: *Pahlawan*Curang*
Location: Indonesia

Re: Force Allied/Unallied Player Trigger

Post by One4Fun11 »

ah goodness.. thank you very much, this is gonna be fun :D
Forgive Me Whenever My English Typing Is So Badly :? , Because It Was Not My Native Language :roll:
But Truly Thankfully With The Google Translate Helps :D
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: Force Allied/Unallied Player Trigger

Post by zUsername »

:D hope it useful to u