Make player invincible(Request)

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

Eri7 M
Topic author, Viscount
Viscount
Avatar
Eri7 M
Topic author, Viscount
Viscount
Age: 18
Reputation: 81
Posts: 320
Joined: 19 Dec 2016
Location: Germany , Bonn

Post #1by Eri7 » 7 Jan 2017, 2:23

Is there a way to make a certain characters invincible? Like lets say i want Mario to be invincible but Luigi no.
Join the discord server about Nova Projects.
Image

Image

Alvespires M
Count
Count
Avatar
Alvespires M
Count
Count
Age: 19
Reputation: 17
Posts: 226
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #2by Alvespires » 9 Jan 2017, 20:40

Put this inside the script AND create a variable.

P.S.:I know the Else statment is not need,but the game will crash without it if you use a character other than the 'invencible' one,so I just put a random thing inside it.

Spoiler

Code: Select all

if Char(1).ID = X then
v(Y)=0
Do
Char(1).Status=2
call sleep(1)
v(Y)=v(Y)+1
Loop Until v(Y)>20
Else
v(Y)=v(Y)+1
Replace X by character ID(0 for mario,1 for luigi,2 for peach,3 for toad,4 for link) that you want to be invencible and Y by the Variable you created name.


Create the auto-Start Event "Player - GotHurt" that will auto-activate upon player getting hurt,and make it call this script.Also,the "Auto Start" event should call this one as well.

And You've made it!Test!
"This giant fish is a mouth breeder, so it spits babies out of its mouth at Mario." - Nintendo Power Strategy Guide for Super Mario Bros. 3

I didn't left this forum. I still come here every in a while but I don't really have anything to say.

I think I also probably lost it.

I'm supporting:

Spoiler

Image

Eri7 M
Topic author, Viscount
Viscount
Avatar
Eri7 M
Topic author, Viscount
Viscount
Age: 18
Reputation: 81
Posts: 320
Joined: 19 Dec 2016
Location: Germany , Bonn

Post #3by Eri7 » 10 Jan 2017, 2:12

Thank you very much! :clapping:
Join the discord server about Nova Projects.
Image

Image


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest