FF2-Official icon indicating copy to clipboard operation
FF2-Official copied to clipboard

Allow choosing of bosses

Open GIANTCRAB opened this issue 10 years ago • 15 comments

Hello,

I feel that this feature could be added in 2.0 for FF2. If the player chooses the boss he/she wants, his/her boss will have lower HP (adjustable via ff2 .cfg file) than having a random boss.

Thank you.

GIANTCRAB avatar Apr 08 '14 07:04 GIANTCRAB

Already available through /ff2_special <boss>.

50Wliu avatar Apr 08 '14 19:04 50Wliu

To expand on what crab is asking, see this plugin: https://forums.alliedmods.net/showthread.php?t=197273

WildCard65 avatar Apr 08 '14 22:04 WildCard65

I'm pretty sure that just invokes ff2_special.

50Wliu avatar Apr 09 '14 00:04 50Wliu

@WildCard65, yeah, that's what I meant.

Right now only admins can choose the next boss. But if players are able to invoke the ff2_special, it would be a massive troll game whereby they keep spamming saxton hale. (because Saxton hale is the most unbuffed/weakest boss)

So, the improvised version would be only the true next hale is able to select the boss he/she wants.

GIANTCRAB avatar Apr 09 '14 00:04 GIANTCRAB

I might change ff2_special to accept a client parameter in 2.0.0, eg ff2_special <name> <boss>. That's the extent of what I'm doing though, since FF2 was created to have randomized bosses, and I intend to keep it that way.

50Wliu avatar Apr 09 '14 01:04 50Wliu

Would tag this for 2.0.0 and "enhancement", but Chrome...

50Wliu avatar Apr 09 '14 01:04 50Wliu

Wliu, the plugin I linked to works like this(also, no html tags for code or spoilers?):

public Command_SetMyBossH(Handle:menu, MenuAction:action, param1, param2)
{
    if (action != MenuAction_Select) return;
    decl String:Special_Name[64];
    decl Handle:BossKV;
    for (new i = 0; (BossKV=FF2_GetSpecialKV(i,true)) && i < param2; i++)
        if (KvGetNum(BossKV, "blocked",0)) param2++;
    KvGetString(BossKV, "name",Special_Name, 64);
    Incoming[param1] = param2;
    ReplyToCommand(param1, "[FF2] Set your boss to %s", Special_Name);
}

public Action:FF2_OnSpecialSelected( index, &SpecialNum, String:SpecialName[])
{
    new client=GetClientOfUserId(FF2_GetBossUserId(index));
    if (!index && Incoming[client] != -1)
    {
        strcopy(SpecialName,2,"");
        SpecialNum = Incoming[client];
        Incoming[client] = -1;
        return Plugin_Changed;
    }
    return Plugin_Continue;
}

WildCard65 avatar Apr 09 '14 15:04 WildCard65

Mmm.

For large code blocks, use ```at the beginning and end of the code block. For inline code blocks, just useat the beginning and end. For quotes, use>`. No spoilers.

50Wliu avatar Apr 09 '14 19:04 50Wliu

Oh wonderful, Github screwed up the formatting.

What I meant: ``` for large code blocks and ` for inline ones. Hopefully this works...

50Wliu avatar Apr 09 '14 19:04 50Wliu

OK, SERIOUSLY NOW.

and

`

50Wliu avatar Apr 09 '14 19:04 50Wliu

I give up. I formally give up. Just use 3 for large ones and one for small ones.

50Wliu avatar Apr 09 '14 19:04 50Wliu

`

50Wliu avatar Apr 09 '14 19:04 50Wliu

I found out it's ` * 3 for before and after, thx for trying to show it for me Wliu

WildCard65 avatar Apr 09 '14 19:04 WildCard65

After talking to Shadow about this, I've decided to do the following:

  • Implement /ff2boss <boss> and /ff2_boss <boss>
  • Create a cvar for this that will be disabled by default

50Wliu avatar Oct 27 '14 21:10 50Wliu

Great

ghost avatar Oct 29 '14 13:10 ghost