Invincible character

IgorGameplaces

Loves every SRB2 level (except ERZ1)
I'm making an OC and i want it so he can't take damage but i don't know how. I tried searching on Google but nothing was what i wanted. Can anyone help me?
 
...Why would you want that? It makes the entire game pointless, not to mention the character would be a god.
 
...Why would you want that? It makes the entire game pointless, not to mention the character would be a god.
i dunno like easy mode
Post automatically merged:

...Why would you want that? It makes the entire game pointless, not to mention the character would be a god.
i dunno like easy mode
Post automatically merged:

i dunno like easy mode
Post automatically merged:


i dunno like easy mode
with a twist
 
If you actually think someone is underage, report it. If you're just trying to take potshots at someone and actually don't have a clue, do everyone a favor and rethink your post.
TF is the twist??? It would remove every single point of playing the game. No danger. Its only weakness would be bottomless pits but those aren't even in every level. Having OP characters that are easy to control are looked down upon in this community. Just get good at the game. Wouldn't be surprised if you're too young to be on here too, but whatever.
 
TF is the twist??? It would remove every single point of playing the game. No danger. Its only weakness would be bottomless pits but those aren't even in every level. Having OP characters that are easy to control are looked down upon in this community. Just get good at the game. Wouldn't be surprised if you're too young to be on here too, but whatever.
The only way a character like this would work is if they had a huge setback, like Heavy from Knuckles' Chaotix. He's invincible, but is slow, can barely jump, and is usually dependent on other characters to get through zones.
 
I'm making an OC and i want it so he can't take damage but i don't know how. I tried searching on Google but nothing was what i wanted. Can anyone help me?
giving a character permanent invincibility is pretty easy! all you gotta do is return a ShouldDamage hook false, like this:

ShouldDamage Hook!:
addHook("ShouldDamage", function(target) --You can rename "target" to anything you want!
    if target.skin == "sonic" then return false end --This line works for Sonic, so make sure you replace "sonic" with the name of your character!
end, MT_PLAYER)

when you put this into your lua file, you should be able to walk right through enemies with no damage! hopefully this was what you were looking for!
 
TF is the twist??? It would remove every single point of playing the game. No danger. Its only weakness would be bottomless pits but those aren't even in every level. Having OP characters that are easy to control are looked down upon in this community. Just get good at the game. Wouldn't be surprised if you're too young to be on here too, but whatever.
Who are you to speak for the whole community? That's kind of BS, it sounds like you look down on OP characters that are easy to control, and are saying the whole community does to make your opinion sound more weighty.

You could stand to be less narrowminded, though. Frankly, there's no "wrong" way to play SRB2. You can use cheats, you can not use cheats. As long as you're having fun, that's all that matters. "Just get good at the game"??? 🤨 Cut the attitude my guy.
 
giving a character permanent invincibility is pretty easy! all you gotta do is return a ShouldDamage hook false, like this:

ShouldDamage Hook!:
addHook("ShouldDamage", function(target) --You can rename "target" to anything you want!
    if target.skin == "sonic" then return false end --This line works for Sonic, so make sure you replace "sonic" with the name of your character!
end, MT_PLAYER)

when you put this into your lua file, you should be able to walk right through enemies with no damage! hopefully this was what you were looking for!
thanks for helping me out, also the OC i'm making is called JIGG
Post automatically merged:

thanks for helping me out, also the OC i'm making is called JIGG
giving a character permanent invincibility is pretty easy! all you gotta do is return a ShouldDamage hook false, like this:

ShouldDamage Hook!:
addHook("ShouldDamage", function(target) --You can rename "target" to anything you want!
    if target.skin == "sonic" then return false end --This line works for Sonic, so make sure you replace "sonic" with the name of your character!
end, MT_PLAYER)

when you put this into your lua file, you should be able to walk right through enemies with no damage! hopefully this was what you were looking for!
I have another question. Is there a way to make multiple targets?
 
Last edited:
I have another question. Is there a way to make multiple targets?

Unsure on whether you already realized it or not but you may just do the following (assuming you mean you want multiple character that don't take damage):
Multiple targets/characters:
-- Building on SilverVortex's existing code
addHook("ShouldDamage", function(target)
    --[[ Simply add an or statement with any other character skin name you
         want to make invulnerable to damage.]]
    if target.skin == "sonic" or
       target.skin == "tails" or
       target.skin == "knuckles" or
       target.skin == "amy" then return false end
end, MT_PLAYER)
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top