Other > Suggestions
Skill point BONUS
TKs-KaBoom:
--- Quote from: Haraldx on October 01, 2012, 12:37:31 am ---Script of gaining exp
--- Code: ---gain exp
if exp => required for level up
false - end script
positive - give SP based on INT
end script
if level = 24
false - give SP based on INT
positive - give SP based on INT + 60 SP
message "You are a true veteran, your experience serves you well. Added 60 skill points"
end script
--- End code ---
Sometimes I feel I shouldn't pretend I understand something of scripting or coding...
--- End quote ---
Your right, you shouldn't....
Seriously though, I'm sure this is your attempt at "Pseudocode" but the "code" you provided wouldn't function properly the way you intended it to (it would continually add 60 bonus sp's every time you gained experience at level 24, not exactly the side effect your looking for).
You should nest the second conditional (the "if:then" construct) inside the positive condition of the first conditional, as well as increment the level in there as well.
Gob:
Is not such a bad idea really, but why book? It's better to get them instantly at level 24.
Haraldx:
--- Quote from: TKs-KaBoom on October 01, 2012, 08:47:06 am ---You're right, you shouldn't....
--- End quote ---
Haha, I made up the "script" in a matter of seconds, let's not even get started about the fact that I have never even coded or scripted anything ever. Then there's this thing, that it checks if you gain a level up, gives you SP for Int bonus then checks for level 24 and gives you the INT bonus again. Another possibility would be just adding a another "if" parameter right at the start of the script, to check if the player has already gained level 24 and therefore shouldn't be allowed to gain any more experience. Please, devs, don't script shit like I do. That would make the game enjoyable...
Navigation
[0] Message Index
[*] Previous page
Go to full version