luizinhomt Posted March 10, 2024 Posted March 10, 2024 (edited) Good evening everyone, would anyone know the code to place a cutin inside a window? I wanted to put my cutin inside a window like this for interacting with an NPC Thank you very much in advance Edited March 10, 2024 by luizinhomt edit Quote
0 WhiteEagle Posted March 11, 2024 Posted March 11, 2024 3 hours ago, luizinhomt said: Thank you for answering more than I need and may the cutin stay within the window. I saw this on a server, it looks better because you can move the window to another place to better view the image I think, you talk about cutin "filename",3; <-- position 3 *cutin "<filename>",<position>; *cutin2 "<filename>",<position>; This command will display a picture, usually an NPC illustration, also called cutin, for the currently attached client. The position parameter determines the placement of the illustration and takes following values: 0 bottom left corner 1 bottom middle 2 bottom right corner 3 middle of screen in a movable window with an empty title bar 4 middle of screen without the window header, but still movable 255 clear all displayed cutins 1 Quote
0 sfj209jfo-p Posted March 10, 2024 Posted March 10, 2024 see kafra as example: geffen,120,62,0 script Kafra::kaf_geffen 4_F_KAFRA3,{ cutin "kafra_03",2; this kafra_03 is the name of the picture inside the grf path: data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\illust to remove the cutin, before calling close, add cutin "", 255; Quote
0 luizinhomt Posted March 10, 2024 Author Posted March 10, 2024 Thank you for answering more than I need and may the cutin stay within the window. I saw this on a server, it looks better because you can move the window to another place to better view the image Quote
0 luizinhomt Posted March 11, 2024 Author Posted March 11, 2024 Thank you very much exactly what I need Quote
0 Kate Bishop Posted May 11, 2024 Posted May 11, 2024 On 3/11/2024 at 5:16 AM, luizinhomt said: Good evening everyone, would anyone know the code to place a cutin inside a window? I wanted to put my cutin inside a window like this for interacting with an NPC Wordle Unlimited Thank you very much in advance You'll need to trigger the cutin display when interacting with the NPC. by using the onNPCTalk or onNPCTouch event handlers within the NPC script. These handlers will execute your custom script defined for the cutin. Here is the approach: // Define your cutin graphic script MyCutin { // Specify image filename, position (x,y), and size (width,height) image "..." x "..." y "..." w "..." h "..."; } // NPC Script script MyNPC { ... // Other NPC definitions // Trigger cutin display on NPC interaction onNPCTalk: MyCutin; // Call the cutin script ... // Continue NPC interaction logic } // In your main script showwindow { // Define window properties (size, position, background) button "..." { /* NPC interaction button */ }; } Quote
0 ColeHarry Posted June 6 Posted June 6 On 5/11/2024 at 8:53 PM, Kate Bishop said: You'll need to trigger the cutin display when interacting with the NPC. by using the onNPCTalk or onNPCTouch event handlers within the NPC script. These handlers will execute your custom script defined for the cutin. Here is the approach: escape road // Define your cutin graphic script MyCutin { // Specify image filename, position (x,y), and size (width,height) image "..." x "..." y "..." w "..." h "..."; } // NPC Script script MyNPC { ... // Other NPC definitions // Trigger cutin display on NPC interaction onNPCTalk: MyCutin; // Call the cutin script ... // Continue NPC interaction logic } // In your main script showwindow { // Define window properties (size, position, background) button "..." { /* NPC interaction button */ }; } I greatly appreciate it; this is precisely what I required. Quote
Question
luizinhomt
Good evening everyone, would anyone know the code to place a cutin inside a window? I wanted to put my cutin inside a window like this for interacting with an NPC
Edited by luizinhomtThank you very much in advance
edit
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.