Nice +1 for you!
Its great since I dont know how to use MathRandom and I want to learn it but IDK where
Math.random() returns 0.000-0.999
Math.floor(Math.random()*486) equals any integer from 0 to 485 with all 486 integers the same chance
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Wouldn't you know how to code that as your one of the so called 'best modders'...? You said you were coding PC mods... PC mods are very advanced and if you can make PC mods you would know how to use Math.random().
var money = 0;
function procCmd(c){
var cmd = c.split(' ');
if(cmd[0]=="lottery"){
var random = Math.random();
if(random<=0.2){
money+= 10;
clientMessage("Jackpot!");
}else
if(random>=0.5){
money-=3;
clientMessage("Sorry, you lost.");
}
}
}
Wouldn't you know how to code that as your one of the so called 'best modders'...? You said you were coding PC mods... PC mods are very advanced and if you can make PC mods you would know how to use Math.random().
var money = 0;
function procCmd(c){
var cmd = c.split(' ');
if(cmd[0]=="lottery"){
var random = Math.random();
if(random<=0.2){
money+= 10;
clientMessage("Jackpot!");
}else
if(random>=0.5){
money-=3;
clientMessage("Sorry, you lost.");
}
}
}
There. I hope that explains it a bit.
people call me one of the best modders, even the best modders have their downfalls O.o And aren't good in every aspect of coding , anyway just because I code PC mods, doesnt mean I do them alone. .-. Others help xD
Mm, look at my modpe scripts, none of them use Math.random()
I just think of innovative ways to make up for it, To be a good coder or programmer you need imagination :3 In my opinion anyways.
But hey, its pretty awesome people think of me as one of the best modders
Edit: Donald helped/taught me how to use it, going to use it for pokeball capturing
I learnt how to use 0.000~0.999 random numbers in a Casio Calculator Manuel lol
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Im seriously new to modpe and also a quite lost, i installed it via treebl's repo in cydia and have it activated but i dont know where to find the script ID of a few mods i want to install? Some help would be greatly appreciated.
What version of MCPE do you have. It only work on version up to 0.7.2 also most of the mods nowdays are Android only.
Yeah i downgraded to 0.7.2 so i have the right version. I actually left the forum for quite a while, months actually and when i left the MCPE Patcher was the best way to mod, i recently came back and kept hearing about modpe yet cant figure out how to use it hmmm... Wonder what happened to all the iOS modders like Darkfury and jocopa3 :/
The video did clear up alot of things thanks! however one issue remains, many mod posts here dont give a script ID. Some give a download ad others link to the coding of the mod but i dont see any script ID anywhere :/
The video did clear up alot of things thanks! however one issue remains, many mod posts here dont give a script ID. Some give a download ad others link to the coding of the mod but i dont see any script ID anywhere :/
Do what everybody else did. Download it onto a pc (Mobile devices are unable to do this for some dumb reason) then copy and past the script onto the editor. Go here for the script editor. It will give you an id to type in.
Yeah i downgraded to 0.7.2 so i have the right version. I actually left the forum for quite a while, months actually and when i left the MCPE Patcher was the best way to mod, i recently came back and kept hearing about modpe yet cant figure out how to use it hmmm... Wonder what happened to all the iOS modders like Darkfury and jocopa3 :/
I mod IOS. I used to make .mod mods for personal use but alot of things got messed up when the 0.7.3 update came out.
Do what everybody else did. Download it onto a pc (Mobile devices are unable to do this for some dumb reason) then copy and past the script onto the editor. Go here for the script editor. It will give you an id to type in.
I mod IOS. I used to make .mod mods for personal use but alot of things got messed up when the 0.7.3 update came out.
Well good to know some iOS modders still exist, i was rather disappointed when i heard that majority of the mods are android only given that i dont own an android device of anykind :/
If you use android just copy the code to clipboard and select import by clipboard in blocklauncher.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Do what everybody else did. Download it onto a pc (Mobile devices are unable to do this for some dumb reason) then copy and past the script onto the editor. Go here for the script editor. It will give you an id to type in.
Ive run into another problem while trying to do this on my pc, everytime i copy and paste the script into the modpe script maker and click save and then load it up again it doesnt save the script. I tried clicking save sveral times ad even then once it up the code that i pasted isnt there :/
Ive run into another problem while trying to do this on my pc, everytime i copy and paste the script into the modpe script maker and click save and then load it up again it doesnt save the script. I tried clicking save sveral times ad even then once it up the code that i pasted isnt there :/
Sorry, i only have iOS so i cant use blocklaunder
So you are still using mcpe 0.7.2 alpha?
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Math.random() returns 0.000-0.999
Math.floor(Math.random()*486) equals any integer from 0 to 485 with all 486 integers the same chance
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
There. I hope that explains it a bit.
Mm, look at my modpe scripts, none of them use Math.random()
I just think of innovative ways to make up for it, To be a good coder or programmer you need imagination :3 In my opinion anyways.
But hey, its pretty awesome people think of me as one of the best modders
Edit: Donald helped/taught me how to use it, going to use it for pokeball capturing
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Link Removed
Link Removed
I noticed this was never used. Is there anything I need to add to make it more useful?
Link Removed
Link Removed
Anywhere before your script. Make sure to copy the stuff below the instructions.
Link Removed
Link Removed
Yeah i downgraded to 0.7.2 so i have the right version. I actually left the forum for quite a while, months actually and when i left the MCPE Patcher was the best way to mod, i recently came back and kept hearing about modpe yet cant figure out how to use it hmmm... Wonder what happened to all the iOS modders like Darkfury and jocopa3 :/
The video did clear up alot of things thanks! however one issue remains, many mod posts here dont give a script ID. Some give a download ad others link to the coding of the mod but i dont see any script ID anywhere :/
Do what everybody else did. Download it onto a pc (Mobile devices are unable to do this for some dumb reason) then copy and past the script onto the editor. Go here for the script editor. It will give you an id to type in.
Link Removed
Link Removed
Oh okay, hadnt thought of that lol thanks!
Well good to know some iOS modders still exist, i was rather disappointed when i heard that majority of the mods are android only given that i dont own an android device of anykind :/
Ive run into another problem while trying to do this on my pc, everytime i copy and paste the script into the modpe script maker and click save and then load it up again it doesnt save the script. I tried clicking save sveral times ad even then once it up the code that i pasted isnt there :/
Sorry, i only have iOS so i cant use blocklaunder
So you are still using mcpe 0.7.2 alpha?
Link Removed
Link Removed