Page 1 of 1
Fake Console's Lua Code
Posted: Fri Aug 14, 2009 1:59 pm
by darthvatrayen
Hello.
I love Fake Console. Some of the commands I found in it I want to put in my map's LUA. Can someone please tell me what is added to the LUA when I do the Fake Console commands:
1) Deny CP Capture
2) Immune to Mines
3) Add JetPacks
4) Kill All
5) Disallow Victory (disables the victory/defeat timer when you have all the CPs or the hunt timer.)
6) Enemy/Friendly Team Track
7) Mark Player/Player to Marked
Thanks in advanced!

:plokoon:
Re: Fake Console's LUA Codes
Posted: Fri Aug 14, 2009 4:19 pm
by [RDH]Zerted
It matters: Is your map going to require the v1.3 patch or not? If it is, then you can just directly call those commands from your lua. If not, you'll have to add a bunch of helper functions (but they are already written...).
A quick overview:
1) An ODF property change
2) An ODF property change
3) Multiple ODF property changes
4) Looping through all players and doing KillObject() on their unit
5) Basically MissionVictory = function(...) end and MissionDefeat = function(...) end
6) Putting an objective marker on the player's unit
7) Marking a player stores that player's Id. 'Player to Marked' just teleports the selected player to the stored player. The marking part is a hack that gives you a way to select two things.
Luckily for you, the code to the FakeConsole was requested by others before I lost all the source code. Thus that small bit of the v1.3 wasn't lost.
Re: Fake Console's Lua Code
Posted: Fri Aug 14, 2009 5:11 pm
by darthvatrayen
Umm... Thanks for that info. but I wanted to know what the exact codes are... Like what is a human player's code in LUA?
Re: Fake Console's LUA Codes
Posted: Fri Aug 14, 2009 7:25 pm
by [RDH]Zerted
[RDH]Zerted wrote:Is your map going to require the v1.3 patch or not?
The code changes depending on if the answer is yes or no.
Re: Fake Console's Lua Code
Posted: Fri Aug 14, 2009 11:12 pm
by darthvatrayen
You do not need v1.3 to play my map.
EDIT: Wow... I am so stupid...

here I am asking Z when I already have a tutorial made by him in my addon folder on the subject.

Sorry for your time, Z.
