The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
1 + 2 + 3 = ?
«
1
»
1 + 2 + 3 = ?
Vanadium
1st Nov 2010
Member
0
Permalink
This is not a Maths question because I know it's 2
This is a coding question
How would I go about coding a combination like so:
DUST + SALT + WATR = NITR
Please help
Cheers, Vanadium
MiXih
1st Nov 2010
Member
0
Permalink
if t == PT_DUST && parts[r>>8].type == PT_SALT && parts[r>>8].type == WATR
{
parts[r>>8].type = PT_NITR;
}
jakester12345
1st Nov 2010
Member
0
Permalink
Hmm Vanadium,
This is a tricky one :S ummm I'm not sure. When are you going to call me? Lol
Cheers, Jakester12345
Vanadium
1st Nov 2010
Member
0
Permalink
wikku9
Thanks
devast8a
1st Nov 2010
Former Staff
0
Permalink
wikku9
Won't work.
parts[r>>8].type == PT_SALT
parts[r>>8].type == WATR
Only one of these can be true at once.
Unless PT_SALT == WATR
Vanadium
1st Nov 2010
Member
0
Permalink
devast8a
hmmm... awell
i dont need it anyway
MiXih
1st Nov 2010
Member
0
Permalink
maybe
if t==PT_DUST && parts[r>>8].type == PT_SLTW
{
parts[i].type = PT_NITR
}
Vanadium
1st Nov 2010
Member
0
Permalink
wikku9
So you go:
SALT + WATR = SLTW
SLTW + DUST = NITR
jakester12345
1st Nov 2010
Member
0
Permalink
Yepo
Candunc
1st Nov 2010
Member
0
Permalink
Can't have the STKM spit dust into the ocean anymore...
«
1
»