A little mathematics/logic problem - help pls?

Hey,

I’m kinda’ embarrassed to ask something like this but I need a solution for a (probably very simple) math/logic problem:

MyActor1 requests 100 Units from Actor2 who only has 50.
How do I make sure that MyActor1 only gets 50 which are actually “taken” off actor 2 and setboth variables accordingly (A1’s to 50 and A2’s to 0 respectively).
So far, I’ve only been able to make A2 go into -50 to satisfy the request - I’m stuck.

As I said, It’s embarrassing, but apparently after 12 years of intensive mathematics I’m unable to use ANY of it in real-life/logic situations…Give me “typical” calculus problems and I can solve them, without really understanding anything.

Hope someone will actually waste their time answering something like this :stuck_out_tongue:

Thanks! :slight_smile: