- Feb 4, 2012
- 255
- 5
- 45
I've got all the basics of the script how I want to, but I can't get it to upgrade skill levels.
Each spell is set like this.
Level 4 Upgrade
Level 5 Upgrade
But the spells are not upgrading.
Code:
[@upgrade()]
#IF
#ACT
Mov A1 {BOOK} %ARG(1)
Mov A2 {COST} %ARG(2)
goto @UpgradeSpell1
[@UpgradeSpell1]
#IF
CHECKFAME %A2 {COST}
CHKMAGICLEVEL %A1 {BOOK} 3
#ACT
actcmd CHANGEMAGLVL %A1{BOOK} 4
SETFAME - %A2 {COST}
#SAY
You now have {FCOLOR/1}<$OUTPUT(A1)>{FCOLOR/12} Level 4
#ELSESAY
I'm not working properly yet.\
[@upgrade1()]
#IF
#ACT
Mov A1 {BOOK} %ARG(1)
Mov A2 {COST} %ARG(2)
goto @UpgradeSpell12
[@UpgradeSpell12]
#IF
CHECKFAME %A2 {COST}
CHKMAGICLEVEL %A1 {BOOK} 4
#ACT
actcmd CHANGEMAGLVL %A1{BOOK} 5
SETFAME - %A2 {COST}
#SAY
You now have {FCOLOR/1}<$OUTPUT(A1)>{FCOLOR/12} Level 5
#ELSESAY
I'm not working properly yet.\
Each spell is set like this.
Level 4 Upgrade
Code:
<[ Fire ball ]/@upgrade(Fireball,500)>\
Code:
<[ Fire ball ]/@upgrade1(Fireball,1000)>\
But the spells are not upgrading.