0 Members and 1 Guest are viewing this topic.
Script 7 OPEN{Delay(10800*2);ReplaceTextures("LIGHTMOU","CRASSKY");ReplaceTextures("BLIZBLU2", "MRXSTARS");SetMusic("WTDW4MUS", 0);Delay(10800*2);if (CheckActorFloorTexture (6, "FROFLR4"));ReplaceTextures("CRASSKY","LIGHSMOU");ReplaceTextures("MRXSTARS","LIGHCSKY", NOT_MIDDLE);if(CheckActorFloorTexture (6, "LIGHGRA2"));ReplaceTextures("CRASSKY","LIGHTMOU");ReplaceTextures("MRXSTARS","BLIZBLU2",NOT_MIDDLE);SetMusic("WTDW1MUS", 0); }
Well first off, that script will delay for ten minutes before doing anything. I recommend changing that line to say Delay(10); in the mean time.Post about the results after you've tried that.
That's...still ten minutes. You're seriously telling me you're waiting a full ten minutes to test this?That's absurd.If you want to make sure a mechanic works, you don't want long delays like that, it just wastes time.The script you have looks fine, but that doesn't necessarily mean it does what you want because ReplaceTextures applies to all instances of the texture in the map.Make sure you're using ReplaceTextures for the area where you want the sky to show up, remove the delay and tell me if it works.
if (CheckActorFloorTexture (6, "FROFLR4"));ReplaceTextures("CRASSKY","LIGHSMOU");ReplaceTextures("MRXSTARS","LIGHCSKY", NOT_MIDDLE);
if(CheckActorFloorTexture (6, "LIGHGRA2"));ReplaceTextures("CRASSKY","LIGHTMOU");ReplaceTextures("MRXSTARS","BLIZBLU2",NOT_MIDDLE);SetMusic("WTDW1MUS", 0); }
if(CheckActorFloorTexture(6, "FROFLR4")){ReplaceTextures("CRASSKY","LIGHSMOU");ReplaceTextures("MRXSTARS","LIGHCSKY", NOT_MIDDLE);}
Two things.First, make sure there is a map spot or some thing tagged with 6 in the sector you wish to check.Second, your if statements are going to do nothing because you don't specify a block for them to follow.Place your ReplaceTextures lines in braces, like the following:Code: [Select]if(CheckActorFloorTexture(6, "FROFLR4")){ReplaceTextures("CRASSKY","LIGHSMOU");ReplaceTextures("MRXSTARS","LIGHCSKY", NOT_MIDDLE);}Do this for all points when you call "if."
if(weather == "snowy"){ReplaceTextures("CRASSKY","LIGHSMOU");ReplaceTextures("MRXSTARS","LIGHCSKY", NOT_MIDDLE);}else {ReplaceTextures("CRASSKY","LIGHTMOU");ReplaceTextures("MRXSTARS","BLIZBLU2",NOT_MIDDLE);}SetMusic("WTDW1MUS", 0); }
It's used to stop the script that forces bots to move.It's...weird to explain...Basically bots have a script that allows them to "unstick" themselves from ledges if you approach them.