#(SOLVED) Need help With Some Script stuff

1 messages · Page 1 of 1 (latest)

graceful fern
#

Map Event meaning Those Emevd Files And Ai script means those Lua Stuff

swift ore
#

The answer is: both

#

Well, basically his talk esd checks for certain flags and then handles the dialogue for nihil

#

But those flags get set from his animation

#

and the emevd controls damaging the player

#

Oh none of it is lua if that's your question

#

except maybe what determines when he will do the actions

graceful fern
#

Ah thanks but then i try with emevd but i don't know what to change so can you help me if you don't mind

#

Like i mean do you really need Esd files for nihil to damage, And can you tell me like which section in emevd sets the damage

#

Like Which part do i have to modify in order for damage to work and is it in these scripts part

#

EnableCharacterAI(12050800);
SetNetworkUpdateRate(12050800, true, CharacterUpdateFrequency.AlwaysUpdate);
DisplayBossHealthBar(Enabled, 12050800, 0, 904800000);
});

$Event(12052811, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10630));
SetEventFlagID(12052802, ON);
});

$Event(12052820, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10641));
SetSpEffect(10000, 10650);
});

$Event(12052821, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10642));
SetSpEffect(10000, 10651);
});

$Event(12052822, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10643));
SetSpEffect(10000, 10652);
});

$Event(12052823, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10645));
SetSpEffect(10000, 10660);
SetSpEffect(10000, 10665);
});

$Event(12052824, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10646));
SetSpEffect(10000, 10661);
SetSpEffect(10000, 10666);
});

$Event(12052825, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10647));
SetSpEffect(10000, 10662);
SetSpEffect(10000, 10667);
});

$Event(12052826, Restart, function() {
EndIf(EventFlag(12050800));
WaitFor(CharacterHasSpEffect(12050800, 10648) || CharacterDead(12050800));
SetSpEffect(10000, 10653);
});

swift ore
#

The talk esd is exclusively for the voice lines, so it isn't required. All that there is the damage portion. It checks mogh to see if he has a special effect and then applies the bleed to the player if he does (the animation gives him those special effects, I was wrong about the setting event flags part)

#

If you're doing this in another map you'll have to make sure the "WaitFor(CharacterHasSpEffect())" is checking mogh's entity ID

graceful fern
#

I mean Yea i have mohg's entity marked in another map's id tho

swift ore
#

All the "SetSpEffect(10000, X)" are the damage being applied (and the effect that interracts with the wonderous physic)

graceful fern
#

I mean then i did this all right then why is'nt his nihil working

swift ore
#

You initialized all the events?

graceful fern
#

wdym by wonderous physic

#

Pretty sure i did

swift ore
#

There's that one crystal tear that negates the effects of nihil. Also it looks like if the mogh dead flag is set then it might not happen (assuming that's what 12050800 is)

graceful fern
#

I mean i tried to remove the flag also but it still did'nt work

swift ore
#

And you're making him do the nihil animation right?

graceful fern
#

btw those $ events number like this one "$Event(x, Restart, function() {" Have effect or not

swift ore
#

Yes they do, the $ just means its in mattscript

graceful fern
#

Uh wdym by "Making him so nihil animation" I mean when i beat him and he goes to second phase which is through nihil

#

no i mean like if "$Event(x, Restart, function() {" Number is wrong in the place of X so would that effect for script to not work

swift ore
#

Event IDs can be whatever assuming you aren't doing anything useful with it. You could use the random event ID generator on this sheet and then just increment from it if you want to be safe: https://docs.google.com/spreadsheets/d/17sE1a1h87BhpiUwKUyJ9ZjKTeehXA4OuLwmQvTfwo_M/edit#gid=1770617590

#

this also tells you all you need to know about what that number means

graceful fern
#

Alr hold on lemme check

#

So In the end what i am doing wrong is then not putting the right value in $Event

swift ore
#

IDK how do you initialize your events? If the event id you're initializing does not match with the event ID of the event then yeah

graceful fern
#

Ah ok, So are these $Events ids already there or You can make your ids own with like starting number being same

swift ore
#

Whichever ones are in the emevd file for the map you're in are the ones that are there, you can also add your own or change them. If you put mogh in a different map then where he is originally then you need to copy these events from his map to yours and initialize them again in event 0. You could change the event ID if you want but it may not be necessary

#

and if you changed mogh's entity ID you need to edit the events to refer to that new ID

graceful fern
#

Event 0. Wait hold on wdym, I am sorry for distrubing you with these stupid questions because i am new to event scripting so wdym by event 0

#

Oh, Nah nah nah hold on

#

I think so i get it

#

so basically to add new event you first have to add it to the start right

swift ore
#

Yes

graceful fern
#

Alr hold on

#

Alr Mna appericiate the help man. And yea it worked, Lol. Thanks man for taking out your time and helping me out

swift ore
#

Epic, no problemo