Quantcast

Jump to content

» «
Photo

[Cleo-How To]Make ingame changeable variables

1 reply to this topic
Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#1

Posted 08 July 2012 - 02:48 PM Edited by Saint Burak, 08 July 2012 - 04:35 PM.

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 biggrin.gif

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 biggrin.gif ) 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. biggrin.gif

Manfred Von Karma
  • Manfred Von Karma

    Thug

  • Members
  • Joined: 16 Jun 2009
  • None

#2

Posted 21 August 2012 - 09:33 PM

Thanks man , for me this is one of the most understandable tutorials ever made in the forums , we dont have to read it twice smile.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users