Code: Select all
teleport.item Fly Wing
teleport.skill Teleport 1
# TODO: we could search for an item: teleport.item_skill.item 4040 # in this case, the Creamy Card inside an equippable item
block teleport {
options {
auto 0
addCommand 1
enabled 1
}
condition skill {
skills {skill}
}
action skill {
useSkill {skill}
}
condition item {
inventory {item}
}
action item {
useItem {item}
}
# configured later with:
# teleport.item_skill {
# {location} leftAccesory
# {item} Clip [creamy] [1]
# {skill} Teleport 1
# }
condition item_skill {
inventory {item}
}
action item_skill {
set {previous_item} equipped {location}
equip {location} {item}
block wait_equip {
condition {
equipped {item}
}
action {
useSkill {skill}
}
}
equip {location} {previous_item}
}
}