| custom name on pupils made in BC | |
|
+3kenichiro silverx123 redneck-giant99 7 posters |
Author | Message |
---|
redneck-giant99 Forum Mod
Posts : 1377 Join date : 2009-04-29 Age : 50 Location : Hurt Locker
| Subject: custom name on pupils made in BC Fri 23 Oct 2009, 02:55 | |
| Im sure this is already asked here BUT
How do I make the names of the pupils created in BC start with what I want them to. I would love to be able to keep track of them....
thanks RG | |
|
| |
silverx123 * * * * * * * * *
Posts : 532 Join date : 2009-08-05
| Subject: Re: custom name on pupils made in BC Fri 23 Oct 2009, 03:03 | |
| my name file... :) - Code:
-
function rnd(minv, maxv){ if (maxv < minv) return 0; return Math.floor(Math.random()*(maxv-minv+1)) + minv; } function createName(){ var letters ='abcdefghijklmnopqrstuvwxyz0123456789'; var s = ''; for (var i=0; i<5; i++) { s = s + letters.charAt(rnd(0, letters.length - 1)); } var s = 'silve'+ s ; return s; } you can generate your own. at http://scriptwin.netau.net/name/generer.html :) | |
|
| |
redneck-giant99 Forum Mod
Posts : 1377 Join date : 2009-04-29 Age : 50 Location : Hurt Locker
| Subject: Re: custom name on pupils made in BC Fri 23 Oct 2009, 03:04 | |
| i think that went over my head rather quickly....
how do I add that code to my BC data | |
|
| |
silverx123 * * * * * * * * *
Posts : 532 Join date : 2009-08-05
| Subject: Re: custom name on pupils made in BC Fri 23 Oct 2009, 03:06 | |
| open brutal-combo-1.2.001->Name.jss file edit name file.. :) default code in name file - Code:
-
function rnd(minv, maxv){ if (maxv < minv) return 0; return Math.floor(Math.random()*(maxv-minv+1)) + minv; }
function createName() { var letters = 'abcdefghijklmnopqrstuvwxyz'; var s = ''; for (var i=0; i<8; i++) { s = s + letters.charAt(rnd(0, letters.length - 1)); } return s; }
replace with your code... i hope it will help. :) | |
|
| |
kenichiro * * * * * * * *
Posts : 431 Join date : 2009-05-23
| Subject: Re: custom name on pupils made in BC Fri 23 Oct 2009, 09:02 | |
| Here is an easier way: http://scriptwin.netau.net/name/generer.html | |
|
| |
ztrut * *
Posts : 18 Join date : 2009-08-05 Location : Germany
| Subject: Re: custom name on pupils made in BC Tue 27 Oct 2009, 21:22 | |
| Hi, i generate with http://scriptwin.netau.net/name/generer.html the name.jss in BC activation i show 6fight for each pupil. BUT the pupil didn't with. the brute is sill at lvl 1 and have 6 fight free. i have enough opponents. if than i want to fight with BC that lvl1 brutes, they don't fight.
somebody an idea? | |
|
| |
StileQ34 Forum Mod
Posts : 603 Join date : 2009-05-13 Age : 33 Location : Austria
| Subject: Re: custom name on pupils made in BC Tue 27 Oct 2009, 21:24 | |
| - ztrut wrote:
- Hi,
i generate with http://scriptwin.netau.net/name/generer.html the name.jss in BC activation i show 6fight for each pupil. BUT the pupil didn't with. the brute is sill at lvl 1 and have 6 fight free. i have enough opponents. if than i want to fight with BC that lvl1 brutes, they don't fight.
somebody an idea? Well, don't use more than 5 letters for the fixed name and only use lowercase letters. It should look like that: - Quote :
- function createName()
{ var letters = 'abcdefghijklmnopqrstuvwxyz'; var s = 'name'; for (var i=0; i<8; i++) { s = s + letters.charAt(rnd(0, letters.length - 1)); } return s; }
| |
|
| |
ztrut * *
Posts : 18 Join date : 2009-08-05 Location : Germany
| Subject: Re: custom name on pupils made in BC Tue 27 Oct 2009, 21:34 | |
| - StileQ34 wrote:
- ztrut wrote:
- [...]
Well, don't use more than 5 letters for the fixed name and only use lowercase letters.
[...] Yes, thanks, exactly =). Thanks for the quick help. | |
|
| |
w13winni VIP
Posts : 282 Join date : 2009-04-17
| Subject: Re: custom name on pupils made in BC Wed 28 Oct 2009, 13:55 | |
| I see that my generator is successful^^ | |
|
| |
Biceuri® * * * * * * * * *
Posts : 591 Join date : 2009-05-31 Age : 40 Location : Everywhere
| Subject: Re: custom name on pupils made in BC Sat 31 Oct 2009, 00:08 | |
| Guys im trying to use this code, what is wrong with it?
function rnd(minv, maxv){ if (maxv < minv) return 0; return Math.floor(Math.random()*(maxv-minv+1)) + minv; } function createName(){ var letters ='abcdefghijklmnopqrstuvwxyz0123456789'; var s = ''; for (var i=0; i<9; i++) { s = s + letters.charAt(rnd(0, letters.length - 1)); } var s = 'rase-'+ s ; return s; }
Cps. | |
|
| |
kenichiro * * * * * * * *
Posts : 431 Join date : 2009-05-23
| Subject: Re: custom name on pupils made in BC Sat 31 Oct 2009, 00:21 | |
| - Sharigan-jutsu wrote:
- Guys im trying to use this code, what is wrong with it?
function rnd(minv, maxv){ if (maxv < minv) return 0; return Math.floor(Math.random()*(maxv-minv+1)) + minv; } function createName(){ var letters ='abcdefghijklmnopqrstuvwxyz0123456789'; var s = ''; for (var i=0; i<9; i++) { s = s + letters.charAt(rnd(0, letters.length - 1)); } var s = 'rase-'+ s ; return s; }
Cps. Take out one letter or the symbol from rase-. I had the same problem with too many characters in the name. | |
|
| |
Sponsored content
| Subject: Re: custom name on pupils made in BC | |
| |
|
| |
| custom name on pupils made in BC | |
|