Rivals of Aether

Rivals of Aether

Dialogue Buddy!
corolla stroker  [developer] 25 Jul, 2021 @ 2:00pm
ADDING CUSTOM COMPATIBILITY
TO IMPLEMENT COMPATIBILITY TO YOUR CHARACTER
Dialogue Buddy is a really easy buddy to work with, all you have to do is write text! Look below to see how to add it!

INIT.GML
diag_portrait=sprite_get(""); // This will allow you to put any custom portrait onto the dialogue buddy! //Adjust positioning of the portraits accordingly! Useful if the characters face is way too low diag_portrait_x = 0; // +: Backwards -:Forwards diag_portrait_y = 0; // +: Downwards -:Upwards

UPDATE.GML
if(variable_instance_exists(id,"diag")) { //Change their name whenever diag_name = "Your worst dream" // ADDING REGULAR DIALOGUE //Diagchoice is variable that keeps default interactions in array! Feel free to put as much as you would want! diagchoice = [ "Dialogue Choice 1", "Dialogue Choice 2", "Dialogue Choice 3"] // Specific Character Interactions // Regular dialogue if(otherUrl == "" && diag != "") //Change the url into a specific character's { diag = "Hey, I know you! I will beat you up."; diag_index = 0; //If your portrait has multiple sprite indexes. You can change them during the interaction! } // NRS/3-Part dialogue if(otherUrl == url) //Change the url into a specific character's { with(pet_obj) { if(variable_instance_exists(id,"diag_text")) { diag_nrs_p1 = other.player; //This will decide which character will speak first! If it's the opponent use (otherPlayer) instead. diag_nrs = true; //Sets the 3-Part dialogue to happen. diag_nrs_diag = [ "Hey, I know you! I will beat you up!", "So you left us for someone else, and now you've come back to beat us up?", "I-I had to do what was best for all of us, I wished you weren't dragged into this."] } //If your portrait has multiple sprite indexes. You can change them during the interaction! switch(diag_nrs_state) { case 0: //First Message other.diag_index = 1; break; case 1: //Second Message other.diag_index = 1; break; case 2: //Last Message other.diag_index = 2; break; } } } }

Thats all you have to do! Have fun and cant wait to see what funny interactions will come of it!
If you need more examples, feel free to check post_draw.gml!
Last edited by corolla stroker; 1 Jul, 2022 @ 1:14pm
< >
Showing 1-15 of 19 comments
Jetie 25 Jul, 2021 @ 4:00pm 
I found an error where it uses the default diagchoice lines even though I added character lines.
When I deleted all of the default diagchoice lines, it uses the one I put on my character.

Lines 987 - 1012 post_draw.gml
corolla stroker  [developer] 25 Jul, 2021 @ 4:28pm 
@Jetie Hi, just realized my mistake there, please resubcribed as it has been fixed now!
Jetie 25 Jul, 2021 @ 6:42pm 
thanks
samBooga 31 Jul, 2021 @ 3:15am 
One question. Can diagchoice be used in regular dialogue in specific character interactions? I've tried before, but it just gives me the default diagchoice, even though I used the right url.
chrismrhach 3 Jan, 2023 @ 11:54am 
it doesn't appear fix it!
corolla stroker  [developer] 4 Jan, 2023 @ 8:10am 
Originally posted by crismrhach:
it doesn't appear fix it!

You'll have to be more specific with the problems you've been having as it seems I cannot replicate it on my setup
chrismrhach 4 Jan, 2023 @ 12:13pm 
I copy the code from characters that work like goku and red and it doesn't work do i need to put something on other init or something can you give me the code without indications?
corolla stroker  [developer] 4 Jan, 2023 @ 2:15pm 
Originally posted by crismrhach:
I copy the code from characters that work like goku and red and it doesn't work do i need to put something on other init or something can you give me the code without indications?

You copied the code from other characters than the open resource here?
chrismrhach 5 Jan, 2023 @ 10:59am 
Originally posted by McDucky:
Originally posted by crismrhach:
I copy the code from characters that work like goku and red and it doesn't work do i need to put something on other init or something can you give me the code without indications?

You copied the code from other characters than the open resource here?

yes
chrismrhach 25 Jan, 2023 @ 11:29am 
can you tell me how to do it without failing plz bro
chrismrhach 27 Jan, 2023 @ 7:07pm 
hey can you help me? it doesn't work!!!!!
chrismrhach 27 Jan, 2023 @ 7:07pm 
help plz!
chrismrhach 27 Jan, 2023 @ 7:07pm 
give me the code without that much instructions
chrismrhach 27 Jan, 2023 @ 7:07pm 
help
chrismrhach 27 Jan, 2023 @ 7:07pm 
Please help me to ad code
< >
Showing 1-15 of 19 comments
Per page: 1530 50