#(SOLVED) Need help With Some Script stuff
1 messages · Page 1 of 1 (latest)
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
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);
});
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
I mean Yea i have mohg's entity marked in another map's id tho
All the "SetSpEffect(10000, X)" are the damage being applied (and the effect that interracts with the wonderous physic)
I mean then i did this all right then why is'nt his nihil working
You initialized all the events?
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)
I mean i tried to remove the flag also but it still did'nt work
And you're making him do the nihil animation right?
btw those $ events number like this one "$Event(x, Restart, function() {" Have effect or not
Yes they do, the $ just means its in mattscript
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
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
Instructions
How to find unused ids in Elden Ring
Maintained by thefifthmatt#1614, @thefifthmatt,Random id generator (refreshes every minute)
Please contact thefifthmatt for any corrections.,345070000
tl;dr: Pick base ids and use them across many different maps and params, filling in the last 4 ...
this also tells you all you need to know about what that number means
Alr hold on lemme check
So In the end what i am doing wrong is then not putting the right value in $Event
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
Ah ok, So are these $Events ids already there or You can make your ids own with like starting number being same
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
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
Yes
this tutorial can teach you: http://soulsmodding.wikidot.com/tutorial:learning-how-to-use-emevd
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
Epic, no problemo