Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom meditation
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Custom meditation
<VAR.MEDITATION>, is that created in another place? You can try to change that line for this one: src.mana=<src.mana>+<src.f_GetManaFromMedit>

and add this function above:

Code:
[Function f_GetManaFromMedit]
return <eval <meditation>/30> //100.0/30 will return 33, here you can adjust how mana you want to restore.

Edit: You may also want to add this check after mana regeneration.
Code:
IF (<mana>><int>)
mana=<int>
endif
So no one ends up with more than your int cap, and btw IDK wich version are you using (here will come mordaunt!) but if you use nightlies you might want to use <maxmana> instead of <int>, wich will be the same by default if you don't make any changes but will also provide you better 'movility' if you plan to make changes related to mana in the future.
(This post was last modified: 09-24-2013 06:32 PM by XuN.)
09-24-2013 06:28 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Custom meditation - Leonidas - 09-24-2013, 06:14 PM
RE: Custom meditation - XuN - 09-24-2013 06:28 PM
RE: Custom meditation - Rattlehead - 09-24-2013, 07:56 PM
RE: Custom meditation - RanXerox - 09-25-2013, 09:00 AM
RE: Custom meditation - Rattlehead - 09-25-2013, 03:44 PM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)