Blockland Forums > Modification Help
static map spawn??
<< < (9/10) > >>
PhantOS:
Make sure you change the package name from your package to something specific, like uh... mapSpawnPackage

Someone else's add-on might conflict if they use the same name
datiel12:

--- Quote from: PhantOS on March 01, 2018, 12:05:42 AM ---Make sure you change the package name from your package to something specific, like uh... mapSpawnPackage

Someone else's add-on might conflict if they use the same name

--- End quote ---
Yeah, I knew that. I read that on another topic before.
datiel12:

--- Quote from: PhantOS on March 01, 2018, 12:05:42 AM ---Make sure you change the package name from your package to something specific, like uh... mapSpawnPackage

Someone else's add-on might conflict if they use the same name

--- End quote ---
As a token of appreciation heres a pic what I was working on!

Platypi:

--- Quote from: PhantOS on February 28, 2018, 10:39:38 PM ---%array[1] = 5;
%array[2] = 88;
announce(%array[getrandom(1,2)]);

--- End quote ---
I know you probably did it this way for simplicity's sake. But I feel I should mention that arrays usually start at "0" by convention. So it "should" start at %array[0] instead of %array[1]. That also means %array[getrandom(1,2)] would instead be %array[getrandom(0,1)].


--- Quote from: datiel12 on March 01, 2018, 12:49:45 AM ---As a token of appreciation heres a pic what I was working on!
https://imgur.com/pSqTdcH.png

--- End quote ---
It good to see people making maps again! What's the theme, by the way?
PhantOS:

--- Quote from: Platypi on March 01, 2018, 05:36:24 AM ---I know you probably did it this way for simplicity's sake. But I feel I should mention that arrays usually start at "0" by convention. So it "should" start at %array[0] instead of %array[1]. That also means %array[getrandom(1,2)] would instead be %array[getrandom(0,1)].
It good to see people making maps again! What's the theme, by the way?

--- End quote ---
it's good practice to do it that way, but it has no bearing whatsoever. There are no outofbounds exceptions in torquescript so there's no real pressure to abide by the whole starting from 0 stuff

It's entirely up to preference
Navigation
Message Index
Next page
Previous page

Go to full version