coding question

  • sillu129
    28th Nov 2010 Member 0 Permalink
    what would be the code if i would want to make an element 1 so that if it touched other specific 2 elements;element 2 and element 3 only them changed into element 1
    it works like antbs element x but only with specific elements
  • HK6
    28th Nov 2010 Former Staff 0 Permalink
    So your logic is:

    if(element 2 & element 3 are touching element 1)
    element 2 & element 3 = element 1

    ?
  • sillu129
    28th Nov 2010 Member 0 Permalink
    if your % means and
    then it is correct
  • HK6
    28th Nov 2010 Former Staff 0 Permalink
    sillu129
    Sorry my bad I switched it to a "&".
  • sillu129
    28th Nov 2010 Member 0 Permalink
    ok but do you know how to code it?
    i need it for mixing powders so those first two powders automaticli if they touced eachother changed to the third powder and there would not be any messing with air and wacum to get them mixed
  • alexthesax
    28th Nov 2010 Member 0 Permalink
    use the code from saltwater
  • sillu129
    28th Nov 2010 Member 0 Permalink
    i already did that i just want them to mix itself so that i wuldnt need to use ari or vacum to mix particles and create third element
  • alexthesax
    28th Nov 2010 Member 0 Permalink
    well, on your weights, just make it so that when it makes the new element, that it either floats above the other two, or it sinks below them, that way the two keep mixing.
  • sillu129
    28th Nov 2010 Member 0 Permalink
    alexthesax
    yeah I imagined that we too but I do not use weights when the table ever since I put one item in there and I got the error message