Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FF2_SetBossSpecial for v2 #357

Open
shadow93 opened this issue Jan 24, 2016 · 0 comments
Open

FF2_SetBossSpecial for v2 #357

shadow93 opened this issue Jan 24, 2016 · 0 comments

Comments

@shadow93
Copy link
Contributor

Since we have FF2_GetBossSpecial, why not FF2_SetBossSpecial? Could work for bosses that in one of their abilities, use a different name while that form is active, than in their normal form.

A notorious example is the Hyperdimension Neptunia CPUs, which both have a "human" (e.g. Neptune) and a "hdd" form (e.g. Purple Heart).

Or for example, Anakin Skywalker / Darth Vader.

Or the Hulk, and his normal form.

would work like this:

native bool:FF2_SetBossSpecial(boss=0, String:name[], clientMeaning=0);
public bool:SetBossSpecial(boss, String:bossName[], clientMeaning)
{
    if(clientMeaning)  //characters.cfg
    {
        if(boss<0 || !BossKV[boss])
        {
            return false;
        }
        KvRewind(BossKV[boss]);
        KvSetString(BossKV[boss], "name", bossName);
    }
    else  //Special[] array
    {
        if(boss<0 || Special[boss]<0 || !BossKV[Special[boss]])
        {
            return false;
        }
        KvRewind(BossKV[Special[boss]]);
        KvSetString(BossKV[Special[boss]], "name", bossName);
    }
    return true;
}

public Native_SetBossSpecial(Handle:plugin, numParams)
{
    decl String:bossName[512];
    GetNativeString(2, bossName, 512);
    new bool:bossExists=SetBossSpecial(GetNativeCell(1), bossName, GetNativeCell(3));
    return bossExists;
}
@winstliu winstliu added this to the 2.0.0 milestone Jan 24, 2016
@naydef naydef removed this from the 2.0.0 milestone Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants