Problem with Heal and Potions

International

Moderator: Moderators

Darki
Been there done that!
Been there done that!
Posts: 143
Joined: 25 Oct 2008, 08:14
Noob?: No
Location: Spain, Madrid

Problem with Heal and Potions

#1 Post by Darki »

Hi! I've recently started an Acolyte to use it as an slave for my main one. Since it follows me and tanks me enemies regadless of the remaining SP, it happened many times that it runs out of SP and the monster kills it... So I tried basically to make it use novice potions (I'd change them when I run out) but for some reason, it keeps dying and when it runs out of SP doesn't use the pots.

The code for the Heal and potion blocks are those:
# Heal
useSelf_skill Heal {
lvl 10
hp < 50%
sp > 10%
}

# Novice Red Potion
useSelf_item Novice Potion {
hp < 30%
sp < 10%
}
I don't see anything wrong with them, so I dunno wtf is happening... :/

Anyways, is there a way to specify to use the potion "when is not possible to use Heal" as a command? Maybe that's the problem, I dunno.

Thanks for the help. :)
ImageImageImage
ImageImageImage
ImageImageImage
NezKydn
Noob
Noob
Posts: 1
Joined: 15 May 2011, 08:00
Noob?: No

Re: Problem with Heal and Potions

#2 Post by NezKydn »

Code: Select all

# Novice Red Potion
useSelf_item Novice Potion {
hp < 30%
sp < 10%
}
Your bot only use Novice potion when his sp is lower than 10%? this only trigger when both condition occur.