Product Chat (Early Access) / [SOLVED] Need a custom behavior for Stand and speak

Author
Message
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 17th Jun 2022 01:57
I am trying to have more than one file for my characters to speak, could anyone help me with this behavior? and is it even possible to do this?

Also would like to set the characters as allies, not enemies, if possible?

Right now only enemies can stand and speak unless I am missing something lol I set up Acid's 4-digit code to open my door.

However, the play must get the four questions from the receptionist that greets them, and right now she only says the greeting file and not the file for the questions.

Okay you got me, I trying to do a little RPG and puzzle stuff while I wait for the developers to start work on their end lol I got the hidden room to work but now I need to have my characters stand and speak more than one file as it is set up right now.

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 17th Jun 2022 14:26
A character can have 4 speech files attached, you just need the script to control when each one is played.

If you wanted more than 4 then you could cheat by having two identical characters in the same place, one being hidden after the 4th speech and the other being unhidden. Would probably be a little more complicated than that as I doubt the engine would appreciate two characters occupying the same position at the same time.

If 4 is sufficient then it is just a case of how the speeches are to pan out, does the player have to listen to one speech then go off and do something and come back for the second? Or maybe just press E to hear the next one?

Would need a few more details.
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 17th Jun 2022 14:29
Btw this sort of thing is what Cine|Guru can be used for.
Been there, done that, got all the T-Shirts!
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 17th Jun 2022 16:13
@AmenMoses
Quote: " If 4 is sufficient then it is just a case of how the speeches are to pan out, does the player have to listen to one speech then go off and do something and come back for the second? Or maybe just press E to hear the next one?"


I like both of those options. The only behavior I know that does 4 sayings is the attack one. The stand and speak only does one, this is no other play to put speech and I tried the developer tab which does not add any more sound to the character as it should.

I like the idea of pressing E to hear the next line because as I player, I do not want to stand there listening to her repeat the greeting again but I need to make sure that I heard the questions right.

I will look into Cine|Guru to see what it offers as well and thanks again for helping me with this.

Below is a screenshot of the Stand and speak behavior which you will notice only has one speech which is crazy lol
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 17th Jun 2022 19:46 Edited at: 17th Jun 2022 19:48
This post has been marked by the post author as the answer.
https://vimeo.com/721551767/6785cdca71

Here is a starting point.

Examine the script and see if you can follow the logic of how it works, then it shouldn't be too difficult to adjust the behaviour to suit the application.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 17th Jun 2022 20:12
Thank you so much, @AmenMoses for all your hard work on the script
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 17th Jun 2022 20:26
works perfectly for my needs. thanks again @AmenMoses
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 17th Jun 2022 22:05 Edited at: 18th Jun 2022 15:49
@AmenMoses I need help lol with my first custom Behavior that I made myself lol

Okay here goes, I try to combine your code with the Melee Attack one to make a new Behavior called Melee Attack with Speech lol so as the player is fighting with the NCP, they would taut the player lol before crashing, it says line 34 was broken.

I copy everything from Melee Attack and from your speech one lol guess I missed something, could you help me, please. This is my very first attempt to make a Lua script.

I am attaching my behavior script so when you got any spare time, you could look at it.

Thank you for any advice.

Attachments

Login to view attachments
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 18th Jun 2022 10:28
Not attached.

You need to edit your poste and then attach, doesn't work the first time.

Been there, done that, got all the T-Shirts!
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 18th Jun 2022 15:50
It should attached that time lol
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 18th Jun 2022 19:53
Yeah, that's not going to work.

The Melee attack stuff is using Lee's masterinterpreter system (i.e. the weird behaviour editor thing) so that is what you would need to be using to edit it.

You can't just smash two scripts together like that!
Been there, done that, got all the T-Shirts!
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 18th Jun 2022 20:19 Edited at: 18th Jun 2022 21:17
@AmenMoses lol I figure as much lol guess for now it will be a silent fight lol, by the way, finding more ways to use your Glue Behavior in my game lol https://forum.game-guru.com/thread/223683#msg2648946
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 18th Jun 2022 20:40
Always glad to see my scripts used in anger so-to-speak.
Been there, done that, got all the T-Shirts!
PM
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 18th Jun 2022 21:22
That Glue Behavior is fun to use and the speech one will come in handy as I add more characters lol
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 19th Jun 2022 11:37 Edited at: 19th Jun 2022 11:47
@ Shadow_Master
Are you looking for something like this, though (it is a debug video and there are some bugs on speech times)
I've done it with the early GGMax version times ago, now it is fixed.

https://www.youtube.com/watch?v=oxJW_7q4dlg

https://www.youtube.com/watch?v=EMSyQevbwts

Edit: fixing link
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
science boy
16
Years of Service
User Offline
Joined: 3rd Oct 2008
Location: Up the creek
Posted: 19th Jun 2022 15:58 Edited at: 19th Jun 2022 16:01
You could actually have a lot of speech in one ogg file and attach to the fight soundtrack which plays when combat happens. Just assign the soundtrack you made ie speech and etc. Then will play when he starts a fight. I think its going to be a soundtrack per entity so its character specific. However not sure if its in yet
Im 50 now aint a kid travelled the world been in terrorist bombing shot at near kidnapped. Have an audi a house a fiancee a cat and ex dj and promoter and now home Manager. Have a degree and lots of quals and this is actually all true
Shadow_Master
4
Years of Service
User Offline
Joined: 7th Oct 2020
Location:
Posted: 19th Jun 2022 22:20 Edited at: 19th Jun 2022 22:21
@3com, the behavior script that AmenMoses made is perfect for stand and speak characters, I was trying to apply his script to my npc melee fighter but got ahead of myself.

I do like your Idea about the player having a conservation with the AI, and could use that in my game at some point. Also, I need to learn the basic Lua code (scripting) first and wait for Lee to finish the AI behavior scripts first lol

I honestly think that AmenMoses behavior script 'my stand and speak' should be put into Max as a default one because might help others as well while RPG is on hold until 80% to 90% of the bugs are gone lol

Like Lee said some stuff like behaviors, DMC, and game kits are coming from you guys (third party)

@science boy, The speech that comes built-in for Melee does not have any delay, so the soundtracks are playing on top of each other.

Thanks to all of you for your wonderful help
PM

Login to post a reply

Server time is: 2024-12-21 18:28:35
Your offset time is: 2024-12-21 18:28:35