making 2 products from two reactants

  • tommig
    3rd Apr 2011 Member 0 Permalink
    Is this possible? I was trying to get acid and my alkali element to do this to make salt and water, but I can't find a way to do it, I think I know why, but is there anything I can do to get around it?
    thanks again
    tommig
  • tian110796
    3rd Apr 2011 Member 0 Permalink
    If they touch each other change the type of the acid to salt and alkali to water (or the reverse).
  • Merbo
    3rd Apr 2011 Member 0 Permalink
    @tommig
    if(t==PT_ACID)
    {
    for(nx=-2;nx<3;nx++) <br /> for(ny=-2;ny<3;ny++) <br /> {
    if(x+nx>=0 && y+ny>0 && x+nx {
    r=pmap[y+ny][x+nx];
    if ((r&0xFF)==PT_BASE)
    {
    parts[i].type=PT_SALT;
    parts[r>>8].type=PT_WATR;
    }
    }
    }
    }
    //Just remove the "/br" bullcrap, dunno how that happened.
  • tommig
    3rd Apr 2011 Member 0 Permalink
    @gamerboy8864
    ok, thanks, i'll get back to moddin now...
    yep, that works
  • PizzaPlatypus
    3rd Apr 2011 Member 0 Permalink
    @tommig (View Post)
    lol, you thought this was really, hard, it's the simplest thing there is! (sorry for laughing at you, but it's amusing, I asked the exact same thing)