Dialogue Trigger System

Post Reply
User avatar
Schulz561
Posts: 16
Joined: Sun Mar 17, 2019 6:22 pm

Dialogue Trigger System

Post by Schulz561 » Sat Apr 04, 2020 11:34 pm

Hello,

I'm looking to implement a trigger for dialogue, ex. when the player walks into a room the dialogue starts automatically. What's a good starting point?

Thanks in advance,
Schulz
User avatar
dale_coop
Posts: 5215
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Dialogue Trigger System

Post by dale_coop » Sun Apr 05, 2020 9:03 am

Check the AutoText tile, here's the script:
viewtopic.php?p=16577#p16577
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
My son's game: KUBO 3
User avatar
Schulz561
Posts: 16
Joined: Sun Mar 17, 2019 6:22 pm

Re: Dialogue Trigger System

Post by Schulz561 » Sun Apr 05, 2020 3:10 pm

Thanks for the reply Dale! I seem to be stuck though. I can't find a way to attach it to tile collision 9.
User avatar
Schulz561
Posts: 16
Joined: Sun Mar 17, 2019 6:22 pm

Re: Dialogue Trigger System

Post by Schulz561 » Sun Apr 05, 2020 3:31 pm

I'm also very new to ASM and scripting in NES maker. So I got lost in the post you sent me haha
User avatar
dale_coop
Posts: 5215
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Dialogue Trigger System

Post by dale_coop » Sun Apr 05, 2020 3:44 pm

Schulz561 wrote:
Sun Apr 05, 2020 3:10 pm
Thanks for the reply Dale! I seem to be stuck though. I can't find a way to attach it to tile collision 9.
You need to make a AutoText.asm script, then assign it to an unused "Tile Collision XX" in the "Project Settings > Script Settings" (select the element in the left list... and browse to your script in the right list, double click to assign the script to the selected element).
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
My son's game: KUBO 3
User avatar
Schulz561
Posts: 16
Joined: Sun Mar 17, 2019 6:22 pm

Re: Dialogue Trigger System

Post by Schulz561 » Sun Apr 05, 2020 4:41 pm

Got it working! Thanks, Dale :) Now just need to figure out how to be able to leave it as walkable after leaving the screen and coming back.
Post Reply