Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Help with transformation coding


Whitepinkbun
 Share

Recommended Posts

Hey guys i am tryin to get the transformation spell working in my game…. for pokemon evolutions but when i use it i get the heal with 0+ constantly pooring above my head.... any ideas? \

    Select Case SpellCastType
        Case 0 ' self-cast target
            Select Case Spell(spellnum).Type
                Case SPELL_TYPE_HEALHP
                    SpellPlayer_Effect Vitals.HP, True, index, Vital, spellnum
                    If Spell(spellnum).Sprite > 0 Then
                        SendAnimation MapNum, Spell(spellnum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, index
                        SetPlayerSprite index, Spell(spellnum).Sprite
                        Call SendPlayerData(index)
                    End If
                    DidCast = True
                Case SPELL_TYPE_HEALMP
                    SpellPlayer_Effect Vitals.MP, True, index, Vital, spellnum
                    If Spell(spellnum).Sprite > 0 Then
                        SendAnimation MapNum, Spell(spellnum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, index
                        SetPlayerSprite index, Spell(spellnum).Sprite
                        Call SendPlayerData(index)
                    End If
                    DidCast = True
                Case SPELL_TYPE_WARP
                    SendAnimation MapNum, Spell(spellnum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, index
                    PlayerWarp index, Spell(spellnum).Map, Spell(spellnum).x, Spell(spellnum).y
                    SendAnimation GetPlayerMap(index), Spell(spellnum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, index
                    DidCast = True
                Case SPELL_TYPE_PET
                    SpawnPet index, GetPlayerMap(index), Spell(spellnum).PetNum
                    DidCast = True
            End Select

^ think itd be in there any help is apreciated cheers
Link to comment
Share on other sites

@Whitepinkbun:

> Wont that get rid of the spell effect for my actual heals too :D? Thanks for the response btw :)
>
> Ah never mind lol.
> Made a new spell type fixed the problem by duplicating the heal case and removing the part you said too :D Thanks for the help man!

Hah, no problem :cheesy:
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...