Jump to content

Help Scripting A Ghoul Character


ProtoTypeRaavyn

Recommended Posts

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!

Link to comment
Share on other sites

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 GhoulifiedScript

short startup
short add
short doOnce
short rads
float Timer

begin 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 )
	endif
end
Link to comment
Share on other sites

Please use this to verify what your doing (http://www.cipscis.com/fallout/utilities/validator.aspx )

in the bottom window, mouse over the lines of instructions slowly, allow the script engine "There" to see the text and determine if it is Void or not. study the issue first hand.

there are two ways to read or type the script out.

 

I have it in that window and I found Void ref in it.

I found two warnings about GhoulifiedRads not being declared in the script and not set as a global variable.

kitty.

Edited by Purr4me
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...