Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Valkyrian.Text.PlayerTag = function(iconId, message, count) {
- var existCount = 0;
- for (var key in Valkyrian.Text.items) {
- if (Valkyrian.Text.items[key].iconId == iconId) {
- existCount = Valkyrian.Text.items[key].count;
- Valkyrian.Text.items[key].destroy(); // Remove the current text as a new version should be added.
- }
- }
- var textId = "player" + Valkyrian.Text.currentId++;
- var x = 65
- var y = 570
- for (var key in Valkyrian.Text.items) {
- var y = y - 25;
- }
- Valkyrian.Text.items[textId] = new Valkyrian_Text(x, y, iconId, message, count + existCount);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement