 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
It is the Riz Save the pretty people!

Joined: 08 Dec 2004 Posts: 66 Location: Gutter
|
Posted: Mon Apr 04, 2005 8:03 pm Post subject: Stat increasing level-up bug |
|
|
You've probably all heard of this, but:
script,attackup,begin
variable (heroup)
set variable (heroup,pick hero)
variable (currentatt)
set variable (currentatt,(get hero stat(heroup,stat:attack)))
set hero stat(heroup,stat:attack,currentatt+1)
end
This is a script for a power-up item that increases attack by 1 point. However, when you level-up, the increase dissapears.
Would a good way around this be to make a global variable that records how many power-ups you use, then increment the current stat with the global variable during an after-battle script? Or is there an easier way? _________________ - Your neighborhood bum, Itistheriz
I love people who post sarcastic messages except in their own game post. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Apr 04, 2005 11:52 pm Post subject: |
|
|
Use
Code: |
set hero stat(heroup,stat:attack,currentatt+1,current stat)
set hero stat(heroup,stat:attack,currentatt+1,maximum stat)
|
This is no bug. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
It is the Riz Save the pretty people!

Joined: 08 Dec 2004 Posts: 66 Location: Gutter
|
Posted: Tue Apr 05, 2005 5:14 am Post subject: |
|
|
Hmmm....I guess I don't understand this concept, but if that works, then thanks. _________________ - Your neighborhood bum, Itistheriz
I love people who post sarcastic messages except in their own game post. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|