User talk:Zaldir

There are no discussions on this page.

I am writing a script which will grant the PC money based on their level every week. The money is supposed to be stashed in a chest.

Now, this is the current script, but it doesn't seem to add anything to the chest:

begin GameMode

if (GetStageDone GoldHorseRanks, 81 == 1) || (GetStageDone GoldHorseRanks, 76 == 1)  ;if the quest is completed, we need to compute weekly profits
  if (oldgameday != gameday) ;compute a week
    set gamedays to gamedays + 1
    set oldgameday to gameday
  endif

  if (gamedays == 7) ;if end of week is reached, flag profit gather time
	Set PlayerLevel to Player.Getlevel
	set profittime to profittime + 1
	Message "It's Payday!"
	Set ChestGoldCount to (100 * PlayerLevel)
	aaaPMC.AddItem Gold001 ChestGoldCount
	set gamedays to 0
  endif
endif
end
Nothing obviously wrong jumps out at me... If you haven't already done so, you might have better luck posting a thread on the Forums.
Dragoon Wraith TALK 01:12, 11 January 2011 (EST)
Return to the user page of "Zaldir".