kickenchicken57 wrote:
well, you don't need to actually 'make' a code. you just need the addresses for the enemy chips and the player chips. if you look through kenobi's AR code type thread you will find the right kind of code types to do this. This should take 50 chips from CPU1 and give them to you assuming I did the negative number right:
Code:
*only takes them if they have them*
Press Select to Steal 50 chips from CPU1:
94000130 000003FB
721A4D2A 00000031 <-does cpu1 have more than 49 chips
DA000000 021A4D2A <-load their chips into the data register
D3000000 FFFFFFFC <-add -50 chips
D7000000 021A4D2A <-write it back to CPU1 and inc offset
D3000000 00000000 <-clear offset
DA000000 021A4CBE <-load player chips
D3000000 00000032 <-add 50 chips
D7000000 021A4CBE <-write it back to player and inc offset
D2000000 00000000 <-end and clear offset
I'm sure if you look at it you can make this work for the other players as well.
Or you could look at it technically...
Courtesy of Kode Garage

94000130 000003FB :
Universal GBA Button Modifier code
Hold Only These Buttons:
Select
721A4D2A 00000031=
This Code is INVALID or unrecognized
DA000000 021A4D2A-
This Code is INVALID or unrecognized
D3000000 FFFFFFFC :
Type D3 : set the 'offset' to the value of the code.
D3000000 XXXXXXXX : set the offset value to XXXXXXXX.
In This Case : set the offset value to 0xFFFFFFFC
D7000000 021A4D2A :
ype D7 : 16-bits incremental write of the data register (strh).
D7000000 XXXXXXXX : writes the 'Dx data' halfword to [XXXXXXXX+offset], and
increments the offset by 2.
In This Case : writes the 'Dx data' halfword to [021A4D2A+offset], and increments the offset by 2
D3000000 00000000 :
Type D3 : set the 'offset' to the value of the code.
D3000000 XXXXXXXX : set the offset value to XXXXXXXX.
In This Case : set the offset value to 0x00000000
DA000000 021A4CBE :
Type DA : 16-bits read to the data register (ldrh).
DA000000 XXXXXXXX : loads the halfword at [XXXXXXXX+offset] and stores it in
the 'Dx data'
In This Case : loads the halfword at [021A4CBE+offset] and stores it in the 'Dx data'
D3000000 00000032 :
Type D3 : set the 'offset' to the value of the code.
D3000000 XXXXXXXX : set the offset value to XXXXXXXX.
In This Case : set the offset value to 0x00000032
D7000000 021A4CBE :
ype D7 : 16-bits incremental write of the data register (strh).
D7000000 XXXXXXXX : writes the 'Dx data' halfword to [XXXXXXXX+offset], and
increments the offset by 2.
In This Case : writes the 'Dx data' halfword to [021A4CBE+offset], and increments the offset by 2
D2000000 00000000 :
Type D2 : Used to apply the code type C setting (executes the code(s) after the
type C code n times, n being the Dx repeat value).
Also acts as a 'Full terminator' (clears all temporary data, ie. execution
status, offsets, code C settings...).
D2000000 00000000 : if the 'Dx repeat value', set by code type C, is different
than 0, it is decremented and then the AR loads the 'Dx next code to be executed'
and the 'execution status' (=jumps back to the code following the type C code).
When the repeat value is 0, this code will clear the code status, the offset
value, and the Dx data value (which can be set by codes DA, DB and DC).