Difference between revisions of "Make character disappear"

Jump to navigation Jump to search
1,273 bytes added ,  12:45, 19 April 2006
no edit summary
imported>Kab
imported>Hawkes
Line 95: Line 95:


Sure; I'd like to know.  If it doesn't work, I'll pull this off the solutions category until we know why that is, but this is a simplified version of what I'm doing in my own work, so I don't suspect you'll have any problem.  One caveat I discovered, though.  It may not happen on all video cards, but if you hit saa 0 while the shader effect is active, you'll get a strange flash on the NPC.  So - make sure the settings in your shader object cut off sharply - and be sure that the effect is entirely dead before you hit saa 0 and disable the NPC.  Good Luck.  [[User:JBurgess|JBurgess]] 23:24, 14 April 2006 (EDT)
Sure; I'd like to know.  If it doesn't work, I'll pull this off the solutions category until we know why that is, but this is a simplified version of what I'm doing in my own work, so I don't suspect you'll have any problem.  One caveat I discovered, though.  It may not happen on all video cards, but if you hit saa 0 while the shader effect is active, you'll get a strange flash on the NPC.  So - make sure the settings in your shader object cut off sharply - and be sure that the effect is entirely dead before you hit saa 0 and disable the NPC.  Good Luck.  [[User:JBurgess|JBurgess]] 23:24, 14 April 2006 (EDT)
==...==
I was able to test the script today and it didn't work, not totaly at least. The NCP is disabled at when fadder is at 0, but he isn't fading away even though the GhostEffedt is removed when he dies... I don't get it does my short fariable "dead" must be a flag?? and if it does how do flag works??
<pre>
scn zzReinScript
short dead
short fader
short said
begin OnLoad
saa 0.50
set fader to 0.50
set said to 0
pms GhostEffect
end
begin OnDeath
set dead to 1 ;starts fading
sms GhostEffect ;stops the visual effect that might interfer with the saa
end
begin GameMode
if dead == 1
if fader > 0
set fader to ( fader - 0.05 )
saa fader
if fader <= 0.35 && said == 0
Message " As Fiy Rein's ghost disapears before you, you hear his voice in your head : 'Congratulations, you shall now bear my curse...' ", 7
set said to 1
endif
elseif fader <= 0
set dead to 2 ; go to "reward"
endif
elseif dead == 2
Disable zzFiyRein
;Disable zzreinblade ;In case he droped it
Player.AddItem zzreincoif, 1
Player.AddSpell zzreinsab
ForceWeather Clear ;since Fiy died the storm is over
ReleaseWeatherOverride ;In case the OverrideFlag from the scroll script still takes effect
set dead to 3 ;break condition
endif
end
</pre>


==Another==
==Another==
Line 127: Line 178:
--[[User:Kab|Kab]] 09:12, 16 April 2006 (EDT)
--[[User:Kab|Kab]] 09:12, 16 April 2006 (EDT)


[[Category:Solutions]]
[[Category:Questions]]
Anonymous user

Navigation menu