Nov 7, 2014 at 11:04 AM
Senior Member
"This is the greatest handgun ever made! You have to ask yourself, do I feel lucky?"
Join Date: Aug 2, 2014
Location: inactivity.
Posts: 115
QUICK NOTE:You're reusing flag 0001 for the 'demo end' flag. All flags are global,and you should note their allocation in a file.I thought I set flags that would prevent the Polar Star from being obtained twice. If you would, kindly tell me what you are doing that respawns every NPC. Also, I'm aware the f the fact that the Red Demon won't shoot first, and although I'd like him to, I'd have to do some Assembly Hacking. (Which may be happening soon!)
Further note:earlier versions of this post were wrong,due to cave editor being pretty confusing about what is what
I saved at the lower savepoint(before the Red Demon),then died,realized I could level up my polar star,and while I was at it,noticed the sparkles. The bug's root is that the #300 script won't start.(EDIT:Forgot to mention:Thanks to your TSC,this won't happen unless you save at the lower savepoint,and then reload/die,because otherwise the TSC patches over it.)
Don't worry about it-Cave Editor's terminology for a FlagID is confusing at best,and I probably would've done the same with no knowledge.
From what I can see:
Entity ID is the FlagID.Yep,I know,that's incredibly stupid.
So,if you want a entity to appear/disappear depending on flags,the EntityID should be the FlagID controlling it,and the "flags" menu should be set according to the behavior you want.
The Event Number is the script interface-it's the event number that is called,AND it's how scripts refer to this NPC.(Note:I at first thought this was just the call number,and I changed the TSC patch to fix my mistake)
So,to fix the bug:
Turn on the "disappear when flagid set" checkbox.
Set entity ID of the sparkle entity to 1.
Change the TSC to the version below to fix the references and remove outdated code.
Also,this is fully save-compatible:Any Cavescape saves from older versions of the demo will work with these new edits.
NOTE:THE FOLLOWING IS A MODIFIED VERSION OF CAVESCAPE CODE,FROM THE SECOND MAP.I GIVE ANY COPYRIGHT I MAY HAVE OVER THE EDITS TO THATPORTALGUY:
Code:
#0201
<CNP0201:0000:0000<SOU0011<FAO0004<TRA0095:0300:0007,0020<END
#0202
<PRI<CNP0202:0000:0000<SOU0011<FAO0004<TRA0097:0300:0018,0014<END
#0300
<CMU0008<FAI0004<MNA<END
#0400
<PRI<MSGSomething sparkles among the rubble...<NOD<CLR<DNP0400<GIT0002<FMU
<CMU0010<MSGGot the Polar Star!<NOD<RMU<AM+0002:0000<FL+0001<END