• Please stop embedding files/images from Discord. Discord has anti-hotlinking logic in place that breaks links to Discord hosted files and images when linked to from anywhere outside of Discord. There are a multitude of file/image hosting sites you can use instead.

    (more info here)

My mod keeps running some random event.

Mar 1, 2025 at 7:07 PM
Junior Member
"Wahoo! Upgrade!"
Join Date: May 18, 2024
Location: First Cave
Posts: 46
Pronouns: He/him
So I was working on a mod of mine, and I started playing it. As I got to one of the stages, the game didn't run the script it was supposed too. So, I did the most logical thing I could think of... Use the <EVE command and place it at the start of every single event in the stage, and even THEN it still ran some random event.(For more context the event I'm trying to make the game run, it animates some NPCs. The event the game runs doesn't do that.) So I continued playing, and when I got to the first part of the stage that uses a <TRA command, the game crashed. Is there a way I can fix this?
 
Mar 1, 2025 at 7:38 PM
Serri Online
Moo~
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location:
Posts: 2894
Age: 30
Pronouns: She/Her
So I was working on a mod of mine, and I started playing it. As I got to one of the stages, the game didn't run the script it was supposed too. So, I did the most logical thing I could think of... Use the <EVE command and place it at the start of every single event in the stage, and even THEN it still ran some random event.(For more context the event I'm trying to make the game run, it animates some NPCs. The event the game runs doesn't do that.) So I continued playing, and when I got to the first part of the stage that uses a <TRA command, the game crashed. Is there a way I can fix this?
So, important questions to ask:
  • How does the <TRA command look?
  • What event does <EVE jump to?
  • Are the event numbers in four-digit format? For example: #0400 and #400 are two entirely different events, and this is a common mistake that new modders tend to make.
  • Is the event you're trying to load even in the script for the map you're being sent to?
 
Mar 1, 2025 at 9:10 PM
Sincerity will always triumph over irony.
Modding Community Discord Admin
"What're YOU lookin' at?"
Join Date: Apr 23, 2013
Location: In a cave above the surface.
Posts: 1082
Age: 26
Pronouns: He/Him
In addition to Serri's questions, Also make sure your event numbers are in ascending order.
 
Mar 2, 2025 at 2:18 AM
Junior Member
"Wahoo! Upgrade!"
Join Date: May 18, 2024
Location: First Cave
Posts: 46
Pronouns: He/him
Code:
#0090
<MNA<CMU0008<FAI0000<END

#0091
<MNA<CMU0008<FAI0001<END

#0092
<MNA<CMU0008<FAI0002<END

#0093
<MNA<CMU0008<FAI0003<END

#0094
<ML+000#<ML+000#<ML+000-<FL+0050<MNA<CMU0008<FAI0004<END

#0100
<KEY<SKJ0005:0105<SK+0005<SMC<MS2...<WAI0050You need to go back.<NOD<CLRThe Guilt.<NOD<CLRThe Nightmares.<NOD<CLRIt's too much to bear.<NOD<CLRGo Back.<NOD<CLO<FAI0004<MNA<CMU0008<END
#0104
<KEY<MS3It's Kazuma.<NOD<CLRHe's having one of his
nightmares again.<NOD<END

#0105
#0208
<KEY<FAO0000<TRA0005:0092:0006:0006<END
#0330
<KEY<FAO0001<TRA0007:0090:0009:0003<END

#0500

#0530
<KEY<SKJ0005:0094<HMC<ML+000#<ML+000#<ML+000-<SK+0010<MYD0000<FAI0004<WAI0050<MNP0500:0036:0005:0000<WAI0025<FLA<CNP0500:0146:0000<SOU0101<WAI0020<CNP0105:0150:0000<ANP0105:0011:0000<WAI0150<ANP0105:0000:0000<SMC<DNP0105<MSG...<NODYou feel electricity coursing
through you.<NOD<CLO<MNA<CMU0008<FL+0050<END

So, the script is supposed to run event 530(When you first load in it.) but it doesn't, and the stage before it has this. <TRA0003:0530:0036:0005 As part of the script which makes it go to this map.
 
Last edited:
Mar 2, 2025 at 2:36 AM
Serri Online
Moo~
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location:
Posts: 2894
Age: 30
Pronouns: She/Her
Besides <SKJ0005:0094 and <SK+0010 not aligning with each other, I see the problem now. So, Negative Args for TSC, they're kinda funny. They can read any symbol prior to 0 in the character map as a number, except for #.

The mod's trying to all of a sudden read Event #<ML+, which if you do the math...

-5 + 290 + 2800 + 12000 = 15085

...is Event 15,085.

Really not sure why you're doing three separate <ML+'s for -13, -13, and -3. If you really wanna subtract 29 HP from your healthbar, you can really just do <ML+00-1.
 
Mar 2, 2025 at 4:09 AM
Serri Online
Moo~
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location:
Posts: 2894
Age: 30
Pronouns: She/Her
...I don't know what a negative argument is.
It's pretty much this that the help guide in BL covers.
u9pcjx.png


A good method to use as reference is through looking at Character Map:
gx2vxw.png

The best range to use for out of bounds/negative TSC args is from ! (-15) to ~ (78). You can even use (spacebar) for -16. And since almost every TSC command (vanilla or custom) asks for a four-digit value, the lowest and highest you can go are (spacebar)(spacebar)(spacebar)(spacebar) and ~~~~. Also only reason why I'm using (spacebar) for " " is because there is another " " in character map, or value 79, except there isn't really a means to type it in unless you go Alt+0160 on your keyboard.
 
Back
Top