Страница 1 из 11 123 ... ПоследняяПоследняя
Показано с 1 по 10 из 110

Тема: Помощь c плагинами(JS)

  1. #1
    Создатель Аватар для Рольф
    Информация о пользователе
    Регистрация
    14.04.2008
    Адрес
    Южно- Сахалинск/Пенза
    Сообщений
    10,081
    Записей в дневнике
    2
    Репутация: 108 Добавить или отнять репутацию

    По умолчанию Помощь c плагинами(JS)

    Тема служит для помощь в джава скрипте, а так же самими плагинами.

  2. #2
    Хранитель Аватар для Темный
    Информация о пользователе
    Регистрация
    13.05.2011
    Сообщений
    2,449
    Записей в дневнике
    20
    Репутация: 50 Добавить или отнять репутацию

    По умолчанию

    Не знаю в тему ли или нет но новую тему создавать не хочу.
    Вот два модуля которые помогают анимировать врагов
    примерно так:
    Спойлер Боевка:

    а вот ссылка на сами модули: http://forums.rpgmakerweb.com/
    Я проверял модули работают, правда еще не разобрался с установкой определенного оружия врагу.



  3. #3
    Администратор Аватар для Пётр
    Информация о пользователе
    Регистрация
    24.04.2014
    Адрес
    Краснодар
    Сообщений
    3,940
    Записей в дневнике
    6
    Репутация: 132 Добавить или отнять репутацию

    По умолчанию

    Цитата Сообщение от Темный Посмотреть сообщение
    Не знаю в тему ли или нет но новую тему создавать не хочу.
    Вот два модуля которые помогают анимировать врагов
    примерно так:
    Спойлер Боевка:

    а вот ссылка на сами модули: http://forums.rpgmakerweb.com/
    Я проверял модули работают, правда еще не разобрался с установкой определенного оружия врагу.
    Сделал бы отдельную тему в плагинах.
    А то здесь потеряется со временем. Вещь то годная весьма.

  4. #4
    Создатель Аватар для Рольф
    Информация о пользователе
    Регистрация
    14.04.2008
    Адрес
    Южно- Сахалинск/Пенза
    Сообщений
    10,081
    Записей в дневнике
    2
    Репутация: 108 Добавить или отнять репутацию

    По умолчанию

    Баг с разделом плагины был, теперь в порядке. Лучше туда выкладывай.

  5. #5
    Хранитель Аватар для Темный
    Информация о пользователе
    Регистрация
    13.05.2011
    Сообщений
    2,449
    Записей в дневнике
    20
    Репутация: 50 Добавить или отнять репутацию

    По умолчанию

    Вот какая проблемка возникла. Нашел модуль для показа Фейсов в бою.
    Но он рассчитан только на разрешение 1280 x 720 full screen.

    А так этот модуль выглядит на разрешение 816 х 624
    [IMG][/IMG]
    Вся проблема в том что надо рисовать бары хп,мр,тп и иконки состояний поверх фейсов героев. но модуль рисует их под ними.
    Хотя текст выводит правильно. Имя и цифры показателей.

    вот код:
    Спойлер тык:
    Код:
    //=============================================================================
    
    // Simple Battle Status Faces
    
    // by lolaccount
    
    // Last Updated: 2015.11.9
    
    //=============================================================================
    
    
    
    /*:
    
     * @plugindesc v1.01 Draws the actor's face in battle status, with the  
    
     * goal of not blocking the actor's faces too much.
    
     * <lolaccount Simple Battle Status Faces>
    
     *
    
     * @author lolaccount
    
     *
    
     * @param ---Compatibility---
    
     * @default
    
     *
    
     * @param Show ATB Bar
    
     * @desc Show ATB bar for ATB plugins?
    
     * Yes - true        No - false        Default: true    
    
     * @default true
    
     *
    
     * @param ATB Bar Position
    
     * @desc Options: bottomleft, bottomright Default: bottomleft
    
     * @default bottomleft
    
     *
    
     * @help This plugin does not provide plugin commands.
    
     * You can hide the tp bar for an actor by using <HideBattleStatusTp: 1> and/or
    
     * hide the mp bar for an actor by using <HideBattleStatusMp: 1>
    
     * ============================================================================
    
     * Patch Notes
    
     * ============================================================================
    
     * v1.01 - Added some support for Ellye's Simple ATB. The bar needs improving
    
     * for the default resolution, but looks good fullscreen. Will improve
    
     * default resolution ATB bar in an update.
    
     * Added some support for default resolution and 3 party members.
    
     * Still won't look very good with more than 3 party members with default
    
     * resolution.
    
     * ============================================================================
    
     * How To Use
    
     * ============================================================================
    
     * Plug and play.
    
     * ============================================================================
    
     * Terms Of Use
    
     * ============================================================================
    
     * Free to use and modify for commercial and noncommercial games, with or
    
     * without credit, as long as you do not claim the script as your own.
    
     * Credit is appreciated though.
    
     */
    
    var Imported = Imported || {};
    
     
    
     // Get parameters
    
    (function() {
    
        var parameters = $plugins.filter(function(p) {
    
            return p.description.contains('<lolaccount Simple Battle Status Faces>');
    
        })[0].parameters; //Thanks to Iavra
    
      // whether to show ATB bar if that is the battle system
    
      var showATBbar = String(parameters['Show ATB Bar'] || 'true');
    
      // where to draw atb bar
    
      var atbBarPos = String(parameters['ATB Bar Position'] || 'bottomleft');
    
      showATBbar = eval(showATBbar);
    
     
    
    // override the difficult itemRect for a window
    
    Window_BattleStatus.prototype.itemRect = function(index) {
    
        var rect = new Rectangle();
    
        var maxCols = this.maxCols();
    
        rect.width = this.itemWidth();
    
        rect.height = this.itemHeight();
    
        rect.x = rect.width * index;
    
        rect.y = 0;
    
        return rect;
    
    };
    
    
    
    Window_BattleStatus.prototype.itemWidth = function() {
    
    // decide the width of each "item," or the space each actor occupies in battle status, by the size of the party
    
        return Math.floor(((this.width - this.padding * 2 +
    
                           this.spacing()) / 1 - this.spacing())/$gameParty.battleMembers().length);
    
    };
    
    
    
    Window_BattleStatus.prototype.maxCols = function() {
    
    // the maximum amount of columns is the number of members in the party
    
        return $gameParty.battleMembers().length;
    
    };
    
    
    
    Window_BattleStatus.prototype.itemHeight = function() {
    
    // the height of each item is the height of the battle status window minus from padding so it looks nicer
    
        return Math.floor((this.height - this.padding * 2 +
    
                           this.spacing()) / 1 - this.spacing());
    
    };
    
    
    
    
    
    Window_BattleStatus.prototype.drawItem = function(index) {
    
        // we can get the actor from the index passed to this function
    
        var actor = $gameParty.battleMembers()[index];            
    
        // the rectangle w/dimensions from another method designed for text
    
        var textRect = this.itemRectForText(index);            
    
        // a general rectangle from another method    
    
        var otherRect = this.itemRect(index);            
    
        // variable for deciding where to place state/buff icons, x axis    
    
        var iconPos;    
    
        // variable for deciding iconWidth
    
        var iconWidth;
    
        // variable for deciding where to place tp bar, y axis
    
        // we're setting the default here
    
        var tpBarY = otherRect.y + (this.lineHeight() * 2);    
    
        var gaugeWidth;
    
        var gaugeX;
    
        
    
        // decide gauge width and x
    
        if ((SceneManager._screenWidth <= 816 && $gameParty.battleMembers().length == 3)) {
    
        gaugeWidth = otherRect.width - (Window_Base._faceWidth * .8) - 11;
    
        gaugeX = otherRect.x + (Window_Base._faceWidth * .8) + 4;
    
        }
    
        else {
    
        gaugeWidth = otherRect.width - Window_Base._faceWidth - 11;
    
        gaugeX = otherRect.x + Window_Base._faceWidth + 4;
    
        }
    
        
    
        // draw the actor's face on the bottom most "layer"
    
        this.drawActorFace(actor, otherRect.x, otherRect.y);
    
        
    
    
    
        
    
        // draw Mellye's Simple ATB atb bar if imported
    
        if (Imported.Ellye_ATB == true && showATBbar) {
    
            if (atbBarPos == 'bottomleft') {
    
                this.drawActorATB(actor, otherRect.x + 4, textRect.y + this.lineHeight() * 3, Window_Base._faceWidth - 6);
    
            }
    
            else if (atbBarPos == 'bottomright') {
    
                this.drawActorATB(actor, otherRect.x + Window_Base._faceWidth + 4, textRect.y + this.lineHeight() * 3, otherRect.width - Window_Base._faceWidth - 11);
    
            }
    
        }
    
        
    
        // draw the actor's name
    
        this.drawActorName(actor, textRect.x, textRect.y, 150);
    
    
    
        // draw actor hp bar
    
        this.drawActorHp(actor, gaugeX, otherRect.y + (this.lineHeight() * 0), gaugeWidth);
    
        
    
        // draw the actor's mp if it is not set to be hidden for the actor
    
        if ($dataActors[actor._actorId].meta.HideBattleStatusMp != 1) {
    
            this.drawActorMp(actor, gaugeX, otherRect.y + (this.lineHeight() * 1), gaugeWidth);
    
        }
    
        else {
    
        // if it was set to be hidden, we should adjust the tp bar y position
    
        tpBarY = otherRect.y + (this.lineHeight() * 1);
    
        }
    
    
    
        // if tp is on, draw the actor's tp
    
        if ($dataSystem.optDisplayTp) {
    
            // draw the tp bar if it was not set to be hidden for the actor
    
            if ($dataActors[actor._actorId].meta.HideBattleStatusTp != 1) {
    
                this.drawActorTp(actor, gaugeX, tpBarY, gaugeWidth);
    
            }
    
        }
    
        
    
        if (Imported.Ellye_ATB != true) {
    
    
    
            iconWidth = otherRect.width;
    
            // if there are many icons taking up the actor's space in the status, shove the icons to the right
    
            if ((actor.allIcons().length * Window_Base._iconWidth - 3) > otherRect.width - Window_Base._faceWidth) {
    
                iconPos = otherRect.x + 1 + (otherRect.width - (actor.allIcons().length * Window_Base._iconWidth) - 3);
    
            }
    
            // if there's not too many icons taking up the actor's space in the status, don't shove the icons all the way to the right
    
            else {
    
                iconPos = otherRect.x + Window_Base._faceWidth + 4;
    
            }
    
        }
    
        else if (showATBbar) {
    
            if (atbBarPos == 'bottomleft') {
    
                iconWidth = otherRect.width - Window_Base._faceWidth - 4;
    
                iconPos = otherRect.x + Window_Base._faceWidth + 4;
    
            }
    
            else if (atbBarPos == 'bottomright') {
    
                iconWidth = Window_Base._faceWidth;
    
                iconPos = otherRect.x + 4;
    
            }
    
            // the default - bottom left
    
            else {
    
                iconWidth = Window_Base._faceWidth + - 4;
    
            }
    
        }
    
        
    
        // draw the icons
    
        this.drawActorIcons(actor, iconPos, otherRect.y + (this.lineHeight() * 3), iconWidth);
    
    };
    
    
    
    })();


    Может кто разберется с этой проблемой.



  6. #6

    По умолчанию

    Существует аналог Fiber в JS ?

  7. #7

    По умолчанию

    Цитата Сообщение от Темный Посмотреть сообщение
    Вот какая проблемка возникла. Нашел модуль для показа Фейсов в бою.
    Но он рассчитан только на разрешение 1280 x 720 full screen.

    А так этот модуль выглядит на разрешение 816 х 624
    [IMG][/IMG]
    Вся проблема в том что надо рисовать бары хп,мр,тп и иконки состояний поверх фейсов героев. но модуль рисует их под ними.
    Хотя текст выводит правильно. Имя и цифры показателей.

    вот код:
    Спойлер тык:
    Код:
    //=============================================================================
    
    // Simple Battle Status Faces
    
    // by lolaccount
    
    // Last Updated: 2015.11.9
    
    //=============================================================================
    
    
    
    /*:
    
     * @plugindesc v1.01 Draws the actor's face in battle status, with the  
    
     * goal of not blocking the actor's faces too much.
    
     * <lolaccount Simple Battle Status Faces>
    
     *
    
     * @author lolaccount
    
     *
    
     * @param ---Compatibility---
    
     * @default
    
     *
    
     * @param Show ATB Bar
    
     * @desc Show ATB bar for ATB plugins?
    
     * Yes - true        No - false        Default: true    
    
     * @default true
    
     *
    
     * @param ATB Bar Position
    
     * @desc Options: bottomleft, bottomright Default: bottomleft
    
     * @default bottomleft
    
     *
    
     * @help This plugin does not provide plugin commands.
    
     * You can hide the tp bar for an actor by using <HideBattleStatusTp: 1> and/or
    
     * hide the mp bar for an actor by using <HideBattleStatusMp: 1>
    
     * ============================================================================
    
     * Patch Notes
    
     * ============================================================================
    
     * v1.01 - Added some support for Ellye's Simple ATB. The bar needs improving
    
     * for the default resolution, but looks good fullscreen. Will improve
    
     * default resolution ATB bar in an update.
    
     * Added some support for default resolution and 3 party members.
    
     * Still won't look very good with more than 3 party members with default
    
     * resolution.
    
     * ============================================================================
    
     * How To Use
    
     * ============================================================================
    
     * Plug and play.
    
     * ============================================================================
    
     * Terms Of Use
    
     * ============================================================================
    
     * Free to use and modify for commercial and noncommercial games, with or
    
     * without credit, as long as you do not claim the script as your own.
    
     * Credit is appreciated though.
    
     */
    
    var Imported = Imported || {};
    
     
    
     // Get parameters
    
    (function() {
    
        var parameters = $plugins.filter(function(p) {
    
            return p.description.contains('<lolaccount Simple Battle Status Faces>');
    
        })[0].parameters; //Thanks to Iavra
    
      // whether to show ATB bar if that is the battle system
    
      var showATBbar = String(parameters['Show ATB Bar'] || 'true');
    
      // where to draw atb bar
    
      var atbBarPos = String(parameters['ATB Bar Position'] || 'bottomleft');
    
      showATBbar = eval(showATBbar);
    
     
    
    // override the difficult itemRect for a window
    
    Window_BattleStatus.prototype.itemRect = function(index) {
    
        var rect = new Rectangle();
    
        var maxCols = this.maxCols();
    
        rect.width = this.itemWidth();
    
        rect.height = this.itemHeight();
    
        rect.x = rect.width * index;
    
        rect.y = 0;
    
        return rect;
    
    };
    
    
    
    Window_BattleStatus.prototype.itemWidth = function() {
    
    // decide the width of each "item," or the space each actor occupies in battle status, by the size of the party
    
        return Math.floor(((this.width - this.padding * 2 +
    
                           this.spacing()) / 1 - this.spacing())/$gameParty.battleMembers().length);
    
    };
    
    
    
    Window_BattleStatus.prototype.maxCols = function() {
    
    // the maximum amount of columns is the number of members in the party
    
        return $gameParty.battleMembers().length;
    
    };
    
    
    
    Window_BattleStatus.prototype.itemHeight = function() {
    
    // the height of each item is the height of the battle status window minus from padding so it looks nicer
    
        return Math.floor((this.height - this.padding * 2 +
    
                           this.spacing()) / 1 - this.spacing());
    
    };
    
    
    
    
    
    Window_BattleStatus.prototype.drawItem = function(index) {
    
        // we can get the actor from the index passed to this function
    
        var actor = $gameParty.battleMembers()[index];            
    
        // the rectangle w/dimensions from another method designed for text
    
        var textRect = this.itemRectForText(index);            
    
        // a general rectangle from another method    
    
        var otherRect = this.itemRect(index);            
    
        // variable for deciding where to place state/buff icons, x axis    
    
        var iconPos;    
    
        // variable for deciding iconWidth
    
        var iconWidth;
    
        // variable for deciding where to place tp bar, y axis
    
        // we're setting the default here
    
        var tpBarY = otherRect.y + (this.lineHeight() * 2);    
    
        var gaugeWidth;
    
        var gaugeX;
    
        
    
        // decide gauge width and x
    
        if ((SceneManager._screenWidth <= 816 && $gameParty.battleMembers().length == 3)) {
    
        gaugeWidth = otherRect.width - (Window_Base._faceWidth * .8) - 11;
    
        gaugeX = otherRect.x + (Window_Base._faceWidth * .8) + 4;
    
        }
    
        else {
    
        gaugeWidth = otherRect.width - Window_Base._faceWidth - 11;
    
        gaugeX = otherRect.x + Window_Base._faceWidth + 4;
    
        }
    
        
    
        // draw the actor's face on the bottom most "layer"
    
        this.drawActorFace(actor, otherRect.x, otherRect.y);
    
        
    
    
    
        
    
        // draw Mellye's Simple ATB atb bar if imported
    
        if (Imported.Ellye_ATB == true && showATBbar) {
    
            if (atbBarPos == 'bottomleft') {
    
                this.drawActorATB(actor, otherRect.x + 4, textRect.y + this.lineHeight() * 3, Window_Base._faceWidth - 6);
    
            }
    
            else if (atbBarPos == 'bottomright') {
    
                this.drawActorATB(actor, otherRect.x + Window_Base._faceWidth + 4, textRect.y + this.lineHeight() * 3, otherRect.width - Window_Base._faceWidth - 11);
    
            }
    
        }
    
        
    
        // draw the actor's name
    
        this.drawActorName(actor, textRect.x, textRect.y, 150);
    
    
    
        // draw actor hp bar
    
        this.drawActorHp(actor, gaugeX, otherRect.y + (this.lineHeight() * 0), gaugeWidth);
    
        
    
        // draw the actor's mp if it is not set to be hidden for the actor
    
        if ($dataActors[actor._actorId].meta.HideBattleStatusMp != 1) {
    
            this.drawActorMp(actor, gaugeX, otherRect.y + (this.lineHeight() * 1), gaugeWidth);
    
        }
    
        else {
    
        // if it was set to be hidden, we should adjust the tp bar y position
    
        tpBarY = otherRect.y + (this.lineHeight() * 1);
    
        }
    
    
    
        // if tp is on, draw the actor's tp
    
        if ($dataSystem.optDisplayTp) {
    
            // draw the tp bar if it was not set to be hidden for the actor
    
            if ($dataActors[actor._actorId].meta.HideBattleStatusTp != 1) {
    
                this.drawActorTp(actor, gaugeX, tpBarY, gaugeWidth);
    
            }
    
        }
    
        
    
        if (Imported.Ellye_ATB != true) {
    
    
    
            iconWidth = otherRect.width;
    
            // if there are many icons taking up the actor's space in the status, shove the icons to the right
    
            if ((actor.allIcons().length * Window_Base._iconWidth - 3) > otherRect.width - Window_Base._faceWidth) {
    
                iconPos = otherRect.x + 1 + (otherRect.width - (actor.allIcons().length * Window_Base._iconWidth) - 3);
    
            }
    
            // if there's not too many icons taking up the actor's space in the status, don't shove the icons all the way to the right
    
            else {
    
                iconPos = otherRect.x + Window_Base._faceWidth + 4;
    
            }
    
        }
    
        else if (showATBbar) {
    
            if (atbBarPos == 'bottomleft') {
    
                iconWidth = otherRect.width - Window_Base._faceWidth - 4;
    
                iconPos = otherRect.x + Window_Base._faceWidth + 4;
    
            }
    
            else if (atbBarPos == 'bottomright') {
    
                iconWidth = Window_Base._faceWidth;
    
                iconPos = otherRect.x + 4;
    
            }
    
            // the default - bottom left
    
            else {
    
                iconWidth = Window_Base._faceWidth + - 4;
    
            }
    
        }
    
        
    
        // draw the icons
    
        this.drawActorIcons(actor, iconPos, otherRect.y + (this.lineHeight() * 3), iconWidth);
    
    };
    
    
    
    })();


    Может кто разберется с этой проблемой.
    Отредактируй так:

    if ((SceneManager._screenWidth <= 816 && $gameParty.battleMembers().length == 3)) {

    gaugeWidth = otherRect.width - (Window_Base._faceWidth * .8) - 11;

    gaugeX = otherRect.x + (Window_Base._faceWidth * .8) + 4;

    }

    else {

    gaugeWidth = otherRect.width;// - Window_Base._faceWidth - 11;

    gaugeX = otherRect.x;// + Window_Base._faceWidth + 4;

    }

    Но в таком случае шкала здоровья будет залезать на имя персонажа, надо будет сместить все полосы на this.lineHeight() вниз

  8. #8
    Маститый Аватар для Yuryol
    Информация о пользователе
    Регистрация
    06.03.2014
    Адрес
    Красноярск
    Сообщений
    1,420
    Записей в дневнике
    44
    Репутация: 60 Добавить или отнять репутацию

    По умолчанию

    На геймпаде меню вызывается на одну кнопку а отмена - на другую.
    Как сделать, чтобы и меню и отмена были на одну кнопку - а именно на LB геймпада (Q клавиатуры)?
    Убрали LT и RT с геймпада, нельзя ли как-то их вернуть?

  9. #9
    Авторитет Аватар для Bloody
    Информация о пользователе
    Регистрация
    22.04.2008
    Сообщений
    1,752
    Записей в дневнике
    94
    Репутация: 36 Добавить или отнять репутацию

    По умолчанию

    У меня вот какая проблема, есть скрипт от Yanfly - Enhanced TP, позволяющий менять то, каким способом и из-за чего растет TP.
    http://yanfly.moe/2016/01/08/yep-55-enhanced-tp/
    Я использую предложенный автором вариант Stoic (самый первый вариант), в котором TP растет от полученного урона и при защите. Плагин включен, TP при старте боя ровно столько сколько выставлено в настройках, равно как и максимальное количество TP, однако TP растет от того, что герой атакует, хотя этого быть не должно. Что я делаю не так?
    Проекты:
    Мини-игры: El Presidente -- Red & Blue -- Roll Me Away -- Wizard's Revenge
    На перерыве: Mémoire
    Кажется, заброшены: Street Magic -- Hack in the Dark

  10. #10
    Супер-модератор Аватар для dirge
    Информация о пользователе
    Регистрация
    25.02.2013
    Сообщений
    924
    Репутация: 79 Добавить или отнять репутацию

    По умолчанию

    Дело не в плагине. Ты походу проверяешь на стандартной атаке, а у нее в базе данных стоит получение ТР за использование.

Страница 1 из 11 123 ... ПоследняяПоследняя

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 2 (пользователей: 0 , гостей: 2)

Метки этой темы

Социальные закладки

Социальные закладки

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •  
Помощь c плагинами(JS)