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

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #1
Custom meditation
Hello, I'm trying to make my meditation so it will instantly increase mana when the skill starts, instead of it gradually increasing. I have a little bit so far, I'm just stumped on how to make it so the higher the meditation skill, the more mana you get.

Here's what I have so far, don't laugh Tongue

Quote:[SKILL 46]
DEFNAME=SKILL_MEDITATION
KEY=Meditation
FLAGS=SKF_SCRIPTED
TITLE=Stoic
DELAY=2.0,1.0
STAT_STR=10
STAT_INT=100
STAT_DEX=10
BONUS_STR=5
BONUS_DEX=90
BONUS_INT=5
BONUS_STATS=20
ADV_RATE=10.0,200.0,800.0

on=@skillgain
skilllock.<argn1>=0

ON=@Fail
SRC.SYSMESSAGE You failed to meditate!

ON=@start
if (<mana> = <int> )||(<mana> > <int> )
sysmessage=You already have full mana!
return 1
endif

IF (<SRC.FINDID.i_med_timer>)
src.sysmessage You must wait before you can meditate!
RETURN 1
ENDIF
SRC.MANA=<SRC.MANA>+<VAR.MEDITATION>
SRC.NEWITEM i_med_timer
SRC.ACT.TIMER 6
SRC.ACT.CONT <SRC.UID>
RETURN 1
ENDIF

[ITEMDEF i_med_timer]
ID=i_worldgem_bit
NAME=Meditation Timer
LAYER=layer_special
TYPE=t_eq_script

ON=@CREATE
ATTR=0c
TIMER=6

ON=@TIMER
REMOVE
RETURN 1
09-24-2013 06:14 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: 3 Guest(s)