WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: OnkelLes on October 13, 2008, 01:25:22 PM

Title: 1 button 2 commands?
Post by: OnkelLes on October 13, 2008, 01:25:22 PM
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
Title: Re: 1 button 2 commands?
Post by: lindtec on October 13, 2008, 07:11:06 PM
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.
Title: Re: 1 button 2 commands?
Post by: g6flavor on October 13, 2008, 08:26:10 PM
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.
Title: Re: 1 button 2 commands?
Post by: OnkelLes on October 13, 2008, 08:32:31 PM
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. :)