SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Help

Reply
 
Thread Tools Search this Thread
Old 11-19-2014   #1
STHE123O
Little Monster
 
STHE123O's Avatar
Default How to make my character turn super?

I have a character with the Homming attack ability. I tried with the flag SF_SUPER, but it didnt worked. Is there a way to make it go super without using LUA?

Thanks anyway!
STHE123O is offline   Reply With Quote
Old 11-19-2014   #2
frozenLake
 
frozenLake's Avatar
Default

Nope, unless you are playing match/ctf.

Sorry!

Edit: Also, to note, if you have SF_SUPER on while super, you will have Super Sonic's Float, instead of any other abilities.

If you wish that to be the case, you can use this lua code.

Code:
addHook("ThinkFrame", do
        for player in players.iterate
		if player.mo.skin == "skin_name"
		player.charflags = $1 | SF_SUPER
		end
        end
end)
Otherwise, you can use this longer code.

Code:
addHook("ThinkFrame", do
        for player in players.iterate
		if player.mo.skin == "skin_name"
			if player.powers[pw_super]
			player.powers[pw_emeralds] = 127
			player.charflags = $1 & !SF_SUPER
			else
			player.charflags = $1 | SF_SUPER
			end
		end
        end
end)
I hope that helped your goals!

Last edited by frozenLake; 11-19-2014 at 05:43 PM.
frozenLake is offline   Reply With Quote
Old 11-19-2014   #3
r543
Default

the flag SF_SUPER gets removed if your character isn't sonic, but you could set it on if it's off with lua, which would allow a super transformation but you would also get the super sonic float(and only the yellow color).

It's not possible without lua and the lua one is a bit limited.
r543 is offline   Reply With Quote
Old 11-19-2014   #4
frozenLake
 
frozenLake's Avatar
Default

Also to note another factor: Players cannot get colors other than the yellow super sonic color, unless one ends up using more lua in order to manually change the colors.
frozenLake is offline   Reply With Quote
Old 11-19-2014   #5
STHE123O
Little Monster
 
STHE123O's Avatar
Default

Quote:
Originally Posted by Nomekop View Post
Also to note another factor: Players cannot get colors other than the yellow super sonic color, unless one ends up using more lua in order to manually change the colors.
Yellow color is ok!
So, the code you gave me allows super transformation? Or just Super Sonic float ability?
STHE123O is offline   Reply With Quote
Old 11-19-2014   #6
frozenLake
 
frozenLake's Avatar
Default

Both allow for the super transformation, but the second code allows for using the abilities from Match such as the super whirlwind jump that tails has, while the first code locks you into using Super Sonic's Floating ability...

So either Super Float or Ability based super ability, take your pick.
frozenLake is offline   Reply With Quote
Old 11-19-2014   #7
STHE123O
Little Monster
 
STHE123O's Avatar
Default

Quote:
Originally Posted by Nomekop View Post
Both allow for the super transformation, but the second code allows for using the abilities from Match such as the super whirlwind jump that tails has, while the first code locks you into using Super Sonic's Floating ability...

So either Super Float or Ability based super ability, take your pick.
Thank you! How do I put the code in? Just copy and paste it in S_SKIN?
Sorry for so many questions
STHE123O is offline   Reply With Quote
Old 11-19-2014   #8
"Lat'"
Stop it
 
"Lat'"'s Avatar
Default

Create an entry that you will name LUA_SUPR for instance, and throw in the code.
__________________
Quote:
Originally Posted by Bronydude2k5 View Post
If you make me a Sash Lilac wad, I'll make you a sonic sprite hack of any choice.
"Lat'" is offline   Reply With Quote
Old 11-19-2014   #9
frozenLake
 
frozenLake's Avatar
Default

Make sure to change skin_name to the name of your character's skin first, though.
frozenLake is offline   Reply With Quote
Old 11-20-2014   #10
STHE123O
Little Monster
 
STHE123O's Avatar
Default

I tried but it didnt worked. I changed the skin name but instead of my character a green Sonic appeared (with homming attack ability). And he cant transform in Super Sonic.

EDIT: My character skin load now, but still no Super form. Does the entry need to be a certain "Type"?

Last edited by STHE123O; 11-20-2014 at 01:27 AM.
STHE123O is offline   Reply With Quote
Old 11-20-2014   #11
Sapheros
Permanently Banned
Default

Here is a script from Blaze:
Code:
 addHook("MobjThinker", function(char)
    if (char.skin == "blaze")
    and not (char.player.charflags & SF_SUPER)
        char.player.charflags = $1|SF_SUPER
    end
end, MT_PLAYER)
As long as you have 7 emeralds and 50 rings, you're all good.
Sapheros is offline   Reply With Quote
Old 11-20-2014   #12
STHE123O
Little Monster
 
STHE123O's Avatar
Default

It is not working for some reason

STHE123O is offline   Reply With Quote
Old 11-20-2014   #13
Puppyfaic
 
Puppyfaic's Avatar
Default

Quote:
Originally Posted by STHE123O View Post
It is not working for some reason

You have the lump type set to "sprite". It shouldn't be a "sprite" lump. The Lump type number should be set to 0.
__________________
Quote:
Originally Posted by Frostay
Yeah fuck you too you insufferable twat.
Puppyfaic is offline   Reply With Quote
Old 11-20-2014   #14
Wolfy
wolfs
Developer
 
Wolfy's Avatar
Default

Make sure that the skin name is also lowercased. Instead of "Sonic10", you should have "sonic10".
__________________
Quote:
[23:56:36] <SM-MaxX> prisma illya is a gift to this impure earth and a shining beacon for all anime
Wolfy is offline   Reply With Quote
Old 11-20-2014   #15
STHE123O
Little Monster
 
STHE123O's Avatar
Default

It finally worked! Thank you all SO MUCH!
STHE123O is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.