Author Topic: Code-based evolution game  (Read 1691 times)

0 Members and 1 Guest are viewing this topic.

Offline mam72

  • Phoenix Fighter
  • **
  • Posts: 158
  • Very simple, yet the ancestors of all life.
    • View Profile
Code-based evolution game
« on: February 06, 2010, 12:31:57 pm »
Current Status: Virus
Infect, Avoid Danger, and Remove
Code: [Select]
CodeType.RNA=rna

   rna.Fucntion=Infect.Cells
  If rna BioMass<=50 Then Do
  rna.target=Cells
 If Cells.dangerLevel>=1 Then Do
 rna.parentBody.bodyVelocity reverse
If rna.parentBody lifeForce=0 Then
remove rna.parentBody
If rna.hostBody lifeForce=0 Then
remove rna.hostBody
   END
  END
 END
Connect.Source=Virus.hostBody.parentBody.rna

   Virus.Function=Kill.parent
  If hostBody==nil Then
  remove Virus
  END
  If parentBody.count=0 Then
  remove Virus
   END
  END
Connect.Source=Virus.hostBody.parentBody.rna
I should probably tell you how to make codes. It's simple really:
Function= what it's supposed to do
If a variable or condition
Then and Then Do tells what to do if a condition is met
Else is what to do if the condition is false.
True a pre-existing variable is true
False a pre-existing variable is false
Else If adds a new variable if the old one is not true
END ends the function and/or the if that has the same number of spaces before it
Connect.Source= where this code is at
Wait(#) tells it to wait a time before doing something. measured in seconds (viruses don't live long... the code for our Virus is set for a lifespan of 5 minutes, which is equal to the code-based red blood cells it targets)

Also, heres a look at the Folder that CodeType.RNA is in:
Virus - the MainFolder
hostBody - links to the Folder of the host
parentBody - the Folder that stores all the information about the physical virus
CodeType - this is a CodeValue object and its Value is what kind of code it is
RNA - is a value for Viruses
DNA - is a value for everything else, including plants

This is the end of this post but I need another post to set up the rest of the OP informational stuff.


Insert random text here:

My old sig was outdated...

...so what the gods is next?

Offline mam72

  • Phoenix Fighter
  • **
  • Posts: 158
  • Very simple, yet the ancestors of all life.
    • View Profile
Re: Code-based evolution game
« Reply #1 on: February 18, 2010, 03:40:11 pm »
HALLO???

BUMP.
Insert random text here:

My old sig was outdated...

...so what the gods is next?

Offline GroxGlitch

  • Gyruss Gyrusian
  • *****
  • Posts: 2718
  • Somehow, I've even less of a clue what's going on.
    • View Profile
Re: Code-based evolution game
« Reply #2 on: February 18, 2010, 03:47:03 pm »
HALLO???

BUMP.
Dude, hate to break it, this may be a wee bit overcomplicated for a game. Not all of us understand code well enough for this to be fun. Trying to think of a proper responce gives me a headache.

Offline Raz

  • Questron Serf
  • *****
  • Posts: 3449
    • View Profile
Re: Code-based evolution game
« Reply #3 on: February 18, 2010, 05:17:01 pm »
Hah. Stupid.

I don't recognize that code, it's certainly not anything currentish like C,C++, or Java, etc.

Offline mam72

  • Phoenix Fighter
  • **
  • Posts: 158
  • Very simple, yet the ancestors of all life.
    • View Profile
Re: Code-based evolution game
« Reply #4 on: February 19, 2010, 06:17:40 am »
It's a (modified) LUA Scripting code. It's supposed to be the easiest code to use. AND, I thought it was the only code that existed.

BUT... SInce it doesn't belong to any site I know of using LUA, I do need to explain it... a lot more than I did. But, you can post ANYTHING that goes with evolution games... I won't evolve teh creature without request. That, and it's current state is a Virus. I can mutate it randomly, but I can't move on to the Bacteria stage without you guys (and girls) telling me how to do it.
 
parentBody, hostBody, BioMass, redbloodcells, whitebloodcells, and many others are OBJECTS and/or VALUES. An object is obviously a physical object. A value is something stored in the FOLDER that represents a numrical value for an object. Examples of value: BioMass is a hunger-based value; if it's too low, the parentBody will target something edible. parentBody.count is a value for population; it's only purpose is to allow reporduction and mutation if the value is equal to or greater than two.

The folder is something quite vital. There are two kinds: a MainFolder, and a LocalFolder. The MainFolder is called "Virus," because it's for the virus. "BloodSystem" is another folder for the whitebloodcells and redbloodcells, as well as controling the hostBody.Heart object. Inside "Virus," there are two (local)folders: "parentBody" and "hostBody." hostBody controlls the actions of the infected areas. If the Heart is infected to a certain degree, the hostBody will die. parentBody is for EVERYTHING about the physical virus, from BioMass to MutationRate.
Insert random text here:

My old sig was outdated...

...so what the gods is next?

Offline Raz

  • Questron Serf
  • *****
  • Posts: 3449
    • View Profile
Re: Code-based evolution game
« Reply #5 on: February 19, 2010, 03:17:50 pm »
AND, I thought it was the only code that existed.

Say what? Wow, major loss of points.