Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Death to Spies

Death to Spies Stealth action. Professional spy working for the Soviet counterintelligence service executes dangerous operations in the heart of German territory.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 06-02-2012, 04:01 PM
ryan221b ryan221b is offline
Registered Member
 
Join Date: May 2012
Posts: 4
Default

Quote:
Originally Posted by AHO View Post
User defined mission tasks...

It is possilble to add new (user defined) mission tasks to every level.
Following will add a new test task to the level "Hotel". The aim is to kill the hotel manager.

Steps:
0. Unpack the content of the archive levels.vfs and rename the file to levels.vfs.org (You need of course the unpaker for vfs... Can be found in this board.)

1. Add task string to "MissionText -Array.
kill_manager = "Kill the hotel manager.";

2. Add the following task definition to the end of the function "Level.OnLoaded:

Level.AddMissionTask( MissionText.kill_manager, 'id_km', "levels\\hotel\\km.txt" );
Level.AddActionHandler( Level.AH_ACTOR_KILLED , "HM03" , "OnKilledManager");

3. Create-Event-Handler (New Funktion) at the end of the hotel.lua

function Level.OnKilledManager()
Level.CompleteMissionTask( "id_km" );
Level.RemoveMissionTask('id_km');
end

4. Create a briefing textfile "km.txt" with text.
I've managed to add the new task to the mission but if I save and load the task gets duplicated every time. I had a look at the OnSave function but didn't know how to modify it. Could someone help me solve this problem?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.