1 button 2 commands?

Started by OnkelLes, October 13, 2008, 01:25:22 PM

Previous topic - Next topic

OnkelLes

Hy Guys!

Is it possible that 1 button does 2 different commands?

Example:
Time Freeze:
283ADB6A 00000200
CC000000 00000000
0447F06C 00000000
E0000000 80008000

should be turned on. No Problem here

And at the same time:
283ADB6A 00000200
0447F068 00000004 -> should be raised to zero
E0000000 80008000

And when i press the same button again.
Time Freeze:
283ADB6A 00000200
CC000000 00000000
0447F06C 00000000
E0000000 80008000

should be turned off. No Problem here

And at the same time
283ADB6A 00000200
0447F068 00000000 -> should be raised to four again
E0000000 80008000

Is it possible? Or do i have to make 2 different buttons? With 2 different buttons there should be no problem...

Greetings

lindtec

You could try it with an if-comparison.

Maybe, something like this:

First part is your code
283ADB6A 00000200
CC000000 00000000
0447F06C 00000000
E0000000 80008000

283ADB6A 00000200  <-- Check, if (1) is pressed. If yes, then
2847F068 00000004  <-- Check, if value at 8047F068 = 4. If yes, then
0447F068 00000000  <-- Change value at 8047F068 to 0
2847F068 00000000  <-- Check, if value at 8047F068 = 0. If yes, then
0447F068 00000004  <-- Change valute at 8047F068 to 4
E0000000 80008000

Note: These codes aren't tested (I don't even know, what game they are for).

Maybe, you could put those two codes together, but its for you to test this.

g6flavor

You could use 1 button for as many command as you want. Like you want to push A for max hp, push A for max Mp, push A for inf ammo, and etc....1 button is not limited to 1 command.

OnkelLes

Yes but a button cannot set the same code to 2 different values... at the same time.
Like set my HP to 100 and when i press same button again change my HP to 50?

Or can it?

And thx lindtec again for very fast help. I'll test it. And of course its for HM - ToT. :)