I'm working on something on the mud I play on, it's basically something to ID items, long story short, I basically want it so if the required field is empty it changes the value to N/A (since it's not applicable) or 0, I'll post a short example
In the alias I have it as:
This particular item is a weapon type (hence that check). Since it doesn't meet certain values (ie, this particular item has no hitroll), I would like to change the @ItemHit variable to N/A or 0 then it shows up as such when I call it. I've tried it with ifchecks
It will change the variable to N/A, but when I call the alias it leaves it blank (like the variable is empty). Is there something obvious I'm missing to fix this?
Can affect you as:
Affects: DAMROLL By 90
Affects: STR By 1
Affects: INT By 5
Affects: WIS By 4
In the alias I have it as:
if GetVariable("ItemType") == "WEAPON" then
Send ("say Object: @itemname, Item type: @itemtype, Price: @itemprice, Damage Dice: @ItemDDice, Item is: @Itematts, Damage Type: @ItemTypeDam, Affects DAMROLL By @Itemdam, Affects HITROLL By @Itemhit, Affects STR By @Itemstr, Affects WIS By @Itemwis, Affects INT by @Itemint, Affects SPI by @Itemspi")
end
This particular item is a weapon type (hence that check). Since it doesn't meet certain values (ie, this particular item has no hitroll), I would like to change the @ItemHit variable to N/A or 0 then it shows up as such when I call it. I've tried it with ifchecks
if GetVariable("itemhit") == "" then
SetVariable("itemhit", "N/A")
end
It will change the variable to N/A, but when I call the alias it leaves it blank (like the variable is empty). Is there something obvious I'm missing to fix this?