Rivals of Aether

Rivals of Aether

Dialogue Buddy!
coffin of whip & naenae  [开发者] 2021 年 7 月 25 日 下午 2:00
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!
最后由 coffin of whip & naenae 编辑于; 2022 年 7 月 1 日 下午 1:14
< >
正在显示第 1 - 15 条,共 20 条留言
Jetie 2021 年 7 月 25 日 下午 4:00 
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
coffin of whip & naenae  [开发者] 2021 年 7 月 25 日 下午 4:28 
@Jetie Hi, just realized my mistake there, please resubcribed as it has been fixed now!
Jetie 2021 年 7 月 25 日 下午 6:42 
thanks
samBooga 2021 年 7 月 31 日 上午 3:15 
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 2023 年 1 月 3 日 上午 11:54 
it doesn't appear fix it!
coffin of whip & naenae  [开发者] 2023 年 1 月 4 日 上午 8:10 
引用自 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 2023 年 1 月 4 日 下午 12:13 
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?
coffin of whip & naenae  [开发者] 2023 年 1 月 4 日 下午 2:15 
引用自 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 2023 年 1 月 5 日 上午 10:59 
引用自 McDucky
引用自 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 2023 年 1 月 25 日 上午 11:29 
can you tell me how to do it without failing plz bro
chrismrhach 2023 年 1 月 27 日 下午 7:07 
hey can you help me? it doesn't work!!!!!
chrismrhach 2023 年 1 月 27 日 下午 7:07 
help plz!
chrismrhach 2023 年 1 月 27 日 下午 7:07 
give me the code without that much instructions
chrismrhach 2023 年 1 月 27 日 下午 7:07 
help
chrismrhach 2023 年 1 月 27 日 下午 7:07 
Please help me to ad code
< >
正在显示第 1 - 15 条,共 20 条留言
每页显示数: 1530 50