yup i agree .. i was just giving an example of Void functions
yup depends on the what you have ( single , int , boolean )
same principle works on other Voids .. like this
for example :
ChangeHp (int32) ( Void ) << there is no get or set for this
inside you could see a lot of codes don't freak out just go line by line and see what are they
....
this is from a game i am working on it atm
void
ChangeHp (int32 _HP) <<
argument .. ldarg.1
[0]
int32 num) <<
variable
0 - ldarg.0
1 - call System.Int32 ActorInfo::GetHp() <<
the value of this will be stored into the variable int32 which is stloc.0
6 - stloc.0 <<
as we said above storing the value of GetHP inside the local variable
7 - ldloc.0 <<
it will load the value of the local variable
8 - ldarg.1 <<
the value of the argument
9 -
sub <<
subtract the value of ldarg.1 from ldloc.0 << which basically will subtract the value of ldarg.1 from Get_HP
10 - stloc.0 <<
store the result into the local variable which is int32
11 - ldarg.0
12 - ldloc.0 <<
loads the value again from the local variable
13 - call System.Void ActorInfo::SetCurHp(System.Int32) <<
this will store the value above into the SetCurHP ( when you see this SetCurHp(System.Int32) << you need to store an int32 so it will be like this
so to mod this do like following :
ldarg.0
ldc.i4 999 << this will be stored inside the the SetCurHp
SetCurHp(System.Int32)
ret
Of course you can mod it in many ways but this is just an example
i hope this helps .. and sorry if i made any mistakes there ... good luck