|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Changing the gold in a campaign mission
Author |
Message |
[Insert Name Here]
Joined: Wed May 26, 2010 9:58 pm Posts: 270 Location: [Insert ominous, personally significant and extremely obvious location Here, e.g. behind you]
|
Changing the gold in a campaign mission
I KNOW THIS HAS BEEN ASKED AND ANSWERED BEFORE.
I did a search and nothing comes up. What's the Lua command that you can write into the script box to change gold ingame, and what's the alternate button to open the console?
|
Mon Aug 09, 2010 5:51 pm |
|
|
numgun
Joined: Sat Jan 13, 2007 11:04 pm Posts: 2932
|
Re: Changing the gold in a campaign mission
/ opens the console. For me, - seems to open the console too. Probably it registers it as tilde since I dont have it anywhere on my keyboard. (damn spanish laptop keyboard.)
PresetMan:ActivityMan():SetTeamFunds(10000,50)
First value gives 10000 to Team 1 and second value gives 50 to Team 2.
|
Mon Aug 09, 2010 6:37 pm |
|
|
[Insert Name Here]
Joined: Wed May 26, 2010 9:58 pm Posts: 270 Location: [Insert ominous, personally significant and extremely obvious location Here, e.g. behind you]
|
Re: Changing the gold in a campaign mission
Keep getting errors. Am I supposed to patch it into the base Lua code or what?
|
Mon Aug 09, 2010 7:03 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Changing the gold in a campaign mission
I believe the first argument is the amount of funds to set, and the second argument is which team's funds you want to set. So,
PresetMan:ActivityMan():SetTeamFunds( <funds> , <team> )
Red team is 0 and green team is 1.
|
Mon Aug 09, 2010 7:35 pm |
|
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|