Koni 3 Posted September 23, 2010 I know I must be missing something simple, but I'm trying to get text up on the screen during the mission "not cutscene" without using trigger effects all the time. I have tried making up a simple script for this, but It's probably totally wrong way to do it. example.. ["""Man - "blah blah blab blah""",0,.84,5,1] spawn bis_fnc_dynamictext ~4 ["""Man - "blah blah blab blah""",0,.84,5,1] spawn bis_fnc_dynamictext ~4 exit; running it on a trigger like I do with a cutscene like [] exec "chat.sqf", but dosen't happen. Tried CutText ["Man - "blah blah blab blah","Plain Down",0]; ~3 CutText ["Man - "blah blah blab blah"","Plain Down",0] dosen't work either Tried titletext but nothing.. It works fine during a cutscene, but I want it to be displayed while actually playing.... What am I doing wrong please Tried searching for "screen AND text" etc etc Share this post Link to post Share on other sites
kylania 568 Posted September 23, 2010 titleText examples Share this post Link to post Share on other sites
Koni 3 Posted September 23, 2010 Hot damn ! :p Tried titletext, but I must have made a mistake somewhere before trying another way. Thanks kylania :) Share this post Link to post Share on other sites
Jack_Ryan_ 10 Posted September 23, 2010 Thanks kylania, your link not only helped me with the text, but what a great resource you have there. Hi5 Share this post Link to post Share on other sites
CarlGustaffa 4 Posted September 23, 2010 (edited) running it on a trigger like I do with a cutscene like [] exec "chat.sqf", but dosen't happen. 1) In a trigger you need the syntax: [b]0 = [/b][] execVM "chat.sqf" 2) Also, for .sqf files use execVM, for .sqs files use exec. 3) The syntax you use is sqs. I suggest rewriting it to use sqf. 4) Is functions module placed in the mission? 5) With functions module placed, with a true trigger with a one second delay, I put this in its On Activation field: 0 = ["Man: blah blah blab blah",0,.84,5,1] spawn bis_fnc_dynamictext And the text is shown. Not sure where all your "'s came from. Edited September 23, 2010 by CarlGustaffa Share this post Link to post Share on other sites
Koni 3 Posted September 23, 2010 (edited) 1) In a trigger you need the syntax: [b]0 = [/b][] execVM "chat.sqf" 2) Also, for .sqf files use execVM, for .sqs files use exec. 3) The syntax you use is sqs. I suggest rewriting it to use sqf. 4) Is functions module placed in the mission? 5) With functions module placed, with a true trigger with a one second delay, I put this in its On Activation field: 0 = ["Man: blah blah blab blah",0,.84,5,1] spawn bis_fnc_dynamictext And the text is shown. Not sure where all your "'s came from. the ""'s we're from picking apart other peoples demo missions. Generally if there is something I don't know how to do, I will first try and search the forums, but in many cases what I want to do may exist but I don't know what it would be called to search for it, so I end up reading thread after thread for many pages and I don't seem to have much luck doing that either lol Then if I still can't find what I am after, I open up assorted missions from Armaholic and see if they have included in their mission what I am after doing too, then if all that fails I will post a question on here and hope I don't get flamed for not searching around for my own answer first :p So I seem to be stuck doing my very basic scripting in .sqs then, old habit from OFP, though I must admit I am a somewhat novice "complex" mission maker. People on here have said before I should be using [] execVM to execute a script from a trigger but it would never accept that, though you are the first I have noticed use the 0 = while explaining how to do it, so from now on I will try using 0 = [] execvm so I thank you for that :) Edited September 23, 2010 by Koni Share this post Link to post Share on other sites
kylania 568 Posted September 23, 2010 If you're copying code directly from the mission.sqm file, remember that there are extra " " around everything. Share this post Link to post Share on other sites
Koni 3 Posted September 23, 2010 No never from the mission.sqm, script files and triggers only, though that's not to say they didn't do that in finding it themselves in the first place maybe. Share this post Link to post Share on other sites
CarlGustaffa 4 Posted September 23, 2010 @kylania: Yes, but have a look at the original " count (7, which is odd :D) and how/where they appear. Smelled fishy for me to be copied from mission.sqm. The line 0 = ["Man: blah blah blab blah",0,.84,5,1] spawn bis_fnc_dynamictext would end up like "0 = [""Man: blah blah blab blah"",0,.84,5,1] spawn bis_fnc_dynamictext" which at least is enclosed in an even number of ". Share this post Link to post Share on other sites
kylania 568 Posted September 23, 2010 To be honest i read the first post as this: blah blah Tried titletext but nothing.. blah blah :j::p Share this post Link to post Share on other sites