Yes you can, Haven't you looked at the source code of my CMD Mod? it's very possible, and more efficient. You shouldn't be posting all this stuff if you don't even know basic stuff like that.
Rollback Post to RevisionRollBack
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Yes you can, Haven't you looked at the source code of my CMD Mod? it's very possible, and more efficient. You shouldn't be posting all this stuff if you don't even know basic stuff like that.
Yes, that´s true, it´s just the question whether you want /help1, /help2 etc. or /help 1, /help 2 etc, but, of course, your right.
Yes, that´s true, it´s just the question whether you want /help1, /help2 etc. or /help 1, /help 2 etc, but, of course, your right.
You can do /help 1, /help 2 ect without the && cmd[1] = "". But let's stop arguing. I'm sorry, you have been very helpful for others, I'm just showing you a few pointers.
Rollback Post to RevisionRollBack
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Cheers!
To post a comment, please login or register a new account.
(Just a warning, I am super newb at modding.)
So, I am using a app that helps me script mods. It basically just gives the functions, hooks list, etc. I am making a commands mod.
I am trying to make a /help that displays all the commands in the mod.
Currently I have a few commands that just add armor, resources, heal you, etc.
Can anyone tell me how to do this?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumfunction procCmd(cmd){
cmd.split(" ");
cmd=cmd.toUpperCase();
if(cmd[0]=="HELP"){
clientMessage("Commands:\nhelp - shows this message\ntp <x> <y> <z> - teleports you");
}
}
or you can make more help pages:
function procCmd(cmd){
cmd.split(" ");
cmd=cmd.toUpperCase();
if(cmd[0]=="HELP" && cmd[1]==""){
clientMessage("Use help <page>");
}
if(cmd[0]=="HELP" && cmd[1]=="1"){
clientMessage("Commands:\nhelp - shows this message\ntp <x> <y> <z> - teleports you");
}
if(cmd[0]=="HELP" && cmd[1]=="2"){
clientMessage("Commands:");
}
}
or you make a GUI to show all commands
---
everything after \n will be in the next line
Thanks!
You don't really need the && cmd[1] == "") { You can just simply do cmd[0] == "HELP") {
Lol.
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Cheers!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNot if you want more than one help-page.
Yes you can, Haven't you looked at the source code of my CMD Mod? it's very possible, and more efficient. You shouldn't be posting all this stuff if you don't even know basic stuff like that.
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Cheers!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYes, that´s true, it´s just the question whether you want /help1, /help2 etc. or /help 1, /help 2 etc, but, of course, your right.
You can do /help 1, /help 2 ect without the && cmd[1] = "". But let's stop arguing. I'm sorry, you have been very helpful for others, I'm just showing you a few pointers.
Here to help.
Minecraft: Pocket Edition Modder, Web Developer. Plugin creator!
Cheers!