I need help scripting for A ghoul playthrough, I already have the turning into a ghoul script done and have made A new faction for true ghoul playthrough of BoS not particularly liking me, feral ghouls do not attack. Still need to do healed by radiation.
What I need help with is making the game recognize new actor effects, Mainly: That I NEED radiation in order to stay alive, When I lose all rads I start to lose health, and the disease effect with rads to be in reverse.
How Would I even go about doing this? I have tried to make new forms of the rads but they just stack on one another and it has just become A jumbled mess. If someone could help me out that would be freakin amazing. Thanks in advance!
If It Helps, this is what I have so far. Guys I desperately need help. Anyone whom can help will get a special thanks.
scn GhoulifiedScriptshort startupshort addshort doOnceshort radsfloat Timerbegin GameMode if (startup == 1) set rads to (getbuttonpressed * 200 + 200) set startup to 2 elseif (rads == 0) showmessage GhoulifiedStartMSG set startup to 1 endif set add to player.getav radiationrads if (player.getav radiationrads >= rads) set GhoulifiedRads to GhoulifiedRads + add elseif (player.getav radiationrads < rads) set GhoulifiedRads to 0 endif if (GhoulifiedRads >= 100000 && doOnce == 0) set Timer to 10 set doOnce to 1 disablePlayerControls player.addscriptpackage MQ08PlayerFallsDownPackage endif if (Timer <= 5 && doOnce == 1) set doOnce to 2 IMod FadeToBlackISFX endif if (Timer <= 0 && doOnce == 2) set doOnce to 2 player.matchrace GobRef setAlly playerFaction FeralGhoulFaction 1 1 player.addperk Ghoulified showmessage GhoulifiedMSG Player.RemoveScriptPackage enablePlayerControls stopquest GhoulifiedQuest else set Timer to ( Timer - GetSecondsPassed ) endifend
scn GhoulifiedEffectScriptfloat radsfloat healfloat onesecondfloat rrshort warningshort safteybegin ScriptEffectStart set rads to getav radiationrads set warning to 0 set onesecond to 1 setav radresist 0 set rr to (-100 - getav radresist) setav radresist rrendbegin ScriptEffectUpdate if (getav radresist != -100) setav radresist 0 set rr to (-100 - getav radresist) setav radresist rr endif if (getav radiationrads <= 100 && warning == 0) showmessage GhoulNeedRadsWarning set warning to 1 elseif (getav radiationrads > 100 && warning == 1) set warning to 0 endif set onesecond to (onesecond - ScriptEffectElapsedSeconds) if (onesecond <= 0) restoreav radiationrads 0.75 set onesecond to 1 endif set heal to ((getav radiationrads - rads)/5) if (heal > 0) restoreav health heal endif if (getav RadiationRads > 1001) forceav RadiationRads 1001 elseif (getav RadiationRads > -1 && getav RadiationRads <= 0) if (rads > 0.75) set saftey to 1 forceav RadiationRads -1 endif if (saftey == 1 && getav RadiationRads > -1) forceav RadiationRads 200 set saftey to 0 elseif (saftey == 0) kill endif elseif (getav RadiationRads < -1) forceav RadiationRads -1 endif set rads to getav radiationradsend