Khaos
Master
Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11
|
RE: putting cooldown on scrolls
Just plop it on SKILLCLASS 0 or a player event. This way it affects all players.
then you can edit this block or add more blocks to add more times.
Code:
if (<argn1> == s_flamestrike)
serv.newitem i_memory_scroll_cooldown,,<uid>
new.timer = 5
endif
for instance you could do this to add in more timers to other spells from scrolls:
Code:
on=@SpellCast
if (<argo.type> == t_scroll)
if (<restest 1 i_memory_scroll_cooldown>)
src.smsg You cannot use a scroll again til <findlayer.layer_memory.baseid.i_memory_scroll_cooldown.timer> seconds.
return 1
endif
if (<argn1> == s_flamestrike||s_fireball)
serv.newitem i_memory_scroll_cooldown,,<uid>
new.timer = 5
endif
if (<argn1> == s_poison)
serv.newitem i_memory_scroll_cooldown,,<uid>
new.timer = 7
endif
endif
People use player events to control player triggers globally. I just use skillclass 0 and set my GM's to use skillclass # with a higher skillcap/statcap and gm code in triggers.
(This post was last modified: 02-18-2016 08:33 AM by Khaos.)
|
|
02-18-2016 08:32 AM |
|
|