Page 1 of 1

Campaign Tutorial

Posted: Thu Oct 08, 2015 3:28 pm
by Heffernan
curious

does anyone know of a Campaign tutorial or mod/tool??

Re: Campaign Tutorial

Posted: Fri Oct 09, 2015 10:33 pm
by aubergine18
Could you clarify...

* Are you looking for a walkthrough guide to help you complete the campaign?
* Or are you looking for a guide that shows how to script your own campaigns?

If the latter, there's some stuff in the devwiki http://devwiki.introversion.co.uk/pa/index.php/Lua

Re: Campaign Tutorial

Posted: Sat Oct 10, 2015 1:03 am
by Heffernan
aubergine18 wrote:Could you clarify...

* Are you looking for a walkthrough guide to help you complete the campaign?
* Or are you looking for a guide that shows how to script your own campaigns?

If the latter, there's some stuff in the devwiki http://devwiki.introversion.co.uk/pa/index.php/Lua


Thanks, was the second one, on another note i hope theres going to be a either dev made or selfmade tool to help you mod stuff :)

Re: Campaign Tutorial

Posted: Sun Oct 11, 2015 3:04 pm
by aubergine18
It would be worth you copying and then unarchiving the main.dat file from the game - in it you'll find a data/campaigns IIRC that contains all the scripting of the campaigns that come with the game.

Re: Campaign Tutorial

Posted: Sun Oct 11, 2015 5:03 pm
by Heffernan
tried to change some stuff myself but either i seem to have the wrong ID or i dont know

i tried to change

Game.VehicleCallout ( "RiotGuard", "RiotGuard1" )

Game.VehicleCallout ( "NationalGuard", "NationalGuard1" )

but the LUA page in the introversion wiki doesnt even have a page about VehicleCallout nor a Definition of RiotGuard as Vehicle since it has RiotVan, so im not sure what to put here :s

Re: Campaign Tutorial

Posted: Sun Oct 11, 2015 5:38 pm
by aubergine18
The documentation on campaign scripting is badly lacking at the moment; you'll just have to play around with it and see if you can get it to work.

Note that most of the functions from campaign scripting (data/campaign/scenarioName/*.lua) and grant scripting (data/grants.lua) are not available for object scripting (data/scripts/*.lua)

If you find something that works, please post information to help others who want to do the same.