Jump to content
SirBa5terD

Collectable Intel with Picture and Log

Recommended Posts

Hello Ladies and gentelemen!

As i experience this forum very friendly and humble, I would really like to ask you, if there is a way to create the following:

1. A unit needs to pick up intel ( made with the intel from the game ) = woking
2. When the map shows up, there shall be a picture of that intel, and a name = not working yet
3. There is a log, that is automatically created, where something can apparently be written = not working

I got those step 2 and 3 not figured out now, can you help me with it?

Thank you very much in advance!

Share this post


Link to post
Share on other sites

Hi @SirBa5terD,

Welcome to the forums!

You are biting off a LOT with this project. You can more or less make this. But you will become an absolute scripting wizard when(?!) you succeed. I will discuss each bullet point:

2. You can display a picture ( .paa format) 360 pixels wide with the <img... > syntax in the regular briefing. See: https://community.bistudio.com/wiki/Arma_3_Briefing 
If you want a larger picture, then the engine will not always fit it within the briefing screen. Then you will have to use <execute expression ...> to open your picture up with a custom dialogue box. See: 

3. You normally can't really type during missions. To enable this, you would have to program a custom GUI, and have it create (and format) diary entries with the text that the player inputs.
See the "Custom Briefing Editor" picture example from the Biki: https://community.bistudio.com/wiki/Arma:_GUI_Configuration

It would be extremely cool if you got this to work. But you will find it very challenging.
 

Share this post


Link to post
Share on other sites

Thanks already!

I really just want the intel to have any information and not to remain just blank, when the map shows up.

So should be more "simple", i guess... maybe.

Thank you for the post you made!

Share this post


Link to post
Share on other sites

If you want a new log to be added when you pick up an intel that is easy. You can just call another description.txt. That way everything located at the top left when you open the map will be updated. Pictures can be added there too. 

 

Also if you want the intel itself to show something and not be just blank you can use a leaflet:

 

 

  • Like 1

Share this post


Link to post
Share on other sites
2 minutes ago, JohnKalo said:

If you want a new log to be added when you pick up an intel that is easy. You can just call another description.txt. That way everything located at the top left when you open the map will be updated. Pictures can be added there too.  

 

 

 

Exactly this would be good to know 😄

Saw the video, that's another thing to consider another time, thank you for the link 🙂

  • Like 1

Share this post


Link to post
Share on other sites

So how would I realizeit by calling that description.sqf then? What wouldbe the init and the sqf content? 😄

Share this post


Link to post
Share on other sites

I think this is what you want.

 

This is an example from a mission I did.

 

Put this into the init field of the intel object.

The first line is how you include text in the log, and in the pop up box when the map opens after taking the intel.

The second line is how you add the picture.

You will of course have to provide your own picture.

 

Quote

[this,"RscAttributeDiaryRecord",["Phone Contacts","Blackbeard 782-244-9948",""]] call bis_fnc_setServerVariable; 

this setVariable ["RscAttributeDiaryRecord_texture","textures\phone screen.jpg", true];

 

  • Like 3

Share this post


Link to post
Share on other sites

Exactly, what i wanted to do, thank you very much 🙂

Thanks to all, helping me here, you're absolutely humble and nice people!

 

Share this post


Link to post
Share on other sites

Put this into the init field of the intel object.

edit "INTEL_IMAGE.jpg" and ["INTEL_NAME","INTEL_DESC",""] 

intel will be shared with everyone when picked up 

 

 

[ this ] call BIS_fnc_initIntelObject;    
 this setVariable [    
  "RscAttributeDiaryRecord_texture",    
  "INTEL_IMAGE.jpg",    
  true    
 ];    
 [    
  this,    
  "RscAttributeDiaryRecord",    
  ["INTEL_NAME","INTEL_DESC",""]    
 ] call BIS_fnc_setServerVariable;    
 this setVariable ["RscAttributeOwners", [west], true];  
 this setVariable ["recipients", west, true]; 
 [  
  this,  
  "IntelObjectFound",  
  {  
   params ["", "_foundBy"];  
   private _msg = format ["Intel found by %1", name _foundBy];  
   _msg remoteExec ["systemChat", 0];  
  }  
  ] call BIS_fnc_addScriptedEventHandler;  
  

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×