Home › Forums › JinGames Forums › Questions and Answers › How do I make a script for lvlup super form
Tagged: Super form
- This topic has 16 replies, 4 voices, and was last updated 4 years, 2 months ago by hyper11.
-
AuthorPosts
-
-
August 17, 2018 at 15:38 #42558hyper11Participant
Pls i want know the way to do it
-
August 17, 2018 at 20:02 #42561AegousParticipant
var p = player.getMCEntity(); var nbt = p.getEntityData().func_74775_l("PlayerPersisted"); //The superform is stored as a string in the format of "TR(Level number)" - Example: TR4 var currentSuperformLevel = nbt.func_74779_i("jrmcSSltX"); var level = 2; nbt.func_74778_a("jrmcSSltX", "TR" + level);
That should do it
- This reply was modified 6 years, 3 months ago by Aegous.
-
August 17, 2018 at 20:26 #42564hyper11Participant
That in the console say ReferenceError:Player is not defined in <eval> at line N01
-
August 17, 2018 at 20:33 #42567AegousParticipant
Remember player needs to be all lowercase and only certain customnpc events allow you to just reference the player.
-
August 17, 2018 at 20:59 #42568hyper11Participant
Im modyfing the script and its not working
-
August 17, 2018 at 21:03 #42569hyper11Participant
im modifyng to try to the script work but don t work give me the script complete
-
August 17, 2018 at 21:23 #42570AegousParticipant
That is the complete script you just don’t know how to use it.
-
August 17, 2018 at 21:26 #42572AegousParticipant
Just gonna put the code here again since the formatting seems to be fucked up on my last reply.
var p = player.getMCEntity();
var nbt = p.getEntityData().func_74775_l(“PlayerPersisted”);//The superform is stored as a string in the format of “TR(Level number)” – Example: TR4
var currentSuperformLevel = nbt.func_74779_i(“jrmcSSltX”);var level = 2;
nbt.func_74778_a(“jrmcSSltX”, “TR” + level);
-
June 6, 2020 at 21:31 #48538hyper11Participant
Wow after this years i feel so stupid Aegous sry if i made u feel stupid beacuse i didnt know anything that used ECMAScript, javascript or java so uuuh that’s why i couldnt understand buut nevermind thanks for your help but i discovered how to do it before you even published the last reply
-
September 26, 2020 at 17:18 #49026AlexParticipant
Please, can you explain me how to make it?
-
September 29, 2020 at 17:00 #49033hyper11Participant
Yeah, lemme explain you (I did this from memory soo it could be wrong so tell me if it gives you any error)
Example code:
//use interact hook for this example to work
var plr = player.getMCEntity();
var nbt = plr.getEntityData().func_74775_l(“PlayerPersisted”);nbt.func_74778_a(“jrmcSSltX”,”TR7″);
// This will set your Super form lvl to 7 (making you able to go ssj4)
-
September 30, 2020 at 00:52 #49038makenerd12Participant
Hi, hyper11 can you help me with the super form script?
my english is kind of bad, I’m using a translator
-
September 30, 2020 at 00:56 #49039makenerd12Participant
mine gave this error here
<eval>:2:43 Expected an operand but found error
var nbt = plr.getEntityData().func_74775_l(“PlayerPersisted”);
^ in <eval> at line number 2 at column number 43 -
October 2, 2020 at 18:55 #49057AlexParticipant
It gaves this error:
<eval>:2:43 Expected an operand but found error
var nbt = plr.getEntityData().func_74775_l(“PlayerPersisted”);
^ in <eval> at line number 2 at column number 43 -
October 4, 2020 at 02:47 #49061YisolEParticipant
Why modify the script? to add super forms or modify the stats?
-
October 4, 2020 at 16:39 #49062hyper11Participant
Yeah sorry people lemme fix this script rq (ill test it out)
-
October 4, 2020 at 16:53 #49063hyper11Participant
Yeah sorry people lemme fix this script rq (ill test it out)
Code:
var p = player.getMCEntity();
var nbt = p.getEntityData().func_74775_l(“PlayerPersisted”);//Setting Super form level to 7, allowing you to be able to go ssj4
//This “TR7” Means the super form skill level so you can set it from TR0 to TR7
// This TR and the number is a global value for the super form so it works for every race
nbt.func_74778_a(“jrmcSSltX”,”TR7″);
-
-
AuthorPosts
- You must be logged in to reply to this topic.