New account registration is temporarily disabled.

RMVX DISPLAY VARIABLE IN ITEM DESCRIPTION

Posts

Pages: 1
Sorry if it has been posted before, but I can't find it. Does anyone have a script for RMVX that displays character shortcuts in Item/Weapon descriptions? Thanks.
Define 'character shortcuts'?
Anybody? It doesn't seem that hard, I just can't figure it out. I simply want to display a variable number in an armor's description.
This'll do variables and actor names. Quick hack, if you need it to display anything else let me know


module RPG
class BaseItem
def description
description = @description
description.gsub!(/\\V\[(+)\]/i) { $game_variables }
description.gsub!(/\\V\[(+)\]/i) { $game_variables }
description.gsub!(/\\N\[(+)\]/i) { $game_actors.name }
description.gsub!(/\\\\/) { "\\" }
return description
end
end
end
Pages: 1