It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
So I bought Baldurs Gate 2: Shadows of Amn ages ago, like when it was actually a hardcopy. I played it over and over again, and never cheated.

Alas, now I want to try and see, if I can make an overpowered character, and set all its stats as high as possible, or import Strength gear to it.
When I try to use the CLUA:ConsoleCreateItem("belt04"), after having put the SetPrivateProfileString('Program Options','Debug Mode','1') into the Baldur.lua document (does it stay? Seems like it vanishes after each restart), I cant get it to work. It gives me a string of "nil" values, or says something along "expected".
I can teleport my party around just fine by using the Ctrl-J command, so I guess this is just some spelling mistake. Is this case sensitive? Also, it seems like it replaces " with two ' '.

Kindest regards,

The lonely paladin
This question / problem has been solved by Hickoryimage
avatar
RaziellThePaladin: When I try to use the CLUA:ConsoleCreateItem("belt04")
It's, EXACTLY, CLUAConsole:CreateItem("belt04",1)

CLUAConsole is the engine cheat.
The colon delimits the command from the engine cheat
CreateItem is the specific command
"belt04",1 in parenthesis is the item and number
You should mention whether you are playing classic or enhanced, as cheats are a bit different in the different versions. Since you are talking about a .lua file, you are probably playing the EE.

In particular, if you are playing the enhanced edition, the cheat prefix is just "C:", so the command you need is:
C:CreateItem("belt04", 1)

As for the syntax, I believe that:
* You can use either single (') or double (") quotes, as long as you are consistent within a cheat.
* The part that's within the quotes is actually part of a filename, and as the program was developed with Windows in mind, it's likely to be case sensitive.
* If you get the part in quotes wrong, you will get a message to the effect of "file not found".

(By the way, it would help if you would post the actual error message you're getting.)

Alternatively, for your particular use case, you might prefer to use a save editor such as EE Keeper, as it's much easier to increase stats that way (from the console, you have to cheat in books and use them, while the editor lets you change them directly), and if you feel the need to decrease your stats, the editor is the only (permanent) way (barring one specific non-repeatable event I can think of).
dtgreene is likely correct. Since you have a .lua file, you are most likely playing the EE. (The original games used .ini files, I believe.) Past a certain version of the EE (I think it might have been 2.0? Anyway, not that important), the console commands use a "C:" prefix instead of "CLUAConsole:", but the latter half of the command remains the same.

I would also highly recommend the use of EE Keeper if you want to play around with editing your save game or modifying your character. It's much quicker and easier to make changes using it, and because it automatically saves new versions of any modified save games, it's also safer in case you mess something up and need to reload an earlier save.
Thank you all for your advice, and sorry for not being thorough with my error message.
It is indeed the Enhanced Edition I play, I bought it via GoG.

The thing I was missing was the ,1 in CLUAConsole:CreateItem("belt04",1), so it is all solved now. Thank you all for helping!
avatar
dtgreene: In particular, if you are playing the enhanced edition, the cheat prefix is just "C:", so the command you need is:
C:CreateItem("belt04", 1)
Wrong. 'C' is just a short version of CLUAConsole. You can use either.
avatar
RaziellThePaladin: Thank you all for your advice, and sorry for not being thorough with my error message.
It is indeed the Enhanced Edition I play, I bought it via GoG.

The thing I was missing was the ,1 in CLUAConsole:CreateItem("belt04",1), so it is all solved now. Thank you all for helping!
Please mark the question as solved if you are satisfied.
Post edited August 03, 2019 by Hickory