Difference between revisions of "User talk:Rasikko"
m
no edit summary
imported>Rasikko |
imported>Rasikko m |
||
Line 1: | Line 1: | ||
== Time Functions == | |||
Self explanatory. They will all require GetFractionOfDay and assume that you will use the globalvariable GameDaysPassed. | |||
<source lang=papyrus> | |||
Float Fuction GetFractionOfDay(Float daysPassed) | |||
; Returns the hours passed for the day as a fraction. | |||
if daysPassed < 1.0 | |||
return daysPassed | |||
endif | |||
return dayPassed - daysPassed as int | |||
EndFunction | |||
</source> | |||
<br> | |||
<source lang=papyrus> | |||
Float Function GetHoursPassed(Float daysPassed) | |||
; Converts the days passed to the hours passed for the day. | |||
return GetFractionOfDay(daysPassed) * 24.0 | |||
EndFunction | |||
</source> | |||
<br> | |||
<source lang=papyrus> | |||
Float Function GetMinutesPassed(Float daysPassed) | |||
; Converts the days passed to minutes passed for the day. | |||
return GetFractionOfDay(daysPassed) * 24.0 * 60.0 | |||
EndFunction | |||
</source> | |||
<br> | |||
<source lang=papyrus> | |||
Float Function GetSecondsPassed(Float daysPassed) | |||
; Converts the days passed to seconds passed for the day. | |||
return GetFractionOfDay(daysPassed) * 24.0 * 60.0 * 3600.0 | |||
EndFunction | |||
</source> | |||
== Enchanted Item Gold Value Mystery == | == Enchanted Item Gold Value Mystery == | ||
I'm trying to solve the mystery of calculating the gold value for player enchanted items. This was figured out for weapons, but that formula doesn't work for non weapons. My findings so far..:<br> | I'm trying to solve the mystery of calculating the gold value for player enchanted items. This was figured out for weapons, but that formula doesn't work for non weapons. My findings so far..:<br> |