Page 1 of 1

Force Allied/Unallied Player Trigger

Posted: November 26th, 2013, 3:30 am
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

Re: Force Allied/Unallied Player Trigger

Posted: November 26th, 2013, 5:13 pm
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 ##

Re: Force Allied/Unallied Player Trigger

Posted: November 26th, 2013, 9:38 pm
by One4Fun11
ah goodness.. thank you very much, this is gonna be fun :D

Re: Force Allied/Unallied Player Trigger

Posted: November 27th, 2013, 6:03 am
by zUsername
:D hope it useful to u