Jump to content

Script Question


schijnn

Recommended Posts

I want to edit the Doomstone scripts to remove the time-of-day requirement. If I simply remove that whole If/Then loop, will it work?

Basically, I want to know if I can convert this:

 

 

ScriptName DoomstoneAetheriusScript

short doOnce
Short Renown

Begin OnActivate

if isActionRef player == 1

if Gamehour < 6 || Gamehour >= 18
Set Renown to GetPCFame + GetPCInfamy
if Renown >= 20
	if doOnce == 0
		MessageBox "The stars in their courses mark the Hero's doom upon Aetherius."
		Player.AddSpell DoomstoneAetherius
		set doOnce to 1
	else
		MessageBox "You've been shown fate's fortunes."
	endif
else
	MessageBox "The Hero's fate is known when the Hero's fame has grown."
endif
else
MessageBox "No stars shine upon the doomstone."
endif

endif

end

 

 

to this:

 

ScriptName DoomstoneAetheriusScript

short doOnce
Short Renown

Begin OnActivate

if isActionRef player == 1

Set Renown to GetPCFame + GetPCInfamy
if Renown >= 20
if doOnce == 0
	MessageBox "The stars in their courses mark the Hero's doom upon Aetherius."
	Player.AddSpell DoomstoneAetherius
	set doOnce to 1
else
	MessageBox "You've been shown fate's fortunes."
endif
else
MessageBox "The Hero's fate is known when the Hero's fame has grown."
endif


endif

end

 

and still have it work normally, minus the time-of-day requirement.

Thanks in advance for any help!

Edited by schijnn
Link to comment
Share on other sites

  • Recently Browsing   0 members

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