Day.png);">
Apprendre


Vous êtes
nouveau sur
Oniromancie?

Visite guidée
du site


Découvrir
RPG Maker

RM 95
RM 2000/2003
RM XP
RM VX/VX Ace
RM MV/MZ

Apprendre
RPG Maker

Tutoriels
Guides
Making-of

Dans le
Forum

Section Entraide

Sorties: Star Trek: Glorious Wolf - (...) / Sorties: Dread Mac Farlane - episode 3 / News: Plein d'images cools créées par (...) / Sorties: Star Trek: Glorious Wolf - (...) / Jeux: Final Fantasy 2.0 / Chat

Bienvenue
visiteur !




publicité RPG Maker!

Statistiques

Liste des
membres


Contact

Mentions légales

269 connectés actuellement

29189007 visiteurs
depuis l'ouverture

4058 visiteurs
aujourd'hui



Barre de séparation

Partenaires

Indiexpo

Akademiya RPG Maker

Blog Alioune Fall

Fairy Tail Constellations

Hellsoft

Planète Glutko

RPG Maker Détente

Lunae - le bazar d'Emz0

Zarok

Tous nos partenaires

Devenir
partenaire



forums

Index du forum > Entraide > [RESOLU] [RPG Maker MV] Plugin pour mettre du dialogue pour l'invalidation de la vente ?


Chiocolatine - posté le 02/07/2020 à 15:51:44 (30 messages postés)

❤ 0

Domaine concerné: Plugin ?
Logiciel utilisé: RPG Maker MV
Je sais que le titre du topic n'a presque aucun sens, mais je cherche un plugin ou une autre solution qui sert à mettre une ligne de dialogue venant du vendeur pour dire qu'il n'accepte pas la vente d'objet. Par exemple dans undertale il y a un bouton vendre, mais le vendeur nous fais bien comprendre qu'il ne veux pas de nos objets par une phrase. Est-ce que des plugins comme ça existe ou on doit passer par les événement communs ?

Le 4ème mur ? Je l'ai mangé avec mes frites à midi.


crackerwood - posté le 03/07/2020 à 12:46:44 (176 messages postés)

❤ 0

Salut je peux te proposer ça mais je ne l'ai pas testé :

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
 
//=============================================================================
// JK_DirectShop.js
//=============================================================================
 
/*:
 * @plugindesc allows for direct buy OR direct sell of items at a shop.
 * @author Pirobi
 * *
 * @help
 * Version 1.5
 *
 :=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
        Plugin Commands
:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
 
        DirectBuy
                - This will make the NEXT shop command called a purchaseOnly shop.
                
        DirectSell
                - This will make the NEXT shop command called a sellOnly shop.
                
        If using the plugins, they must be called each time BEFORE the shop 
        processing is called because the shop will "reset" after 
        the processing ends.
        
:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
        Instructions for Use
:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:= 
        There are essentially 4 ways to call shops when using this plugin:
        
        1) Call the shop normally.
                -Use the ShopProcessing command just like always.
                -Will work like the default shop.
        2) Check purchase only on the ShopProcessing
                -Will Skip the buy/sell window and go right into purchasing
        3) Add PluginCommand "DirectBuy" before the shop processing command
                -Will do the same as 2. 
                -The box for "Purchase Only" does NOT need to be ticked in order for 
                        the plugin command to run.
        4) Add PluginCommand "DirectSell" before the shop processing command
                -Will skip the buy/sell window and go right into selling
        
:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
        Updates
:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
        -v1.5
                PurchaseOnly checkbox in Shop Processing no longer matters when
                DirectSell is called. Using proper aliasing to call shop for
                normal shop situations.
        -v1.4
                Minor fixes. If both DirectBuy and DirectSell are active, make it
                normal shop processing. Should definitely be compatible with other
                shop plugins now(tested with Yanfly's Core Shop).
        -v1.3
                Removed code that automatically handles window position, in order to 
                make this plugin compatible with other shop plugins, such as Yanfly's
                Shop Core.
        -v1.2
                Renamed to JK_Directshop to reflect new features.
                Added ability to "Direct Sell" items. Added plugin commands for
                both DirectBuy and DirectSell.
        -v1.1
                Adjusted position of Gold window with Status and Buy windows, to close
                The gap left behind by taking out the buy/sell option window.
        -v1.0
                Initial release
 */
 
var Imported = Imported || {};
var JK_DirectShop = JK_DirectShop || {};
 (function($) {
 
        $.directSell = false;
        $.directBuy = false;
 
JK_onBuyCancel = Scene_Shop.prototype.onBuyCancel;
Scene_Shop.prototype.onBuyCancel = function() {
        if(this._purchaseOnly)
        {//Skip right to exiting the shop processing.
                this.popScene();
        }
        else
        {//As normally written
                JK_onBuyCancel.call(this);
        }
};
 
JK_onCategoryCancel = Scene_Shop.prototype.onCategoryCancel;
Scene_Shop.prototype.onCategoryCancel = function() {
    if(this._sellOnly)
        {
                this.popScene();
        }
        else
        {
                //As normally written
                JK_onCategoryCancel.call(this);
        }
};
 
var JK_createScene = Scene_Shop.prototype.create;
Scene_Shop.prototype.create = function() {
        if($.directBuy){
        this._purchaseOnly = true;
        this._sellOnly = false;
        $.directBuy = false;
        }
        else if($.directSell){
                this._sellOnly = true;
                this._purchaseOnly = false;
                $.directSell = false;
        }
        JK_createScene.call(this);
        if(this._purchaseOnly){
                this._commandWindow.selectSymbol('buy');
                this._commandWindow.deactivate();
                this.commandBuy();
        }
        if(this._sellOnly){
                this._commandWindow.deactivate();
                this._commandWindow.selectSymbol('sell');
                this._commandWindow.deactivate();
                this.commandSell();
        }
};
 
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args)
    {
        switch(command)
        {
                        case "DirectBuy":
                                $.directBuy = true;
                                $.directSell = false;
                                break;
            case "DirectSell":
                                $.directSell = true;
                                $.directBuy = false;
                                break;
            default:
                _Game_Interpreter_pluginCommand.call(this, command, args);
                break;
        }
    };
        
})(JK_DirectShop);
Imported["JK_DirectShop"] = 1.5;
 



DirectBuy ne permet que d'acheter et
DirectSell ne permet que de vendre

PS : voici le lien du plugin : https://forums.rpgmakerweb.com/index.php?threads/jk_directshop-skip-buy-sell-window-on-purchase-sell-only.55994/

CMS event--PHS--Blackjack--PHS event VX


Chiocolatine - posté le 03/07/2020 à 15:43:04 (30 messages postés)

❤ 0

Ce plugin est intéressant. C'est ce que je cherche mais pas trop, bon je pense que ce que je cherche n'existe pas donc je vais juste mettre une phrase avant qu'on puisse acheter. Merci !

Le 4ème mur ? Je l'ai mangé avec mes frites à midi.

Index du forum > Entraide > [RESOLU] [RPG Maker MV] Plugin pour mettre du dialogue pour l'invalidation de la vente ?

repondre up

Suite à de nombreux abus, le post en invités a été désactivé. Veuillez vous inscrire si vous souhaitez participer à la conversation.

Haut de page

Merci de ne pas reproduire le contenu de ce site sans autorisation.
Contacter l'équipe - Mentions légales

Plan du site

Communauté: Accueil | Forum | Chat | Commentaires | News | Flash-news | Screen de la semaine | Sorties | Tests | Gaming-Live | Interviews | Galerie | OST | Blogs | Recherche
Apprendre: Visite guidée | RPG Maker 95 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker MV | Tutoriels | Guides | Making-of
Télécharger: Programmes | Scripts/Plugins | Ressources graphiques / sonores | Packs de ressources | Midis | Eléments séparés | Sprites
Jeux: Au hasard | Notre sélection | Sélection des membres | Tous les jeux | Jeux complets | Le cimetière | RPG Maker 95 | RPG Maker 2000 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker VX Ace | RPG Maker MV | Autres | Proposer
Ressources RPG Maker 2000/2003: Chipsets | Charsets | Panoramas | Backdrops | Facesets | Battle anims | Battle charsets | Monstres | Systems | Templates
Ressources RPG Maker XP: Tilesets | Autotiles | Characters | Battlers | Window skins | Icônes | Transitions | Fogs | Templates
Ressources RPG Maker VX: Tilesets | Charsets | Facesets | Systèmes
Ressources RPG Maker MV: Tilesets | Characters | Faces | Systèmes | Title | Battlebacks | Animations | SV/Ennemis
Archives: Palmarès | L'Annuaire | Livre d'or | Le Wiki | Divers