• Welcome to Freedom Reborn Archive.
 

Ez Script

Started by Hiroki8, September 12, 2007, 08:21:22 AM

Previous topic - Next topic

Boalt92

Hiroki,

Take out the colon after "Chat" and it should work
QuoteChat: Cutscene:

For the talking heads:  try putting the head.nif from the "defaulthead" folder in ffx3 into your character folders (along with character.nif and keyframes).  It might not make a difference, but it can't hurt.  Just make sure you have portraits in these characters as that's what the head.nif uses.

Second encounter cutscene should read "Ally Thanks Hero Cutscene:"
QuoteAlly Thanks Cutscene:

Those two typos should fix it....and can you imagine how tough it is to write real code?

B92

Hiroki8

yeah I know....I used to program myself but finally gave up...

I tried the chat part again..it still didn't work...the ally still ran away without saying anything..


This is the whole thing..it still doesn't work right...

[spoiler]Story: Ultimate Alliance

Encounter: Assasins
Type: Interrogation
Villains: Bullseye, Typhoid Mary

Alert Cutscene:
Red arrow on Villain1

Start Cutscene:
Camera on Villain1
Villain1 turns to Hero
Villain1 says, "There they are! lets have some fun shall we?"
Camera on Villain2
Villain2 turns to Hero
Villain2 says, "Mmmmmm I feel bloody!"

Interrogation Cutscene:
Camera on Hero1
Hero1 says, "who sent you?"
Villain1 says, "You don't know how big this..eraahhhh"
Hero1 says, "A Psychic assult, this is deeper than we thought."
Hero1 says, "SHIELD just sent a message."

Encounter: Meet
Type: Chat
Allies: SHIELD Agent

Alert Cutscene:
Yellow arrow on Ally

Chat Cutscene:
Ally turns to Hero1
Hero1 turns to Ally
Ally says, "Sorry to disturb sir, Agent 16 reporting."
Hero1 says, "A S.H.I.E.L.D. agent?"
Ally says, "Yes sir, S.H.I.E.L.D. intelligence just reported that Mysterio has been spotted with a group of Ultron bots."
Hero2 says, "Mysterio?"
Ally says, "S.H.I.E.L.D. has requsted your presence in the scene."
Hero1 says, "Thank you soldier, we are on our way."
Hero1 says: "you heard the man, lets move!."

Encounter: Mysterio
Type: Rampage
Villains: Mysterio
Minions: Ultron bot

Alert Cutscene:
Red arrow on Villain1

Start Cutscene:
Hero1 says, "Mysterio activated some of the Ultron bots!"
Villain1 says, "Welcome heroes to my house of Illusions!"

End Cutscene:
Camera on Hero1
Hero1 says, "This was a diversion."

Encounter: A.I.M.
Type: Save Civilian
Villains: AIM, AIM, AIM, AIM, AIM, AIM, AIM, AIM
Allies: ffq_civilian_female
Next: If Allies Saved: M.O.D.O.K.
Next: If Allies Lost: Regroup

Alert Cutscene:
Red arrow on Ally
Hero1 says, "There! A.I.M. is kidnapping that woman!"

Start Cutscene:
Villain1 turns to hero
Villain1 says, "Come no closer, or the lady gets it!"
Villain2 says, "But you said she would get it anyway."
Villain1 says, "Quiet!"
Hero1 says, "Quickly, while they are distracted.  Get them!"

Ally Thanks Hero Cutscene:
Ally says, "Thank you."
Hero1 says, "What did they want from you?"
Ally says, "They said it was because I had mutant genes..oh no what if I'm a mutant..."
Hero1 says, "its nothing to be ashamed about."

Encounter: M.O.D.O.K.
Type: Interrogation
Villains: MODOK
minions: AIM

Alert Cutscene:
Red arrow on Villain1

Start Cutscene:
Villain1 says, "Get back heroes! you will not be allowed to live for interfering with our plans."
Hero2 says, "M.O.D.O.K., I knew you would show your face sooner or later. You were also the one who the Psychic assult on those two assasins earlier weren't you!"
Villain1 says, "excellent conclusion but I will not be denied my prize by one such as you!"

Interrogation Cutscene:
Camera on Villain1
Villain1 says, "Nooo! This cannot be happening!! my calculations are never wrong!! I knew I should have not trusted them!"
Hero1 says, " Them? there is a bigger plot going on here.."
wait for 10 seconds

Encounter: Regroup
Type: Chat
Allies: SHIELD Agent

Alert Cutscene:
Yellow arrow on Ally

Chat Cutscene:
Ally turns to Hero1
Hero1 turns to Ally
Ally says, "Agent 16 reporting."
Hero1 says, "Yes soldier, anything to report?"
Ally says, "S.H.I.E.L.D. intelligence just reported that atlantean forces has been spotted moving towards the surface in what looks to be an invasion."
Hero2 says, "What?!"
Ally says, "I have been assigned to tell you that S.H.I.E.L.D. has requested your help to stop the initial force so that S.H.I.E.L.D. can have time to prepare a proper response."
Hero1 says, "Thank you soldier, we are on our way."

Chat won Cutscene:
Hero1 says: "you heard the man, lets move!."

Encounter: Atlantis Attacks!
Type: Rescue Caged
Villains: Atlantean, Atlantean, Atlantean, Atlantean, Atlantean, Atlantean, Atlantean
Allies: Namor
Next: If Allies Saved: Fin Fang Foom
Next: If Allies Lost: End

Alert Cutscene:
Set Lighting to night
Red arrow on Ally
Hero1 says, "We just recieved intel from S.H.I.E.L.D. that Atlantis has attacked, we are asked to stop their advance."

Start Cutscene:
Villain1 says, "Out of our way surface dweller! we have finally been allowed to put an end to the threat of your kind"
Ally says, "Heroes I don't know what has been going on but you have to stop them from going to war!."
Villain1 says, "No! we will not be denied retribution!"
Hero1 says, "Whats happening? why is Namor caged?"

Ally Thanks Hero Cutscene:
Ally says, "I do not know what happened, I suddenly lost consciousness and just recently came to, imprisoned."
Hero1 says, "it must be the work of M.O.D.O.K., we just defeated him that must have lifted him hold on you."
Ally says, "In any case if this offensive assult is done to me or my people again I will take it as an act of war and act appropriately."
Hero1 says, "you're welcome."

Encounter: Meet2
Type: Chat
Allies: SHIELD Agent

Alert Cutscene:
Yellow arrow on Ally

Chat Cutscene:
Ally turns to Hero1
Hero1 turns to Ally
Ally says, "Agent 16 reporting."
Hero1 says, "Yes soldier."
Ally says, "S.H.I.E.L.D. has examined the woman you rescued from A.I.M. and found her to have latent mutant genes."
Hero2 says, "What does this suggest?"
Ally says, "S.H.I.E.L.D. scientists found findings to suggest that if her powers were to manifest she would be able to create an E.M.P. shock wave large enough to disable global electronic systems."
Hero1 says, "A giant E.M.P. bomb...we must find out where their next target is."
Ally says, "S.H.I.E.L.D. will get on it right away sir...Report just in sir! Intelligence has reported a disturbance regarding a giant green monster.."

Chat won Cutscene:
Hero1 says: "you heard the man, lets move!."

Encounter: Fin Fang Foom
Type: Fight
Villains: Fin Fang Foom

Alert Cutscene:
Shake Camera
Red arrow on Villain1

Start Cutscene:
Camera on Villain1
Hero2 says, "its Fin Fang Foom!"
Villain1 says telepathically, "Tremble Mortals!!"

End Cutscene:
Hero1 says, "What could this all mean?"

Encounter: Valley of the Spirits
Type: Fight
Villains: Grey Gargoyle, x danger drone m, x danger drone m

Alert Cutscene:
Red arrow on Villain1

Start Cutscene:
Camera on Villain1
Villain1 says, "Heroes? what are you doing here?"
Hero1 says, "Mandarin invited us."

Encounter: The Mandarin
Type: Interrogation
Villains: Mandarin
minions: x danger drone m

Alert Cutscene:
Villain1 Teleports to Hero1
Red arrow on Villain1

Start Cutscene:
Camera on Villain1
Villain1 says, "How dare you enter my Palace!!"
Hero1 says, "all your taunting certainly didn't help."
Villain1 says, "What are you talking about?! I haven't....Them!!"
Hero1 says, "Them?"
Villain1 says, "I will not stand for this!! you will be punushed for your intrusion!"

Interrogation Cutscene:
Villain1 says, "Hahahaha they actually used you attack me."
Hero1 says, "They?"
Villain1 says, "The Masters of Evil!"
Hero1 says, "Why would they attack you?"
Villain1 says, "I attempted to take control but failed so I left their little cabal."

End Cutscene:
Hero1 says, "I have a feeling this is just the begining."[/spoiler]

M25


In your chat cutscene you have references to Hero1 and Hero2.  If you play the mission with only one hero, the cutscene will never play, since EZ script can't find two different heroes to say the dialogue.

Chat Cutscene:
Ally turns to Hero1
Hero1 turns to Ally
Ally says, "Sorry to disturb sir, Agent 16 reporting."
Hero1 says, "A S.H.I.E.L.D. agent?"
Ally says, "Yes sir, S.H.I.E.L.D. intelligence just reported that Mysterio has been spotted with a group of Ultron bots."

THE PROBLEM IS HERE ----> Hero2 says, "Mysterio?"

Ally says, "S.H.I.E.L.D. has requsted your presence in the scene."
Hero1 says, "Thank you soldier, we are on our way."
Hero1 says: "you heard the man, lets move!."




In your Save Civilian Cutscene (and probably others) it looks like you wrote it in Word or some other word processing program.   The problem here is that word processors don't use standard quotation marks when they save to text files. You have to go into the text file and change all of the quotation marks to the standard "  (not " or ").  EZ script currently can't read the dialogue correctly so it looks like it isn't playing.

In the start cutscene you've used both 'hero' and 'Hero1' which is probably not what you wanted.


The talking head issue:
When you use dialogue in your cutscene that already exists in the game (things like "Thank you.") EZ script will try to use a talking head.  If the character doesn't have a talking head (ffq_civilian_female does not), then it will display the speech caption without the head. 


M25

To follow up on the previous problem Hiroki8 was having with characters not being able to damage each other - the 'affects enemies only' option was checked on the powers being used.  This option can cause problems as characters spawned from custom heroes won't register as enemies for the purpose of the 'affects enemies only' option, even when you've labeled them as villains in EZ script.


Hiroki8

I have a new question:

how come when I start this encounter up the ally I'm supposed to talk to disappears before I even get to talk to him? :unsure:

[spoiler]Encounter: Request
Type: Chat
Allies: Prof X astral

Alert Cutscene:
Ally teleports to Hero1
Yellow arrow on Ally
Play effect effect_ffx_translucency at Ally

Chat Cutscene:
Ally turns to Hero1
Ally says Telepathically, "Heroes! your help is needed!"
Hero1 says, "Charles? What is the problem?"
Ally says Telepathically, "I was recently contacted by Lilandra, she warned me of an invasion force that she believes is already on Earth."
Hero1 says, "An invasion? but by whom?"
Ally says Telepathically, "She was cut off before I could find out. I would like you to investigate."
Hero1 says, "We will do what we can."
Ally says Telepathically: "Thank you, I will be in telepathic contact and assist you in anyway I can."[/spoiler]

M25

It looks correct.  Check the name of the ally to make sure it matches the name of the hero file.

Hiroki8

its working now :thumbup: apparently I can't start the mission with that encounter..by the way can I make any ally teleport out of that scene?

M25

I was able to start a mission with that encounter, but I'm glad it's working for you now regardless.

You can teleport an ally anywhere, but you need to have something on the map to teleport them to, either a marker or another character.


Boalt92

Quotehow come when I start this encounter up the ally I'm supposed to talk to disappears before I even get to talk to him?
I think I found the problem:

QuoteAlly says Telepathically, "Heroes! your help is needed!"
Since the ally is already part of the encounter, you do not have to use "Telepathically".

Just a thought

B92

Hiroki8

I try it again if the telepathic conversation has any effect..about the teleportation thing..I was using the conversation as professor X being an astral projection but it would look weird if he ran away after the encounter.. any ideas on how to fix this?

Boalt92

If memory serves, "telepathically" allows you to use a character who is not part of the encounter.  Try this:
Encounter: Request
Type: Cutscene

Alert Cutscene:
cinematic camera on Hero1
Prof X astral says Telepathically, "Heroes! your help is needed!"
Hero1 says, "Charles? What is the problem?"
Prof X astral says Telepathically, "I was recently contacted by Lilandra, she warned me of an invasion force that she believes is already on Earth."
Hero1 says, "An invasion? but by whom?"
Prof X astral says Telepathically, "She was cut off before I could find out. I would like you to investigate."
Hero1 says, "We will do what we can."
Prof X astral says Telepathically: "Thank you, I will be in telepathic contact and assist you in anyway I can."


You don't get the cool effect on Professor X, but you also don't have to worry about teleporting anything, and you should be able to use this for all Professor X's "psychic" dialogue.

B92

Hiroki8

Tried it but there was an error after the first encounter..something about the next encounter not existing or it being broken..

[spoiler]Encounter: Request
Type: Cutscene
Next: Invasion

Start Cutscene:
Cinematic camera on Hero1
Prof X astral says Telepathically, "Heroes! your help is needed!"
Hero1 says, "Charles? What is the problem?"
Prof X astral says Telepathically, "I was recently contacted by Lilandra, she warned me of an invasion force that she believes is already on Earth."
Hero1 says, "An invasion? but by whom?"
Prof X astral says Telepathically, "She was cut off before I could find out. I would like you to investigate."
Hero1 says, "We will do what we can."
Prof X astral says Telepathically: "Thank you, I will be in telepathic contact and assist you in anyway I can."
[/spoiler]..

after the first encounter the second one becomes an error



M25

speak telepathically probably won't work correctly for characters in hero files.  It's meant for built-in characters - otherwise the game has no template to work from. 

I would go with the first version you posted, where the Prof gets teleported to the hero.  If you want the character to speak and then disappear, you can destroy them at the end of the cutscene.

Ally is destroyed.




Hiroki8

Thanks  :D I'll try that  :thumbup:

question: would it be possible to simulate shapeshifting in a cutscene? like a civilian turning into a Skrull for instance.