Site Tools


tutorial:learning-how-to-use-emevd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorial:learning-how-to-use-emevd [2025/02/24 22:23] – created admintutorial:learning-how-to-use-emevd [2026/03/12 17:11] (current) positroncannon
Line 1: Line 1:
 ====== Learning How To Use EMEVD ====== ====== Learning How To Use EMEVD ======
 +Author: Geeeeeorge/King Bore Haha
 ===== Preamble ===== ===== Preamble =====
 This tutorial is mostly based off of Dark Souls 1 EMEVD, however it is extremely compatible with the other Soulsborne games. Later titles will have access to commands and systems that allow for more complex tasks or easier implementation, but the fundamentals will be mostly identical. This tutorial is mostly based off of Dark Souls 1 EMEVD, however it is extremely compatible with the other Soulsborne games. Later titles will have access to commands and systems that allow for more complex tasks or easier implementation, but the fundamentals will be mostly identical.
Line 35: Line 36:
  
 Example of an basic event template: Example of an basic event template:
-<code>+<code JavaScript>
 Event(1231231, Default, function() { //Event ID, Restart Type, Event Parameters Event(1231231, Default, function() { //Event ID, Restart Type, Event Parameters
          
Line 61: Line 62:
 When adding a new event, you must initialize it, otherwise it will never be run. In most cases you can initialize it at the very bottom of Event 0, but if desired you can initialize it under specific conditions or even from other events. When adding a new event, you must initialize it, otherwise it will never be run. In most cases you can initialize it at the very bottom of Event 0, but if desired you can initialize it under specific conditions or even from other events.
  
-<code>+<code JavaScript>
 InitializeEvent(0, 1231231, 0); //Event Slot, Event ID, Event Parameters InitializeEvent(0, 1231231, 0); //Event Slot, Event ID, Event Parameters
 </code> </code>
Line 75: Line 76:
 The first value (I.E. the 0 in X0_4) identifies the parameter. With vanilla events this value increments by 4 for each additional parameter (0, 4, 8, 12). The second value (I.E. the 4 in X0_4) determines how much data it can store (bit length), but in 99% of cases "4" is fine. The first value (I.E. the 0 in X0_4) identifies the parameter. With vanilla events this value increments by 4 for each additional parameter (0, 4, 8, 12). The second value (I.E. the 4 in X0_4) determines how much data it can store (bit length), but in 99% of cases "4" is fine.
  
-<code>+<code JavaScript>
 InitializeEvent(1, 1231231, 4040, 4444); //Event Parameters: X0_4 = 4040, X4_4 = 4444 InitializeEvent(1, 1231231, 4040, 4444); //Event Parameters: X0_4 = 4040, X4_4 = 4444
 InitializeEvent(2, 1231231, 5050, 5555); //Event Parameters: X0_4 = 5050, X4_4 = 5555 InitializeEvent(2, 1231231, 5050, 5555); //Event Parameters: X0_4 = 5050, X4_4 = 5555
Line 113: Line 114:
 The EndUnconditionally() command immediately ends or restarts the event when run. Unconditionally restarting events is very useful in a lot of situations, as it allows events to run repeatedly without restarting the event system. The EndUnconditionally() command immediately ends or restarts the event when run. Unconditionally restarting events is very useful in a lot of situations, as it allows events to run repeatedly without restarting the event system.
  
-<code>+<code JavaScript>
 Event(1231231, Default, function() { Event(1231231, Default, function() {
          
Line 128: Line 129:
 The Skip commands skip over other commands, allowing for some more complex behavior. The Skip commands skip over other commands, allowing for some more complex behavior.
  
-<code>+<code JavaScript>
 Event(1231231, Default, function() { Event(1231231, Default, function() {
          
Line 148: Line 149:
 MAIN is special, and will halt the event and repeatedly check all conditions until they are true. MAIN is special, and will halt the event and repeatedly check all conditions until they are true.
  
-<code>+<code JavaScript>
 Event(1231231, Default, function() { Event(1231231, Default, function() {
          
Line 165: Line 166:
 AND  AND 
 Flag 222333 OR flag 666777 is true Flag 222333 OR flag 666777 is true
-<code>+<code JavaScript>
 Event(1231231, Default, function() { Event(1231231, Default, function() {
          
Line 184: Line 185:
 Additionally, condition groups can be used outside of MAIN if you need the event to continue even if a check isn't true. This is referred to as an Uncompiled Condition Group. Additionally, condition groups can be used outside of MAIN if you need the event to continue even if a check isn't true. This is referred to as an Uncompiled Condition Group.
  
-<code>+<code JavaScript>
 Event(1231231, Default, function() { Event(1231231, Default, function() {
          
Line 203: Line 204:
 When player no longer has special effect 1122 OR 2233, remove special effect 4455 When player no longer has special effect 1122 OR 2233, remove special effect 4455
 Restart once the end has been reached. Restart once the end has been reached.
-<code>+<code JavaScript>
 Event(123123, Default, function() { //Event ID, Restart Type, Event Parameters Event(123123, Default, function() { //Event ID, Restart Type, Event Parameters
  
Line 227: Line 228:
 If player is within 30 units of the character with Entity ID 3500312, wait 3 seconds and enable AI for the 3 enemies. If player is within 30 units of the character with Entity ID 3500312, wait 3 seconds and enable AI for the 3 enemies.
 If player rests at a bonfire, restart the event (immediately disabling AI until the player is close enough again). If player rests at a bonfire, restart the event (immediately disabling AI until the player is close enough again).
-<code>+<code JavaScript>
 Event(13506000, Restart, function() { //restart event on bonfire rest Event(13506000, Restart, function() { //restart event on bonfire rest
  
Line 248: Line 249:
 If special effect 1 is lost at any point, special effect 2 is removed. If special effect 1 is lost at any point, special effect 2 is removed.
  
-<code>+<code JavaScript>
 Event(51321060, Default, function(X0_4,X4_4) { Event(51321060, Default, function(X0_4,X4_4) {
          
tutorial/learning-how-to-use-emevd.1740435826.txt.gz · Last modified: by admin