Please login or register.

Login with email, password and session length
 

News:

Happy 15th Birthday, Freedom Force!


Author Topic: Scripter Call: Mod Scripting Request  (Read 344 times)

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14369
    • The Greylands
Scripter Call: Mod Scripting Request
« on: February 17, 2016, 03:50:19 AM »
Howdy gents, for years I've struggled with the limitations of EZScript when it comes to non-required characters and dialog.  I wonder if anyone would be willing to look at M25's code and try to find a way to create a better solution.

At the moment, modders CAN create custom dialog for possible characters, but they have to use Hero1, Hero2, Hero3, etc, and the dialog is tied to the Hero# rather than the character identity.  In other words, we have to do this:

Hero3 says, if Hero3 is flash, "Well, let's get to it then!"
if Hero3 is superman, "Let's see how these things hold up to some heat vision!"
"Let's go!"

What I'd like si the ability to just say:

Hero says, if Hero is flash, "Well, let's get to it then!"
if Hero is superman, "Let's see how these things hold up to some heat vision!"
"Let's go!"

I'd like for EZscript to find the character, whichever Hero# he is, and go to the default with a random hero if it can't locate him/her. 

I know this must be difficult because M25 himself didn't do it, but this would give modders an extremely versatile and powerful tool for creating better playing experiences.  I know we don't have many scripters still left around, but I also know there are a few.  If you see this, please give it a try!
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14369
    • The Greylands
Re: Scripter Call: Mod Scripting Request
« Reply #1 on: July 11, 2016, 02:36:14 AM »
Bump.  Anyone out there willing to tackle this?
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 14369
    • The Greylands
Re: Scripter Call: Mod Scripting Request
« Reply #2 on: July 26, 2016, 06:03:44 PM »
Okay, I think I figured out how to do this!  I just need someone who knows some scripting, since I know none.  Digging through the mod docs, I discovered that there is a scripting function that looks for a character in the mission by their voice IDs and plays a given line of dialog if they are found.  This means there is, under the hood, a way to tie custom dialog specifically to a character, provided all characters have unique voice IDs.  That should be easy enough to do on my end, and it should allow a new EZScript function to be written to take advantage of it...at least as far as I understand it.  There's also a way to do this by trait, which could be really cool when combined with AI subtypes.  Is there anyone out there who could tackle this?

Here's the page from the manual:

Spoiler (click to show/hide)
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
http://games.groups.yahoo.com/group/bentongrey/
http://games.groups.yahoo.com/group/bentongrey2