Pie015 Posted August 6, 2010 Share Posted August 6, 2010 (edited) SCROLL DOWN, this has been edited. Edited August 14, 2010 by Pie015 Link to comment Share on other sites More sharing options...
BnB Posted August 6, 2010 Share Posted August 6, 2010 If you are making a cleo mission or script yes Link to comment Share on other sites More sharing options...
toonskull Posted August 6, 2010 Share Posted August 6, 2010 Maybe it depends. You can use a pointer if you can comprehend such things. Then the text is "hard coded" into your script. //Text Block0A9F: [email protected] = current_thread_pointer [email protected] += 16 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= @TEXT [email protected] += 4 //Game Version Checkwait 00AA9: is_game_version_originaljf @REALCOPS_200 0AA5: call 0x588BE0 num_params 4 pop 4 0 0 0 [email protected] jump @REALCOPS_210:REALCOPS_200 0AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 [email protected] jump @REALCOPS_210:TEXT0900: unknown_set_object "You have about 30 seconds before this ~r~witness~w~ tells the cops." 0000: NOP //End Text Block:REALCOPS_210 Ok let's examine this code which I used in my "REAL cops mod". The first line sets local variable [email protected] to the address where our script starts. The next 4 lines of code points at the :TEXT label. The next section checks the game version because the original stores the "text box" command at 0x5893B0 address and the other at 0x588BE0. So the line; 0AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 [email protected] places the text line into the text box. Meanwhile the NOP stands for no operation which tells the program that is the end of the string of text. Depending on your skill you could write up a simple subroutine (gosub return) to display many lines of text. In fact, I am working on a detailed example of this. Now the other way not only requires you to make a fxt file but requires the people who download it to use it correctly. I am not calling people foolish but the method above creates 1 file and makes it fool proof. There is one other thing you can do to make life simple for yourself. Make certain what you want to say isn't already inside the game script someplace. Load up the GTASAGXT.text and do a simple search for it in there. Link to comment Share on other sites More sharing options...
Pie015 Posted August 6, 2010 Author Share Posted August 6, 2010 If you are making a cleo mission or script yes Whats wrong with this script? I created a .fxt and put in the CLEO_TEXT folder {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'ICON_HELP'wait 100A95: [email protected] = Pickup.Create(1239, 15, 2492.348, -1700.365, 1018.344)wait 1000if Pickup.Picked_up([email protected])03E5: show_text_box 'ICON'0A93: end_custom_thread and heres the .fxt ICON Head over to Binco and pickup the icon and type model to scroll through models, press ~k~~CONVERSATION_YES~ and ~k~~CONVERSATION_NO~ to select. If you want CJ back, go to Binco again. Link to comment Share on other sites More sharing options...
toonskull Posted August 6, 2010 Share Posted August 6, 2010 The wait 10 is not needed here. You need a label and loop. Wait 0 is better than waiting 1 second. {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'ICON_HELP'0A95: [email protected] = Pickup.Create(1239, 15, 2492.348, -1700.365, 1018.344):loopwait 0if Pickup.Picked_up([email protected])jf @loop03E5: show_text_box 'ICON'0A93: end_custom_thread Link to comment Share on other sites More sharing options...
Pie015 Posted August 14, 2010 Author Share Posted August 14, 2010 Hi guys, I know im bumping this topic But I want to ask a question about text Can we do this kind of text in single??? Link to comment Share on other sites More sharing options...
BnB Posted August 14, 2010 Share Posted August 14, 2010 Have a look here Link to comment Share on other sites More sharing options...
Pie015 Posted August 14, 2010 Author Share Posted August 14, 2010 Have a look here Thanks Is there any way to add colour? Oh and is there any way to make it permanent? // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 21/6/2010{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'ICON_HELP' 0A95: enable_thread_saving [email protected] = Pickup.Create(1239, 23, 2430.4353, -1670.5217, 13.5691):loopwait 0 if 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2430.4353 -1670.5217 13.5691 radius 1.0 1.0 1.0 jf @loop 00BA: show_text_styled FXT 'ICON' time 4000 style 10A93: end_custom_thread Link to comment Share on other sites More sharing options...
Silent Posted August 14, 2010 Share Posted August 14, 2010 Thanks Is there any way to add colour? Add ~r~, ~g~, ~b~, ~p~, ~w~ or ~y~ before word, that you want to have a color, and ~s~after it. I think that there is a full list somewhere. Link to comment Share on other sites More sharing options...
Pie015 Posted August 14, 2010 Author Share Posted August 14, 2010 Thanks Is there any way to add colour? Add ~r~, ~g~, ~b~, ~p~, ~w~ or ~y~ before word, that you want to have a color, and ~s~after it. I think that there is a full list somewhere. Thanks! What are the colours? Link to comment Share on other sites More sharing options...
james227uk Posted August 14, 2010 Share Posted August 14, 2010 R = Red G = Green B = Blue W = White Y = Yellow Doesn't take a genious to work that out Link to comment Share on other sites More sharing options...
Pie015 Posted August 15, 2010 Author Share Posted August 15, 2010 R = RedG = Green B = Blue W = White Y = Yellow Doesn't take a genious to work that out *joyful yay* But when I pick it up it works fine but the second time the text dosent show. Link to comment Share on other sites More sharing options...
ZAZ Posted August 15, 2010 Share Posted August 15, 2010 *joyful yay* But when I pick it up it works fine but the second time the text dosent show. Special charackter are problematical, I assume the slash the reason. CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Deji Posted August 15, 2010 Share Posted August 15, 2010 Is it just me, or are you going for Redgies Roleplay on single player? You're using the wrong pickup type. Try 1 or re-creating the pickup on pick up. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now