[FIXED] Magicka wells don't provide blessing

Report any errors in the SHotN public files here
Post Reply
User avatar
Rakanishu
Lead Dev
Posts: 886
Joined: Thu Sep 15, 2016 9:16 pm

[FIXED] Magicka wells don't provide blessing

Post by Rakanishu »

EDIT: The fix + option #2 have been added to the latest InDev version of Sky_Main.

The magicka wells (Sky_iRe_DH_scampmesa07_mwell) currently let you know if you don't have enough gold for a donation, but they don't do anything if you do have the required amount.

Suggested fixes:
- The spell "Sky_iRe_DH_scampmesa07_bless" has to be changed from Self to Touch.
- One of the new scripts below:

Script Option #1: Keep the donation requirement

Code: Select all

begin Sky_iRe_DH_scampmesa07_shrine

short button
short State

if ( MenuMode )
	return
endif

if ( OnActivate )
	if ( Player->GetItemCount Gold_001 < 35 )
		MessageBox "You do not have enough gold to make a donation." "OK"
		return
	elseif ( Player->GetItemCount Gold_001 >= 35 )
		MessageBox "Would you like to make a donation of 35 and receive a blessing?" "Yes" "No"
		set State to 10
	endif
endif

if ( State == 10 )
	set button to GetButtonPressed
	if ( button == -1 )
		return
	endif
	if ( button == 0 )
		Cast "Sky_iRe_DH_scampmesa07_bless" Player
		Player->RemoveItem Gold_001 35
	endif
	set State to 0
endif

end
Script Option #2: No donation requirement, but limit the well to being used only once a day

Code: Select all

begin Sky_iRe_DH_scampmesa07_shrine

short button
short State
short currentDay

if ( MenuMode )
	return
endif

if ( OnActivate )
	if ( currentDay == Day )
		MessageBox "The well needs to replenish before it can be used again."
		return
	elseif ( currentDay != Day )
		MessageBox "Would you like to tap into the well?" "Yes" "No"
		set State to 10
	endif
endif

if ( State == 10 )
	set button to GetButtonPressed
	if ( button == -1 )
		return
	endif
	if ( button == 0 )
		Cast "Sky_iRe_DH_scampmesa07_bless" Player
		set currentDay to Day
		set State to 0
	endif
endif

end

Post Reply

Return to “SHotN Playtesting & Error Reporting”