a mod

Feb 10, 2007 at 12:38 AM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
am new here but i started a mod
i have a couple questions

okay i want a man to give you a iteam and a door that goes some where if you have the iteam
but for some reason if you talk to the man or the door they do the opposite (according to if which one is first)
thanks :rolleyes:

i will have more questions in the future
 
Feb 10, 2007 at 1:00 AM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
Ragamuffin said:
am new here but i started a mod
i have a couple questions

First off all; Use the search functions :rolleyes:

http://www.cavestory.org/forums/search.php?

If you dont find the answers to your questions then just ask, but the Mod section isnt the right one for this; Use the "Rom Editing/Hacking" for this please next time.

Ragamuffin said:
okay i want a man to give you a iteam and a door that goes some where if you have the iteam

but for some reason if you talk to the man or the door they do the opposite (according to if which one is first)

What do you mean? I didnt understood the question...
 
Feb 10, 2007 at 3:04 AM
Junior Member
"Fresh from the Bakery"
Join Date: Feb 3, 2007
Location:
Posts: 18
I don't like to rant but.... please say ITEM not ITAEM
 
Feb 10, 2007 at 3:30 AM
Starbound sucked sadly
"Life begins and ends with Nu."
Join Date: Jan 7, 2007
Location:
Posts: 2587
Age: 34
maybe its like i robot ,iteam must be a team of robots
 
Feb 10, 2007 at 10:20 AM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
xristosx said:
maybe its like i robot ,iteam must be a team of robots

lol no Iteam is just a error it means Item
 
Feb 11, 2007 at 12:19 AM
Starbound sucked sadly
"Life begins and ends with Nu."
Join Date: Jan 7, 2007
Location:
Posts: 2587
Age: 34
ShInInG PhAnToM said:
lol no Iteam is just a error it means Item
i was being silly :rolleyes:
 
Feb 11, 2007 at 9:29 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
what iam saying is that i want that man to give you an item and if you have the item the door goes some where else
but in script the door is first then the man teleports you to the place the door goes
but if the the item in the script is first then the door and the man gives you the item :p
 
Feb 11, 2007 at 10:06 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
Ragamuffin said:
what iam saying is that i want that man to give you an item and if you have the item the door goes some where else
but in script the door is first then the man teleports you to the place the door goes
but if the the item in the script is first then the door and the man gives you the item :p

Youre confusing me a little sorry... :p
Try to work with flags; <FL+ <FL- and <FLJ
 
Feb 11, 2007 at 10:55 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
:p :p :D
ooooo i think i get it now
 
Feb 12, 2007 at 2:18 AM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
no i don't :p
what is wrong with this


#0090
<MNA<CMU0002<FAI0000<END
#0091
<MNA<CMU0002<FAI0001<END
#0092
<MNA<CMU0002<FAI0002<END
#0093
<MNA<CMU0002<FAI0003<END
#0094
<MNA<CMU0002<FAI0004<END

#0370
<KEY<FAO0004<TRA0011:0094:0009:0010<END
#0371
<KEY<FAO0004<TRA0095:0094:0009:0010<END

#0250
<KEY<MYB0000<MSGOh, hey.<NOD<CLRI found this weird thing fishing<NOD
Want to have it?<YNJ0411<CLR
<MSGOKay,<NOD<GIT1002<IT+0002
Got the
=Map System=!
<WAI0160<NOD<FL+0567<END
#0411
<KEY<MSGWell okay<NOD<END
#0251
<KEY<MSGI hope it still works<NOD<END
 
Feb 12, 2007 at 6:21 AM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
Use <FLJ lol
 
Feb 12, 2007 at 7:58 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
i'll try :p
 
Feb 12, 2007 at 9:05 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
can you show me
with this as an example
Ragamuffin said:
#0090
<MNA<CMU0002<FAI0000<END
#0091
<MNA<CMU0002<FAI0001<END
#0092
<MNA<CMU0002<FAI0002<END
#0093
<MNA<CMU0002<FAI0003<END
#0094
<MNA<CMU0002<FAI0004<END

#0370
<KEY<FAO0004<TRA0011:0094:0009:0010<END
#0371
<KEY<FAO0004<TRA0095:0094:0009:0010<END

#0250
<KEY<MYB0000<MSGOh, hey.<NOD<CLRI found this weird thing fishing<NOD
Want to have it?<YNJ0411<CLR
<MSGOKay,<NOD<GIT1002<IT+0002
Got the
=Map System=!
<WAI0160<NOD<FL+0567<END
#0411
<KEY<MSGWell okay<NOD<END
#0251
<KEY<MSGI hope it still works<NOD<END
please :p
 
Feb 12, 2007 at 9:48 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
Ragamuffin said:
can you show me
with this as an example

please :p

I dont know here you want to lead your events :/

0411? 0251?
 
Feb 12, 2007 at 9:55 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
here is the guy

Event-250
flag-6000
flagID-567

put this on top of him so it says 2x
Event-251
flag-2800
flagID-567

the first door
Event-370
flag-6000
flagID-567

put this on top
Event-371
flag-2800
flagID-567
 
Feb 12, 2007 at 10:08 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
FLJ uhh its just:

Putting it in here:

#0250
<FLJ0567:0251<KEY<MYB0000<MSGOh, hey.<NOD<CLRI found this weird thing fishing<NOD
Want to have it?<YNJ0411<CLR.......

Would cause that its checking if flag 567 is on, if its on it would be jumping to 251. Hope this helps .__.

#0251
<KEY<MSGI hope it still works<NOD<END
 
Feb 12, 2007 at 10:10 PM
Been here way too long...
"What're YOU lookin' at?"
Join Date: Jan 21, 2007
Location:
Posts: 1111
Ok, events must go IN ORDER. Your events go in a random order, and so the game has trouble finding the event you might be calling.

<Game> ok... I'm looking for event 200... well, event 94 is here... and there's event 300. Nope, no event 200.

^ This is basically how the game searches. It goes from the top to an event number greater than or equal to the one it's looking for.

And to set up something to not run again, use <FL+xxxx (any number from 0001 to 9999) after the stuff you want to run once, then use <FLJxxxx before the same stuff.

If your wondering what "<FLx" is, it's "call FLag [+/-/Jump]".

Think of a flag like a switch on the wall. If you turn it on (assuming the light works), the light bulb turns on. If you turn off, the light bulb turns off. If you try to turn it off when it's off, or on when it's on, nothing takes place.

Now, the FLag Jump is like "If the light bulb is ON, I can see. If not, I can't".

So, lets put this is terms of Cave story flag events.

===

#0400
<KEY<MSG-Turned the light on.-<NOD<FL+0001<END
#0401
<KEY<MSG-Turned the light off.-<NOD<FL-0001<END
#0402
<KEY<FLJ0001:0403
<MSG"I can't see."<NOD<END
#0403
<MSG"I can see."<NOD<END

===

So, here's a fixed version of the script chunk.

===

#0250
<KEY<FLJ0567:0251<MYB0000<MSGOh, hey.<NOD<CLRI found this weird thing fishing<NOD
Want to have it?<YNJ0411<CLR
<MSGOKay,<NOD<GIT1002<IT+0002
Got the =Item=!
<WAI0160<NOD<RMU<FL+0567<END
#0251
<MSGI hope it still works<NOD<END

===
(You might also want to add in the music jingle, <CMU0010, before the Item message.)

So, here's a fixed version of your script: (comments added aswell)
(Copy and paste the below script into your script window)
===

#0090
<MNA<CMU0002<FAI0000<END
#0091
<MNA<CMU0002<FAI0001<END
#0092
<MNA<CMU0002<FAI0002<END
#0093
<MNA<CMU0002<FAI0003<END
#0094
<MNA<CMU0002<FAI0004<END

*FOR "EASY" PURPOSES, KEEP ALL TELEPORTS IN THE 100's
#0100
<KEY<FAO0004<TRA0011:0094:0009:0010<END
#0101
<KEY<FAO0004<TRA0095:0094:0009:0010<END

*ADDED THE MUSIC, AS WELL AS A TEXT CLEAR (<CLR)
#0250
<KEY<FLJ0567:0251<MYB0000<MSGOh, hey.<NOD<CLRI found this weird thing fishing<NOD
Want to have it?<YNJ0252<CLR
<MSGOKay...<NOD<CLR<GIT1002
<CMU0010Got the =Item=!
<WAI0160<NOD<IT+0002<FL+0567<END
#0251
<MSGI hope it still works<NOD<END

*TRY TO KEEP EVENT'S THAT WILL LEAD TO ONE ANOTHER IN THE SAME NUMBER RANGE
#0252
<KEY<MSGWell okay<NOD<END

===

Well, hope you learned a bit about flagging...
 
Feb 12, 2007 at 10:31 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 32
Haha youre super even Runelancer cant explain that better :p
 
Feb 12, 2007 at 10:33 PM
Been here way too long...
"What're YOU lookin' at?"
Join Date: Jan 21, 2007
Location:
Posts: 1111
*Takes a bow* :p
 
Feb 12, 2007 at 11:17 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Jan 30, 2007
Location: on my computer sherlock
Posts: 58
Age: 90
yeah :p
thanks alot :D
 
Top