Data Realms Fan Forums http://45.55.195.193/ |
|
Changing the gold in a campaign mission http://45.55.195.193/viewtopic.php?f=1&t=19474 |
Page 1 of 1 |
Author: | [Insert Name Here] [ Mon Aug 09, 2010 5:51 pm ] |
Post subject: | 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? |
Author: | numgun [ Mon Aug 09, 2010 6:37 pm ] |
Post subject: | 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. |
Author: | [Insert Name Here] [ Mon Aug 09, 2010 7:03 pm ] |
Post subject: | Re: Changing the gold in a campaign mission |
Keep getting errors. Am I supposed to patch it into the base Lua code or what? |
Author: | CaveCricket48 [ Mon Aug 09, 2010 7:35 pm ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |