Ranokoa Posted August 6, 2010 Share Posted August 6, 2010 Against my better judgment I will unfortunately have to make public a script I'm working on that has a concept I have yet to make public first. (I normally never like to open up my concept ideas until they are finished) I am working on a mod for someone and time is running out. I need to get this boss fight to do a couple things. Firstly, the script is on the Boss itself, P stands for phantom as a reference. When the boss starts fight, it's supposed to disable himself, then enable the phantoms and immediately set their SetActorAlpha to 0 so they are completely transparent. Then a timer is set and counts down, the further it counts down the more visible they become until they are completely opaque. When they die, the boss re-enables and then the player can kill him. The light just stands for a light bulb that changes the room color. The problem is the boss appears to just be disabled already. He is not set to initially disabled, he does not even have a parent, and nothing parents him. There is no logical reason why he is disabled as the only time he is supposed to be is when he begins combat, which would require me to hit him first (later on talk to) but it's like he completely skips a couple ifs and goes right to disabled, without enabling the phantoms. (Copies of himself that are weaker but are named Phantom.) Scriptname EG06R01MageCaptainBossScript ref P1 ref P2 ref P3 ref P4 ref Player ref Self ref Light short DoOnce float timer Begin OnLoad set P1 to EG06R01MP1 set P2 to EG06R01MP2 set P3 to EG06R01MP3 set P4 to EG06R01MP4 set Player to Player set Self to GetSelf set Light to EG06R01MageLightKey Set Timer to Timer - GetSecondsPassed Self.Enable end Begin GameMode if (GetCombatTarget == Player) if DoOnce == 0 Set Timer to 5 p1.enable p2.enable p3.enable p4.enable p1.SetActorAlpha 0 p2.SetActorAlpha 0 p3.SetActorAlpha 0 p4.SetActorAlpha 0 light.disable self.disable DisablePlayerControls If Timer >= 5 elseif Timer == 4.5 p1.SetActorAlpha .2 p2.SetActorAlpha .2 p3.SetActorAlpha .2 p4.SetActorAlpha .2 elseif Timer == 4 p1.SetActorAlpha .4 p2.SetActorAlpha .4 p3.SetActorAlpha .4 p4.SetActorAlpha .4 elseif Timer == 3.5 p1.SetActorAlpha .6 p2.SetActorAlpha .6 p3.SetActorAlpha .6 p4.SetActorAlpha .6 elseif Timer == 3 p1.SetActorAlpha .8 p2.SetActorAlpha .8 p3.SetActorAlpha .8 p4.SetActorAlpha .8 elseif Timer == 2.5 p1.SetActorAlpha 1 p2.SetActorAlpha 1 p3.SetActorAlpha 1 p4.SetActorAlpha 1 elseif Timer <= 0 p1.startcombat player p2.startcombat player p3.startcombat player p4.startcombat player enableplayercontrols elseif (p1.GetDead == 1) && (p2.GetDead == 1) && (p3.GetDead == 1) && (p4.GetDead == 1) p1.disable p2.disable p3.disable p4.disable Self.enable Self.StartCombat Player set DoOnce to 1 return endif endif endif endif endif endif endif endif endif endif endif endif endif end Anyone know what's going on? The only logical reason he isn't there is because of this script. By all other means he should be there. Link to comment Share on other sites More sharing options...
Hickory Posted August 6, 2010 Share Posted August 6, 2010 Your Timer is only set when the player enters the cell -- in GameMode your Timer is always == 5 . Shouldn't your Set Timer counter (also) be in there? Link to comment Share on other sites More sharing options...
Ranokoa Posted August 7, 2010 Author Share Posted August 7, 2010 I blank at times. (Not a censorship). Lately my mind makes obvious stupidness. I'll see how it works out, I just don't see how it still is the cause of the main problem. I'll let you know, thanks. Be well, sleep well, fight well, live long.~Ranokoa Link to comment Share on other sites More sharing options...
Recommended Posts