Blockland Forums > Modification Help

Mods of Ottosparks (it's over one hundred for some raisin)

Pages: << < (3/13) > >>

Mega-Bear:


--- Quote from: otto-san on September 25, 2011, 04:02:23 PM ---oh also the secret project will include lots of AIs and cool stuff

--- End quote ---
Some kind of an RPG? Set of playertypes? :o

otto-san:


--- Quote from: Mega-Bear on September 25, 2011, 04:15:46 PM ---Some kind of an RPG? Set of playertypes? :o

--- End quote ---
i guess it's SORTA an RPG


 :cookieMonster:


(more of a sandbox within a sandbox)

Shadoku:


--- Quote from: otto-san on September 25, 2011, 04:21:53 PM ---i guess it's SORTA an RPG


 :cookieMonster:


(more of a sandbox within a sandbox)

--- End quote ---
Sounds inceptive. :o

otto-san:

I decided to make a simple flower patch generator for future landscape builds.


Here it is if you want to use it.


EDIT: New code.

generateFlowerpatch(X, Y, set of colourIDs, magnitude, grass colour);
ie. generateFlowerpatch(128, 128, "9 10 11 12 13 14 15 16 17", 3500, 22);

buildFlower(grass colour, pedal colour);
buildFlower(22, getRandomWord("9 10 11 12 13 14 15 16 17"));


--- Code: ---function generateFlowerpatch(%x, %y, %s, %m, %g)
{
for(%ym = 0; %ym < %y; %ym++)
{
for(%xm = 0; %xm < %x; %xm++)
{
%random = getRandom(0, %m);
if((%random > 5 && %random < 15) || (%random > 20 && %random <= 30) || (%random >= 50 && %random <= 65))
buildFlower(%g, getRandomWord(%s));
superShiftBrickRight(1);
superShiftBrickRight(0);
}
for(%xp = 0; %xp < %x; %xp++)
{
superShiftBrickLeft(1);
superShiftBrickLeft(0);
}
superShiftBrickAway(1);
superShiftBrickAway(0);
}
}

function getRandomWord(%string)
{
return getWord(%string, getRandom(0, getWordCount(%string)));
}

function buildFlower(%grass, %flower)
{
commandToServer('useSprayCan', %grass);
plantBrick(1);
plantBrick(0);
superShiftBrickUp(1);
superShiftBrickUp(0);
commandToServer('useSprayCan', %flower);
plantBrick(1);
plantBrick(0);
superShiftBrickDown(1);
superShiftBrickDown(0);
}
--- End code ---



otto-san:

I think I'll write out some Torquescript references/tutorials/examples/etc on GoogleDocs and post them here + on my website.

I've been thinking of doing that for awhile.

Pages: << < (3/13) > >>

Go to full version