Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

I Need Item Scripting Help

9 years ago

So, I have it so that the player can cast fireballs, but they need a certain amount of MANA, to do so. There are also different levels, there is Magic Level: 0, 1, 2, 3. The higher the level you are, the less MANA you use when casting spells. First is that even possible to do? If it is this is what I have for scripting so far, the problem is the player can only have that amount of MANA to cast the spell. How to I make it <20

IF %MAGIC = 0 THEN
%MANA := 20 ELSE 
$DEST := @NONE
IF %MAGIC = 1 THEN
%MANA := 15 ELSE 
$DEST := @NONE
IF %MAGIC = 2 THEN
%MANA := 10 ELSE 
$DEST := @NONE
IF %MAGIC = 3 THEN
%MANA := 5 ELSE 
$DEST := @NONE




 

I Need Item Scripting Help

9 years ago

Never mind I figured it out.