#IF (%ismember(AllyManager,@czd_scripts)) {#IF (!@czd_scripts) {#ALIAS csver {#EC;#EC Cosmo Drazi Scripts;#IF (@czd_scripts) {#FORALL {@czd_scripts} {#IF (%mod(%ismember(%i,@czd_scripts),2)) {#ECHOPROMPT %i v} {#ECHOPROMPT %i;#EC}} {#EC No scripts are currently loaded.}}};#VAR czd_scripts {FfaManager|1.4}} {#ADDITEM czd_scripts {FfaManager|1.4}};#ALIAS eset {#T+ ffaset;es} {ally-manager};#ALIAS ffapick {#DELITEM ffalist {Player:#ADDITEM aset {Player}};#PICK @ffalist;#IF (@eset = noabort) {#IF (%trigger(allies)) {#T- allies;#T+ ffa-allies;#T+ ffa-manager};unally all;unenemy all;#VAR ffalist {%replace(@ffalist,'*')};#DELITEM ffalist {p:Select your allies};#DELITEM ffalist {Deselect this to cancel.:#VA eset noabort};#FORALL {@aset} {#delitem ffalist {%i:#ADDITEM aset {%i}}};#VAR eset %replace(@ffalist,:,|);#VAR eset %replace(@eset,~});#VAR eset %replace(@eset, ~{,|);#VAR eset %dups(@eset);#VAR eset %delitem("#ADDITEM aset ",@eset);#IF (@eset) {#FORALL {@eset} {#IF (!%ismember(%i,@enemylist)) {enemy %i}}};#IF (@aset) {#FORALL {@aset} {#IF (!%ismember(%i,@allylist)) {ally %i}}}}} {ally-manager};#VAR ffalist {} {_nodef} {ally-manager};#VAR aset {} {_nodef} {ally-manager};#VAR eset {} {_nodef} {ally-manager};#VAR allylist {} {_nodef} {ffa-allies};#VAR enemylist {} {_nodef} {ffa-allies};#VAR temp {%exec(#CH)};#PROMPT temp {Enter your character name:};#TRIGGER {(%w) has been slain in the Arena} {#IF (%trigger(ffa-allies)) {#IF (%ismember(%1,@allylist)) {unally %1};#IF (%ismember(%1,@enemylist)) {unenemy %1}}} {ffa-manager} 517;#TRIGGER {(%w) has died due to drowning.} {#IF (%trigger(ffa-allies)) {#IF (%ismember(%1,@allylist)) {unally %1};#IF (%ismember(%1,@enemylist)) {unenemy %1}}} {ffa-manager} 517;#TRIGGER {(%w) has bled to death.} {#IF (%trigger(ffa-allies)) {#IF (%ismember(%1,@allylist)) {unally %1};#IF (%ismember(%1,@enemylist)) {unenemy %1}}} {ffa-manager} 517;#TRIGGER {(%w) has been slain by} {#IF (%trigger(ffa-allies)) {#IF (%ismember(%1,@allylist)) {unally %1};#IF (%ismember(%1,@enemylist)) {unenemy %1}}} {ffa-manager} 517;#TRIGGER {You have slain (%w).} {#IF (%trigger(ffa-allies)) {#IF (%ismember(%1,@allylist)) {unally %1};#IF (%ismember(%1,@enemylist)) {unenemy %1}}} {ffa-manager} 517;#TRIGGER {^%dh, %dm %w-} {#t- ffacap;#ADDITEM ffalist {*Deselect this to cancel.:#VA eset noabort};ffapick} {ffacap} 577;#EXECUTE {#TRIGGER {^(%w)} {#IF (%1 != %proper(@temp)) {#ADDITEM ffalist {%literal(%if(%ismember(%1,@allylist),*))%1:#ADDITEM aset {%1}}}} {ffacap} 517};#TRIGGER {Player} {#t- ffaset;#t+ ffacap;#VAR ffalist "p:Select your allies";#VAR aset "";#VAR eset ""} {ffaset} 517;#TRIGGER {There is no event going on at the moment.} {#t- ffaset;#t- ffa-allies;#t+ allies} {ffaset} 645;#TRIGGER {{You have been defeated and are thrown out of the Arena|You have been victorious and leave the Arena in triumph|You are OUT of the combat free-for-all|The Matsuhama Arena is once again open for combat.|stands triumphant, the winner of the free-for-all.}} {#t- ffa-manager;ally restore} {ffa-manager} 517;#T- ffa-allies;#T- ffa-manager;#T- ffacap;#T- ffaset;#EC;#EC {FfaManager v%item(@czd_scripts,%ismember(FfaManager,@czd_scripts)+1) successfully installed.};#EC {Refer to http://www.geocities.com/cosmo_drazi/achaea/ffaman.html};#EC { for usage documentation.};#EC} {#EC;#EC {You have not installed AllyManager.};#EC {Please install AllyManager before you use FfaManager.};#EC {http://www.geocities.com/cosmo_drazi/achaea/allyman.html}}