and witch code is it im not very good in modding
Code console codes
Moderator: Moderators
- Boo
- Private
- Posts: 34
- Joined: Fri Jul 18, 2008 1:57 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: mos eisley cantina (under Greedos table)
Code console codes
can i put in a lua code in the code console that gives al units 4000 hp
and witch code is it im not very good in modding
and witch code is it im not very good in modding
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Code console codes
Code console? the only way i know of to change a units health is in their .odf file not in .lua
- Boo
- Private
- Posts: 34
- Joined: Fri Jul 18, 2008 1:57 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: mos eisley cantina (under Greedos table)
Re: Code console codes
that means i cant make that a unit has 4000 hp in game with the fakeconsoleryukaji wrote:Code console? the only way i know of to change a units health is in their .odf file not in .lua
-
ryukaji
- Major

- Posts: 513
- Joined: Mon Sep 17, 2007 7:46 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Code console codes
oh you meant fake console and no i dont think it does that...
- Boo
- Private
- Posts: 34
- Joined: Fri Jul 18, 2008 1:57 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: mos eisley cantina (under Greedos table)
Re: Code console codes
ok thanks ----solved----ryukaji wrote:oh you meant fake console and no i dont think it does that...
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Code console codes
Of course it does. I'm too busy to write that line though. xD
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Code console codes
Yeah, you could write a line to do that. I don't know the exact line offhand, but it would be something like SetClassProperty(<unit class>, "CurHealth", 4000).
You could also create a custom user script that adds that change health command as a standard Fakeconsole command. That way you won't have to type it in every time.
You could also create a custom user script that adds that change health command as a standard Fakeconsole command. That way you won't have to type it in every time.
- Boo
- Private
- Posts: 34
- Joined: Fri Jul 18, 2008 1:57 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: mos eisley cantina (under Greedos table)
Re: Code console codes
thanks but can you give me a correct code please because i dont want to make a script and i cant mod (good)[RDH]Zerted wrote:Yeah, you could write a line to do that. I don't know the exact line offhand, but it would be something like SetClassProperty(<unit class>, "CurHealth", 4000).
You could also create a custom user script that adds that change health command as a standard Fakeconsole command. That way you won't have to type it in every time.
just pm me
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Code console codes
Boo wrote:thanks but can you give me a correct code please because i dont want to make a script and i cant mod (good)[RDH]Zerted wrote:Yeah, you could write a line to do that. I don't know the exact line offhand, but it would be something like SetClassProperty(<unit class>, "CurHealth", 4000).
You could also create a custom user script that adds that change health command as a standard Fakeconsole command. That way you won't have to type it in every time.
just pm me
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Code console codes
He just gave you the script - SetClassProperty("unitclass name", "MaxHealth", 4000)Boo wrote:thanks but can you give me a correct code please because i dont want to make a script and i cant mod (good)[RDH]Zerted wrote:Yeah, you could write a line to do that. I don't know the exact line offhand, but it would be something like SetClassProperty(<unit class>, "CurHealth", 4000).
You could also create a custom user script that adds that change health command as a standard Fakeconsole command. That way you won't have to type it in every time.
just pm me
SetClassProperty("unitclass name", "CurHealth", 4000)
- Boo
- Private
- Posts: 34
- Joined: Fri Jul 18, 2008 1:57 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: mos eisley cantina (under Greedos table)
Re: Code console codes
i know but at the first time i doesnt work so i tought that there was an error in the code but it works now and please lock the topic.Maveritchell wrote:He just gave you the script - SetClassProperty("unitclass name", "MaxHealth", 4000)Boo wrote:thanks but can you give me a correct code please because i dont want to make a script and i cant mod (good)[RDH]Zerted wrote:Yeah, you could write a line to do that. I don't know the exact line offhand, but it would be something like SetClassProperty(<unit class>, "CurHealth", 4000).
You could also create a custom user script that adds that change health command as a standard Fakeconsole command. That way you won't have to type it in every time.
just pm me
SetClassProperty("unitclass name", "CurHealth", 4000)
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Code console codes
I'd rather not, as there is a better way to do it. But I haven't had the time to look that code up yet...Boo wrote:but it works now and please lock the topic.
