ID:177011
 
I cannot get a good Fusion code started in my game, could someone give me some information on how I should begin making the Fusion code, like, tell me what the basic outline of the code should be.
Basic outline of fusion:

You must take two nuclei of atoms, first of all. The prefered method uses deuterium and tritium. Now, you must take these two, heat them to very high temperatures, somewhere around 100 million degrees centigrade. Then, they must be contained for about 1 second. The nuclei will smash into each other, and one proton will jump onto the tritium from the deuterium, producing a helium nucleus, and an extra neutron floating around. This will release huge amounts of energy.

Hope that helped!
In response to Garthor
Uhhh, can you just give me the code =P
In response to Garthor
Lol, ur one funny guy Garthor(sarcasticly saying)! I already knew that! And, its something like at any temperature a proton can interlock itself onto another Electron ring, to make a new atom, but I won't go into that seeing is how I just wrote a 3 page essay on it!
Heh...since you'll get nothing but jokers around here to "answer" your DBZ-related questions, I'll step in to lend a hand...lol

Let's look at it from what the end result should be: one fighter, where there used to be two, that contains the power of both of the fighters combined (plus a slight bonus... fusion always seemed to pump them up beyond just combining their powers)

The tricky part is deciding who gets to control the new fighter... The player who first selected the fuse verb? Both players switching back and forth? Either way you go, this is the most complicated part... The easier of the two is definitely the first option, though (and it's probably the best way to do it in a real-time, action based fight system... the other is too complicated and messy for an action system, but would work best in a turn based system, like DBTC...lol)

If you go with the option of just giving control over to the initializing player, all you need to do in the fusion code is:

1) Ask the other fighter's permission (if it's a player, not necessary if it's an NPC...lol)

2) If the other fighter says yes, simply add their powers to those of their fusion partner...

3) Set their icon to a blank state and make them non-dense (this is the easiest way to make them "disappear" but still able to see the action, and to make them reappear later... you could mess with moving their mob to null, and setting their client.eye to the other player, etc...but that's more complicated than it needs to be...lol)

4) Perform any cosmetic changes to the player who is going to become the fused character (change their icon, name, etc)

And that's all that's really necessary... Just let the player continue playing as normal...

When the fusion ends, just do the opposite of everything you did in the fusion code to return things back to normal...
In response to Kamion
Electrons don't travel in circular orbits, "rings" as you called them.
In response to OneFishDown
Yeah, but isnt that what they are refered to as? Although I should probably stay out of this, since not only is the last time I learnt anything about electron's and atom's (In the non-BYOND sense of the word) was in year 10 science.
-DogMan
In response to Dog Man
The paths electrons take aren't circular.
In response to OneFishDown
Isn't one of the orbitals a circular (or at least elliptical) path? It's been a while, but I seem to remember that there were multiple orbit types that an electron could follow...and the simplest of these was a circular/elliptical orbit...
In response to OneFishDown
I didnt mean there paths where circular or anything, I just seem to remember being told that they where called "electron rings".
Im not an expert in anyway what so ever though.
-DogMan