Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Stat increasing level-up bug

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
It is the Riz
Save the pretty people!




Joined: 08 Dec 2004
Posts: 66
Location: Gutter

PostPosted: Mon Apr 04, 2005 8:03 pm    Post subject: Stat increasing level-up bug Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Apr 04, 2005 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
It is the Riz
Save the pretty people!




Joined: 08 Dec 2004
Posts: 66
Location: Gutter

PostPosted: Tue Apr 05, 2005 5:14 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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