[Script] Hyper Sonic and Hyper Knuckles script

MotdSpork

Mafia? Zombies? Gold spork?
ya i want brighter colors but it uses the colors that you can be in netgames. also please dont let there be any seizures. that is not good for my reputation....
 

Sapheros

Member
Honestly, this script is awesome (quick, 7 more special stages! :3), but I would like for the script to support ALL of hyper sonic's moves. Hyper Sonic's dash can move in different directions, holding down while dashing gave hyper a stomp dash relate-able to the bounce shield, and holding up while dashing gave sonic a double jump. So maybe these buttons can be put for custom 1 and 2?
 
i would but i cant. as far as i know, that is coded in game. and cant be changed

I'm not one hundred percent sure, but I think you could change thokitem, spinitem, and revitem to 0 (or MT_NULL?) and then make it spawn the mobj "MT_THOK" manually, setting th color to your player's current color, as you did with the ghost trail effect.
 

wolfs

Watch Symphogear
Sonic Team Junior
Kart Krew™️
Judge
I'm not one hundred percent sure, but I think you could change thokitem, spinitem, and revitem to 0 (or MT_NULL?) and then make it spawn the mobj "MT_THOK" manually, setting th color to your player's current color, as you did with the ghost trail effect.

Not even that. player.skincolor doesn't set player.mo.color IIRC which thokitems/spinitems/revitems are generated based on. Using player.mo.color would likely force the same colors and have them still affect spin and thok mobjs.
 
Not even that. player.skincolor doesn't set player.mo.color IIRC which thokitems/spinitems/revitems are generated based on. Using player.mo.color would likely force the same colors and have them still affect spin and thok mobjs.

What I meant was, as his script sets the color of the ghostmobjs, set the color of an external thok item to the same color at the same time. It's just that it would take up a few lines, as the cycle uses many different colors.
 

Elyos03

↑↑↓↓←→←→ B A START
ya i want brighter colors but it uses the colors that you can be in netgames. also please dont let there be any seizures. that is not good for my reputation....

Can you make it better? Example: Transform into Super Sonic than press Custom 2 to turn into Hyper Sonic and press Custom 2 again to turn back into Super Sonic.
 

MotdSpork

Mafia? Zombies? Gold spork?
Welp, gave this old dusty thing an update. Knuckles is shown some love this time around? Check Changelog for details.
 
Hey, I have a question
Where abouts in the code is the sparkle placement?
I'm trying to set it so it's nice and close together like the original Hyper Sonic from ye olde days of 1.09.4 (and make it so only 8 sparkles appear)
 

carlrev

The living revolution
Can someone please help me? I want to change Shadow's Hyper palette from this:
if player.mo.hyperflashcolor < 4
or player.mo.hyperflashcolor == 37
player.mo.color = SKINCOLOR_PINK
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 20
end

if player.mo.hyperflashcolor > 3
and player.mo.hyperflashcolor < 7
player.mo.color = SKINCOLOR_TAN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 6
and player.mo.hyperflashcolor < 10
player.mo.color = SKINCOLOR_GOLD
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 8
end

if player.mo.hyperflashcolor > 9
and player.mo.hyperflashcolor < 13
player.mo.color = SKINCOLOR_YELLOW
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 12
and player.mo.hyperflashcolor < 16
player.mo.color = SKINCOLOR_NEONGREEN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 5
end

if player.mo.hyperflashcolor > 15
and player.mo.hyperflashcolor < 19
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 18
and player.mo.hyperflashcolor < 22
player.mo.color = SKINCOLOR_CYAN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 13
end

if player.mo.hyperflashcolor > 21
and player.mo.hyperflashcolor < 25
player.mo.color = SKINCOLOR_TEAL
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 24
and player.mo.hyperflashcolor < 28
player.mo.color = SKINCOLOR_STEELBLUE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 18
end

if player.mo.hyperflashcolor > 27
and player.mo.hyperflashcolor < 31
player.mo.color = SKINCOLOR_PURPLE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 30
and player.mo.hyperflashcolor < 34
player.mo.color = SKINCOLOR_LAVENDER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 14
end

if player.mo.hyperflashcolor > 33
and player.mo.hyperflashcolor < 37
player.mo.hyperflashcolor = 1
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end
end
end
end
end)

Into this:
if player.mo.hyperflashcolor < 4
or player.mo.hyperflashcolor == 37
player.mo.color = SKINCOLOR_GREY
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 20
end

if player.mo.hyperflashcolor > 3
and player.mo.hyperflashcolor < 7
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 6
and player.mo.hyperflashcolor < 10
player.mo.color = SKINCOLOR_WHITE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 8
end

if player.mo.hyperflashcolor > 9
and player.mo.hyperflashcolor < 13
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 12
and player.mo.hyperflashcolor < 16
player.mo.color = SKINCOLOR_GREY
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 5
end

if player.mo.hyperflashcolor > 15
and player.mo.hyperflashcolor < 19
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 18
and player.mo.hyperflashcolor < 22
player.mo.color = SKINCOLOR_WHITE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 13
end

if player.mo.hyperflashcolor > 21
and player.mo.hyperflashcolor < 25
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 24
and player.mo.hyperflashcolor < 28
player.mo.color = SKINCOLOR_GREY
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 18
end

if player.mo.hyperflashcolor > 27
and player.mo.hyperflashcolor < 31
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 30
and player.mo.hyperflashcolor < 34
player.mo.color = SKINCOLOR_WHITE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 14
end

if player.mo.hyperflashcolor > 33
and player.mo.hyperflashcolor < 37
player.mo.hyperflashcolor = 1
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end
end
end
end
end)

But his palette stays just like Sonic's. I want Shadow's Hyper palette to be like in Sonic Megamix 5.0A, but I can't figure out how to change the colors by not only naming different colors. Can anyone help me out?
 
Can someone please help me? I want to change Shadow's Hyper palette from this:
if player.mo.hyperflashcolor < 4
or player.mo.hyperflashcolor == 37
player.mo.color = SKINCOLOR_PINK
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 20
end

if player.mo.hyperflashcolor > 3
and player.mo.hyperflashcolor < 7
player.mo.color = SKINCOLOR_TAN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 6
and player.mo.hyperflashcolor < 10
player.mo.color = SKINCOLOR_GOLD
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 8
end

if player.mo.hyperflashcolor > 9
and player.mo.hyperflashcolor < 13
player.mo.color = SKINCOLOR_YELLOW
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 12
and player.mo.hyperflashcolor < 16
player.mo.color = SKINCOLOR_NEONGREEN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 5
end

if player.mo.hyperflashcolor > 15
and player.mo.hyperflashcolor < 19
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 18
and player.mo.hyperflashcolor < 22
player.mo.color = SKINCOLOR_CYAN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 13
end

if player.mo.hyperflashcolor > 21
and player.mo.hyperflashcolor < 25
player.mo.color = SKINCOLOR_TEAL
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 24
and player.mo.hyperflashcolor < 28
player.mo.color = SKINCOLOR_STEELBLUE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 18
end

if player.mo.hyperflashcolor > 27
and player.mo.hyperflashcolor < 31
player.mo.color = SKINCOLOR_PURPLE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 30
and player.mo.hyperflashcolor < 34
player.mo.color = SKINCOLOR_LAVENDER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 14
end

if player.mo.hyperflashcolor > 33
and player.mo.hyperflashcolor < 37
player.mo.hyperflashcolor = 1
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end
end
end
end
end)

Into this:
if player.mo.hyperflashcolor < 4
or player.mo.hyperflashcolor == 37
player.mo.color = SKINCOLOR_GREY
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 20
end

if player.mo.hyperflashcolor > 3
and player.mo.hyperflashcolor < 7
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 6
and player.mo.hyperflashcolor < 10
player.mo.color = SKINCOLOR_WHITE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 8
end

if player.mo.hyperflashcolor > 9
and player.mo.hyperflashcolor < 13
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 12
and player.mo.hyperflashcolor < 16
player.mo.color = SKINCOLOR_GREY
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 5
end

if player.mo.hyperflashcolor > 15
and player.mo.hyperflashcolor < 19
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 18
and player.mo.hyperflashcolor < 22
player.mo.color = SKINCOLOR_WHITE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 13
end

if player.mo.hyperflashcolor > 21
and player.mo.hyperflashcolor < 25
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 24
and player.mo.hyperflashcolor < 28
player.mo.color = SKINCOLOR_GREY
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 18
end

if player.mo.hyperflashcolor > 27
and player.mo.hyperflashcolor < 31
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 30
and player.mo.hyperflashcolor < 34
player.mo.color = SKINCOLOR_WHITE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 14
end

if player.mo.hyperflashcolor > 33
and player.mo.hyperflashcolor < 37
player.mo.hyperflashcolor = 1
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end
end
end
end
end)

But his palette stays just like Sonic's. I want Shadow's Hyper palette to be like in Sonic Megamix 5.0A, but I can't figure out how to change the colors by not only naming different colors. Can anyone help me out?
Just copy the code from Sonic and replace all instances of Sonic with Shadow
 

LZA

Developer
Sonic Team Junior
if player.mo.hyperflashcolor < 4
or player.mo.hyperflashcolor == 37
player.mo.color = SKINCOLOR_PINK
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 20
end

if player.mo.hyperflashcolor > 3
and player.mo.hyperflashcolor < 7
player.mo.color = SKINCOLOR_TAN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 6
and player.mo.hyperflashcolor < 10
player.mo.color = SKINCOLOR_GOLD
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 8
end

if player.mo.hyperflashcolor > 9
and player.mo.hyperflashcolor < 13
player.mo.color = SKINCOLOR_YELLOW
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 12
and player.mo.hyperflashcolor < 16
player.mo.color = SKINCOLOR_NEONGREEN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 5
end

if player.mo.hyperflashcolor > 15
and player.mo.hyperflashcolor < 19
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 18
and player.mo.hyperflashcolor < 22
player.mo.color = SKINCOLOR_CYAN
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 13
end

if player.mo.hyperflashcolor > 21
and player.mo.hyperflashcolor < 25
player.mo.color = SKINCOLOR_TEAL
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 24
and player.mo.hyperflashcolor < 28
player.mo.color = SKINCOLOR_STEELBLUE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 18
end

if player.mo.hyperflashcolor > 27
and player.mo.hyperflashcolor < 31
player.mo.color = SKINCOLOR_PURPLE
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end

if player.mo.hyperflashcolor > 30
and player.mo.hyperflashcolor < 34
player.mo.color = SKINCOLOR_LAVENDER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 14
end

if player.mo.hyperflashcolor > 33
and player.mo.hyperflashcolor < 37
player.mo.hyperflashcolor = 1
player.mo.color = SKINCOLOR_SILVER
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 4
ghost.color = 2
end
end
end
end
end)

tXj4l79.png

What am I reading
 
Top