This is my first English tutorial.If I've mistakes, please tell me.
First we need:
1.Cleo 4
2.IniFiles.cleo
3.A Brain

Now we have to create a .ini file.I've created my .ini file and named it to "example" and I chose "home" key(deciminal of "home" key is 36) for my mod.Here's my codes:
| CODE |
[hereissection] hereiskey=36 |
You can change "36" to deciminal of the key you want to.
Now create a cleo file(Of coure you can edit your cleo file if you want to

) and add the following opcode before key check:
| CODE |
| 0AF0: 1@ = get_int_from_ini_file "CLEO\example.INI" section "hereissection" key "hereiskey" //IF and SET |
Now change deciminal of your keycheck to "1@" like that:
| CODE |
if 0AB0: key_pressed 1@ else_jump @keycheck |
Here is all of them:
| CODE |
0AF0: 1@ = get_int_from_ini_file "CLEO\example.INI" section "hereissection" key "hereiskey" //IF and SET if 0AB0: key_pressed 1@ else_jump @keycheck
|
Now save your cleo and open game.If you change deciminal of key in .ini file, cleo reads your changed deciminal and redirects to key check.I mean if I open game and change 36 to 8 in .ini file, my cleo works when I press Backspace.
I hope you can understand my English even I can't understand.
This post has been edited by Saint Burak on Sunday, Jul 8 2012, 16:35