GSoC Project: A New Adventure - Update #1
Hi everyone!
The first milestone in the campaign creation phase is over, so it's time for an update.
The first step in creating a campaign was allowing certain variables to be passed between missions so that the story could modify based on the action taken/decisions made on previous missions. It is now possible to save and request these variables from within a Lua script by calling SaveCampaignVar and GetCampaignVar. The first function takes two arguments, the variable's name and its value, and creates/modifies an entry in the selected team's ini file, in the section corresponding to the campaign. GetCampaignVar takes a single argument, the name of the variable and returns a string value, so it is up to the creator of the script to convert it to whatever type necessary. It is also required that the progress is modified if it is the case.
In order for a new campaign to be added to the game, a directory with the name of the campaign needs to be added in Data/Missions/Campaign. In this directory there has to be a campaign.ini file and scripts for each mission. campaign.ini has to contain the following lines:
MissionNum=number_of_missions
ResetRetry=1 or 0 // whether the progress should be reset in case the player decides to retry a previous level
In addition to these, there needs to be a section for each mission, containing its name and the name of the script (Name and Script).
For example:
[Mission 1]
Name=Ultimate Hedge Mission
Script=ultima.lua
The next step was creating a frame for the story of the campaign. The story in its current state can be found at the links below. Suggestions are welcome!
SPOILER ALERT!
http://dl.dropbox.com/u/69740901/HWStory.odt
http://dl.dropbox.com/u/69740901/HWStory.doc
- belphegorr's blog
- Login or register to post comments
Star and Moon
I like the story, but I personally think it should be changed to a more modern timeline (WW2 etc.) but that's just my opinion.
EDIT: Also, if you need any graphics or sprites (maps, hats etc.) I'd be glad to help, just contact me via IRC (Star|) or the forums.
MeinCookie95
Ohhh... a World War II campaign. Now that is an idea. I wanna make that someday =D
Also would it be possible to implement localised reskins for weapons on specific levels, or even teams? That would make a campaign more interesting and very much improve story-telling. Especially if you're starting off with a whole 'tribal' theme.
Replacing the Portal Gun sprite with a magic Voodoo Staff for example.
seana11
You could delete the visual gear and load another one in its place, however, you cannot load a visual gear from a file at the moment, so it would have to be done some other way.