- 3
- Posts
- 14
- Years
- Seen Jul 23, 2010
Sorry for not looking through all 300 pages, but I'm trying to put Aqua Ring into my game. I'm having some difficulties putting it in. I thought it would be easier than Roost. >.> I got that worked out, if anyone needs to know how.
Anyways, what I did works, it's just that it doesn't stop when the user switches out, and it works twice. I've double checked - I didn't put it in twice.
Here's the coding (I also assigned a value for AquaRing in the PBEffects, and a move effect that activates it):
Anyways, what I did works, it's just that it doesn't stop when the user switches out, and it works twice. I've double checked - I didn't put it in twice.
Here's the coding (I also assigned a value for AquaRing in the PBEffects, and a move effect that activates it):
Code:
# Aqua Ring
for i in priority
next if i.hp<=0
if i.effects[PBEffects::AquaRing]
hpgain=(i.totalhp/16).floor
if hpgain=0
hpgain=1
end
i.pbRecoverHP(hpgain)
pbDisplay(_INTL("AQUA RING recovered {1}'s HP a little!",i.pbThis)) if hpgain>0
end
end