├── NASTY_ONLINE └── README.md ├── Nasty_Replace_Window_with_Picture.js ├── Nasty_Text_Pop_Events.js └── README.md /NASTY_ONLINE/README.md: -------------------------------------------------------------------------------- 1 | NASTY Online 2 | ========================== 3 | Nasty Online system has been moved to a new repo named 4 | [MV Online](https://github.com/Nelderson/MV_Online) 5 | 6 | The old system has been discontinued, but the versioning history will 7 | remain in place in case anyone wants to view the older source code. 8 | -------------------------------------------------------------------------------- /Nasty_Replace_Window_with_Picture.js: -------------------------------------------------------------------------------- 1 | //============================================================================= 2 | // Nasty Replace Window with Picture 3 | // Version: 1.0.4 4 | //============================================================================= 5 | 6 | var Imported = Imported || {}; 7 | Imported.Nasty_Replace_Window_with_Picture = true; 8 | 9 | var Nasty = Nasty || {}; 10 | 11 | //============================================================================= 12 | /*: 13 | * @plugindesc Use pictures instead of the windowskin image! 14 | * 15 | * @author Nelderson 16 | * 17 | * @param Debug Mode? 18 | * @desc Print width and height of every window loaded to the console(F8). 19 | * @default false 20 | * 21 | * @param Window 1 Object Name 22 | * @desc Use this to say which window object you want to switch: 23 | * Use the Debug if you need to find names to work with. 24 | * 25 | * @param Window 1 Picture Name 26 | * @desc Name of the picture in the img/pictures folder: 27 | * 28 | * 29 | * @param Window 2 Object Name 30 | * @desc Use this to say which window object you want to switch: 31 | * Use the Debug if you need to find names to work with. 32 | * 33 | * @param Window 2 Picture Name 34 | * @desc Name of the picture in the img/pictures folder: 35 | * 36 | * 37 | * @param Window 3 Object Name 38 | * @desc Use this to say which window object you want to switch: 39 | * Use the Debug if you need to find names to work with. 40 | * 41 | * @param Window 3 Picture Name 42 | * @desc Name of the picture in the img/pictures folder: 43 | * 44 | * 45 | * @param Window 4 Object Name 46 | * @desc Use this to say which window object you want to switch: 47 | * Use the Debug if you need to find names to work with. 48 | * 49 | * @param Window 4 Picture Name 50 | * @desc Name of the picture in the img/pictures folder: 51 | * 52 | * 53 | * @param Window 5 Object Name 54 | * @desc Use this to say which window object you want to switch: 55 | * Use the Debug if you need to find names to work with. 56 | * 57 | * @param Window 5 Picture Name 58 | * @desc Name of the picture in the img/pictures folder: 59 | * 60 | * 61 | * @param Window 6 Object Name 62 | * @desc Use this to say which window object you want to switch: 63 | * Use the Debug if you need to find names to work with. 64 | * 65 | * @param Window 6 Picture Name 66 | * @desc Name of the picture in the img/pictures folder: 67 | * 68 | * 69 | * @param Window 7 Object Name 70 | * @desc Use this to say which window object you want to switch: 71 | * Use the Debug if you need to find names to work with. 72 | * 73 | * @param Window 7 Picture Name 74 | * @desc Name of the picture in the img/pictures folder: 75 | * 76 | * 77 | * @param Window 8 Object Name 78 | * @desc Use this to say which window object you want to switch: 79 | * Use the Debug if you need to find names to work with. 80 | * 81 | * @param Window 8 Picture Name 82 | * @desc Name of the picture in the img/pictures folder: 83 | * 84 | * 85 | * @param Window 9 Object Name 86 | * @desc Use this to say which window object you want to switch: 87 | * Use the Debug if you need to find names to work with. 88 | * 89 | * @param Window 9 Picture Name 90 | * @desc Name of the picture in the img/pictures folder: 91 | * 92 | * 93 | * @param Window 10 Object Name 94 | * @desc Use this to say which window object you want to switch: 95 | * Use the Debug if you need to find names to work with. 96 | * 97 | * @param Window 10 Picture Name 98 | * @desc Name of the picture in the img/pictures folder: 99 | * 100 | * 101 | * @param Window 11 Object Name 102 | * @desc Use this to say which window object you want to switch: 103 | * Use the Debug if you need to find names to work with. 104 | * 105 | * @param Window 11 Picture Name 106 | * @desc Name of the picture in the img/pictures folder: 107 | * 108 | * 109 | * @param Window 12 Object Name 110 | * @desc Use this to say which window object you want to switch: 111 | * Use the Debug if you need to find names to work with. 112 | * 113 | * @param Window 12 Picture Name 114 | * @desc Name of the picture in the img/pictures folder: 115 | * 116 | * 117 | * @param Window 13 Object Name 118 | * @desc Use this to say which window object you want to switch: 119 | * Use the Debug if you need to find names to work with. 120 | * 121 | * @param Window 13 Picture Name 122 | * @desc Name of the picture in the img/pictures folder: 123 | * 124 | * 125 | * @param Window 14 Object Name 126 | * @desc Use this to say which window object you want to switch: 127 | * Use the Debug if you need to find names to work with. 128 | * 129 | * @param Window 14 Picture Name 130 | * @desc Name of the picture in the img/pictures folder: 131 | * 132 | * 133 | * @param Window 15 Object Name 134 | * @desc Use this to say which window object you want to switch: 135 | * Use the Debug if you need to find names to work with. 136 | * 137 | * @param Window 15 Picture Name 138 | * @desc Name of the picture in the img/pictures folder: 139 | * 140 | * 141 | * @param Window 16 Object Name 142 | * @desc Use this to say which window object you want to switch: 143 | * Use the Debug if you need to find names to work with. 144 | * 145 | * @param Window 16 Picture Name 146 | * @desc Name of the picture in the img/pictures folder: 147 | * 148 | * 149 | * @param Window 17 Object Name 150 | * @desc Use this to say which window object you want to switch: 151 | * Use the Debug if you need to find names to work with. 152 | * 153 | * @param Window 17 Picture Name 154 | * @desc Name of the picture in the img/pictures folder: 155 | * 156 | * 157 | * @param Window 18 Object Name 158 | * @desc Use this to say which window object you want to switch: 159 | * Use the Debug if you need to find names to work with. 160 | * 161 | * @param Window 18 Picture Name 162 | * @desc Name of the picture in the img/pictures folder: 163 | * 164 | * 165 | * @param Window 19 Object Name 166 | * @desc Use this to say which window object you want to switch: 167 | * Use the Debug if you need to find names to work with. 168 | * 169 | * @param Window 19 Picture Name 170 | * @desc Name of the picture in the img/pictures folder: 171 | * 172 | * 173 | * @param Window 20 Object Name 174 | * @desc Use this to say which window object you want to switch: 175 | * Use the Debug if you need to find names to work with. 176 | * 177 | * @param Window 20 Picture Name 178 | * @desc Name of the picture in the img/pictures folder: 179 | * 180 | * 181 | * @param Window 21 Object Name 182 | * @desc Use this to say which window object you want to switch: 183 | * Use the Debug if you need to find names to work with. 184 | * 185 | * @param Window 21 Picture Name 186 | * @desc Name of the picture in the img/pictures folder: 187 | * 188 | * 189 | * @param Window 22 Object Name 190 | * @desc Use this to say which window object you want to switch: 191 | * Use the Debug if you need to find names to work with. 192 | * 193 | * @param Window 22 Picture Name 194 | * @desc Name of the picture in the img/pictures folder: 195 | * 196 | * 197 | * @param Window 23 Object Name 198 | * @desc Use this to say which window object you want to switch: 199 | * Use the Debug if you need to find names to work with. 200 | * 201 | * @param Window 23 Picture Name 202 | * @desc Name of the picture in the img/pictures folder: 203 | * 204 | * 205 | * @param Window 24 Object Name 206 | * @desc Use this to say which window object you want to switch: 207 | * Use the Debug if you need to find names to work with. 208 | * 209 | * @param Window 24 Picture Name 210 | * @desc Name of the picture in the img/pictures folder: 211 | * 212 | * 213 | * @param Window 25 Object Name 214 | * @desc Use this to say which window object you want to switch: 215 | * Use the Debug if you need to find names to work with. 216 | * 217 | * @param Window 25 Picture Name 218 | * @desc Name of the picture in the img/pictures folder: 219 | * 220 | * 221 | * @param Window 26 Object Name 222 | * @desc Use this to say which window object you want to switch: 223 | * Use the Debug if you need to find names to work with. 224 | * 225 | * @param Window 26 Picture Name 226 | * @desc Name of the picture in the img/pictures folder: 227 | * 228 | * 229 | * @param Window 27 Object Name 230 | * @desc Use this to say which window object you want to switch: 231 | * Use the Debug if you need to find names to work with. 232 | * 233 | * @param Window 27 Picture Name 234 | * @desc Name of the picture in the img/pictures folder: 235 | * 236 | * 237 | * @param Window 28 Object Name 238 | * @desc Use this to say which window object you want to switch: 239 | * Use the Debug if you need to find names to work with. 240 | * 241 | * @param Window 28 Picture Name 242 | * @desc Name of the picture in the img/pictures folder: 243 | * 244 | * 245 | * @param Window 29 Object Name 246 | * @desc Use this to say which window object you want to switch: 247 | * Use the Debug if you need to find names to work with. 248 | * 249 | * @param Window 29 Picture Name 250 | * @desc Name of the picture in the img/pictures folder: 251 | * 252 | * 253 | * @param Window 30 Object Name 254 | * @desc Use this to say which window object you want to switch: 255 | * Use the Debug if you need to find names to work with. 256 | * 257 | * @param Window 30 Picture Name 258 | * @desc Name of the picture in the img/pictures folder: 259 | * 260 | * 261 | * @help 262 | * ============================================================================ 263 | * Introduction and Instructions 264 | * ============================================================================ 265 | * 266 | * Want to make super special windows in your game? Sometimes the windowskin 267 | * isnt enough, that's where Nasty Replace Window with Picture plugin comes in! 268 | * 269 | * All you need to do is define the window object name and the picture name 270 | * located in your img/pictures folder 271 | * 272 | * If you don't know the window object name, fret not! You can use the 273 | * nifty debug tool. This will give you a list of all window objects that 274 | * are currently loading, and will also tell you the width and height! 275 | * 276 | * You can also change windows on the fly with the Plugin Command: 277 | * ChangeWindowPic Window_Object PictureName 278 | * 279 | * Ex: 280 | * ChangeWindowPic Window_Status Pic3 281 | * 282 | * This would change the Status Window background to pic3 in the 283 | * img/pictures folder! 284 | * 285 | * 286 | * 287 | * HAVE FUN! 288 | */ 289 | //============================================================================= 290 | 291 | //============================================================================= 292 | // Parameter Variables 293 | //============================================================================= 294 | Nasty.Replace_Window_with_Pic = Nasty.Replace_Window_with_Pic || {}; 295 | 296 | (function($){ 297 | 298 | Nasty.Parameters = $plugins.filter(function(p) 299 | { return p.description.contains(''); 300 | })[0].parameters; 301 | 302 | Nasty.Param = Nasty.Param || {}; 303 | 304 | Nasty.Param.PicWindow_Obj = {}; 305 | 306 | Nasty.Param.PicWindow_Debug_Mode = String(Nasty.Parameters['Debug Mode?']); 307 | 308 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 1 Object Name'])] = 309 | String(Nasty.Parameters['Window 1 Picture Name']); 310 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 2 Object Name'])] = 311 | String(Nasty.Parameters['Window 2 Picture Name']); 312 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 3 Object Name'])] = 313 | String(Nasty.Parameters['Window 3 Picture Name']); 314 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 4 Object Name'])] = 315 | String(Nasty.Parameters['Window 4 Picture Name']); 316 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 5 Object Name'])] = 317 | String(Nasty.Parameters['Window 5 Picture Name']); 318 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 6 Object Name'])] = 319 | String(Nasty.Parameters['Window 6 Picture Name']); 320 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 7 Object Name'])] = 321 | String(Nasty.Parameters['Window 7 Picture Name']); 322 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 8 Object Name'])] = 323 | String(Nasty.Parameters['Window 8 Picture Name']); 324 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 9 Object Name'])] = 325 | String(Nasty.Parameters['Window 9 Picture Name']); 326 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 10 Object Name'])] = 327 | String(Nasty.Parameters['Window 10 Picture Name']); 328 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 11 Object Name'])] = 329 | String(Nasty.Parameters['Window 11 Picture Name']); 330 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 12 Object Name'])] = 331 | String(Nasty.Parameters['Window 12 Picture Name']); 332 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 13 Object Name'])] = 333 | String(Nasty.Parameters['Window 13 Picture Name']); 334 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 14 Object Name'])] = 335 | String(Nasty.Parameters['Window 14 Picture Name']); 336 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 15 Object Name'])] = 337 | String(Nasty.Parameters['Window 15 Picture Name']); 338 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 16 Object Name'])] = 339 | String(Nasty.Parameters['Window 16 Picture Name']); 340 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 17 Object Name'])] = 341 | String(Nasty.Parameters['Window 17 Picture Name']); 342 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 18 Object Name'])] = 343 | String(Nasty.Parameters['Window 18 Picture Name']); 344 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 19 Object Name'])] = 345 | String(Nasty.Parameters['Window 19 Picture Name']); 346 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 20 Object Name'])] = 347 | String(Nasty.Parameters['Window 20 Picture Name']); 348 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 21 Object Name'])] = 349 | String(Nasty.Parameters['Window 21 Picture Name']); 350 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 22 Object Name'])] = 351 | String(Nasty.Parameters['Window 22 Picture Name']); 352 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 23 Object Name'])] = 353 | String(Nasty.Parameters['Window 23 Picture Name']); 354 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 24 Object Name'])] = 355 | String(Nasty.Parameters['Window 24 Picture Name']); 356 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 25 Object Name'])] = 357 | String(Nasty.Parameters['Window 25 Picture Name']); 358 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 26 Object Name'])] = 359 | String(Nasty.Parameters['Window 26 Picture Name']); 360 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 27 Object Name'])] = 361 | String(Nasty.Parameters['Window 27 Picture Name']); 362 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 28 Object Name'])] = 363 | String(Nasty.Parameters['Window 28 Picture Name']); 364 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 29 Object Name'])] = 365 | String(Nasty.Parameters['Window 29 Picture Name']); 366 | Nasty.Param.PicWindow_Obj[String(Nasty.Parameters['Window 30 Object Name'])] = 367 | String(Nasty.Parameters['Window 30 Picture Name']); 368 | 369 | 370 | // Window_Base prototype and aliasing 371 | var Nasty_winpic_sprite = {}; 372 | var NASTY_PicWindow_Window_Base_Redo = Window_Base.prototype.initialize; 373 | Window_Base.prototype.initialize = function(x, y, width, height){ 374 | //Aliases must have *this* as the first argument 375 | NASTY_PicWindow_Window_Base_Redo.call(this, x, y, width, height); 376 | //Check for Window defined in user section? And then replace with pic 377 | var Nasty_list_of_winpic_keys = Object.keys(Nasty.Param.PicWindow_Obj); 378 | if (Nasty_list_of_winpic_keys.contains(this.constructor.name)){ 379 | if (Nasty.Param.PicWindow_Obj[this.constructor.name]){ 380 | Nasty_winpic_sprite = new Sprite_Base(); 381 | Nasty_winpic_sprite.bitmap = 382 | ImageManager.loadPicture(Nasty.Param.PicWindow_Obj[this.constructor.name]); 383 | this.addChildToBack(Nasty_winpic_sprite); 384 | } 385 | else{ 386 | console.log("Please Define which Picture to use in the Plugin Manager :)"); 387 | } 388 | //Make original Wiindow opaque if defined in user section 389 | this.opacity = 0; 390 | } 391 | if (Nasty.Param.PicWindow_Debug_Mode === 'true'){ 392 | console.log(this.constructor.name+" Width: "+this.width+" Height: "+ this.height); 393 | } 394 | }; 395 | 396 | var NASTY_PicWindo_setBckrd_type_Redo = Window_Base.prototype.setBackgroundType; 397 | Window_Base.prototype.setBackgroundType = function(type) { 398 | if (Nasty_winpic_sprite){ 399 | if (type === 0) { 400 | Nasty_winpic_sprite.opacity = 255; 401 | } else { 402 | Nasty_winpic_sprite.opacity = 0; 403 | } 404 | NASTY_PicWindo_setBckrd_type_Redo.call(this, type); 405 | } 406 | }; 407 | 408 | //============================================================================= 409 | // Game_Interpreter - New Plugin Commands 410 | //============================================================================= 411 | 412 | Nasty_picWindow_change_Game_Interpreter_pluginCommand = 413 | Game_Interpreter.prototype.pluginCommand; 414 | 415 | Game_Interpreter.prototype.pluginCommand = function(command, args) { 416 | Nasty_picWindow_change_Game_Interpreter_pluginCommand.call(this, command, args); 417 | if (command === 'ChangeWindowPic') { 418 | Nasty.Param.PicWindow_Obj[args[0]] = args[1]; 419 | } 420 | }; 421 | })(Nasty.Replace_Window_with_Pic); 422 | -------------------------------------------------------------------------------- /Nasty_Text_Pop_Events.js: -------------------------------------------------------------------------------- 1 | //============================================================================= 2 | // Nasty Text Pop Over Event 3 | // Version: 1.1.2 4 | //============================================================================= 5 | var Imported = Imported || {}; 6 | Imported.Nasty_Event_Text_Pop = true; 7 | 8 | var Nasty = Nasty || {}; 9 | //============================================================================= 10 | /*: 11 | * @plugindesc Make text over events, players and followers! 12 | * 13 | * @author Nelderson 14 | * 15 | * @param Font Size 1 16 | * @desc USize of the font to be displayed. 17 | * @default 28 18 | * 19 | * @param Font Color 1 20 | * @desc Color of the font 21 | * @default #ffffff 22 | * 23 | * @param Outline Size 1 24 | * @desc Size of the outline from the text 25 | * @default 4 26 | * 27 | * @param Outline Color 1 28 | * @desc Color of the outline on text. 29 | * @default rgba(0, 0, 0, 0.5) 30 | * 31 | * @param Font Name 1 32 | * @desc Name of the font you want to use. 33 | * @default GameFont 34 | * 35 | * @param Font italic? 1 36 | * @desc Do you want Italic font? 37 | * @default false 38 | * 39 | * @param Time 1 40 | * @desc Time before text disappers. Set to 0 for eternal. 41 | * @default 120 42 | * 43 | *@param ============= 44 | * 45 | * @param Font Size 2 46 | * @desc USize of the font to be displayed. 47 | * @default 28 48 | * 49 | * @param Font Color 2 50 | * @desc Color of the font 51 | * @default #ffffff 52 | * 53 | * @param Outline Size 2 54 | * @desc Size of the outline from the text 55 | * @default 4 56 | * 57 | * @param Outline Color 2 58 | * @desc Color of the outline on text. 59 | * @default rgba(0, 0, 0, 0.5) 60 | * 61 | * @param Font Name 2 62 | * @desc Name of the font you want to use. 63 | * @default GameFont 64 | * 65 | * @param Font italic? 2 66 | * @desc Do you want Italic font? 67 | * @default false 68 | * 69 | * @param Time 2 70 | * @desc Time before text disappers. Set to 0 for eternal. 71 | * @default 120 72 | * 73 | *@param ============= 74 | * 75 | * @param Font Size 3 76 | * @desc USize of the font to be displayed. 77 | * @default 28 78 | * 79 | * @param Font Color 3 80 | * @desc Color of the font 81 | * @default #ffffff 82 | * 83 | * @param Outline Size 3 84 | * @desc Size of the outline from the text 85 | * @default 4 86 | * 87 | * @param Outline Color 3 88 | * @desc Color of the outline on text. 89 | * @default rgba(0, 0, 0, 0.5) 90 | * 91 | * @param Font Name 3 92 | * @desc Name of the font you want to use. 93 | * @default GameFont 94 | * 95 | * @param Font italic? 3 96 | * @desc Do you want Italic font? 97 | * @default false 98 | * 99 | * @param Time 3 100 | * @desc Time before text disappers. Set to 0 for eternal. 101 | * @default 120 102 | * 103 | *@param ============= 104 | * 105 | * @param Font Size 4 106 | * @desc USize of the font to be displayed. 107 | * @default 28 108 | * 109 | * @param Font Color 4 110 | * @desc Color of the font 111 | * @default #ffffff 112 | * 113 | * @param Outline Size 4 114 | * @desc Size of the outline from the text 115 | * @default 4 116 | * 117 | * @param Outline Color 4 118 | * @desc Color of the outline on text. 119 | * @default rgba(0, 0, 0, 0.5) 120 | * 121 | * @param Font Name 4 122 | * @desc Name of the font you want to use. 123 | * @default GameFont 124 | * 125 | * @param Font italic? 4 126 | * @desc Do you want Italic font? 127 | * @default false 128 | * 129 | * @param Time 4 130 | * @desc Time before text disappers. Set to 0 for eternal. 131 | * @default 120 132 | * 133 | *@param ============= 134 | * 135 | * @param Font Size 5 136 | * @desc USize of the font to be displayed. 137 | * @default 28 138 | * 139 | * @param Font Color 5 140 | * @desc Color of the font 141 | * @default #ffffff 142 | * 143 | * @param Outline Size 5 144 | * @desc Size of the outline from the text 145 | * @default 4 146 | * 147 | * @param Outline Color 5 148 | * @desc Color of the outline on text. 149 | * @default rgba(0, 0, 0, 0.5) 150 | * 151 | * @param Font Name 5 152 | * @desc Name of the font you want to use. 153 | * @default GameFont 154 | * 155 | * @param Font italic? 5 156 | * @desc Do you want Italic font? 157 | * @default false 158 | * 159 | * @param Time 5 160 | * @desc Time before text disappers. Set to 0 for eternal. 161 | * @default 120 162 | * 163 | *@param ============= 164 | * 165 | * @param Font Size 6 166 | * @desc USize of the font to be displayed. 167 | * @default 28 168 | * 169 | * @param Font Color 6 170 | * @desc Color of the font 171 | * @default #ffffff 172 | * 173 | * @param Outline Size 6 174 | * @desc Size of the outline from the text 175 | * @default 4 176 | * 177 | * @param Outline Color 6 178 | * @desc Color of the outline on text. 179 | * @default rgba(0, 0, 0, 0.5) 180 | * 181 | * @param Font Name 6 182 | * @desc Name of the font you want to use. 183 | * @default GameFont 184 | * 185 | * @param Font italic? 6 186 | * @desc Do you want Italic font? 187 | * @default false 188 | * 189 | * @param Time 6 190 | * @desc Time before text disappers. Set to 0 for eternal. 191 | * @default 120 192 | * 193 | *@param ============= 194 | * 195 | * @param Font Size 7 196 | * @desc USize of the font to be displayed. 197 | * @default 28 198 | * 199 | * @param Font Color 7 200 | * @desc Color of the font 201 | * @default #ffffff 202 | * 203 | * @param Outline Size 7 204 | * @desc Size of the outline from the text 205 | * @default 4 206 | * 207 | * @param Outline Color 7 208 | * @desc Color of the outline on text. 209 | * @default rgba(0, 0, 0, 0.5) 210 | * 211 | * @param Font Name 7 212 | * @desc Name of the font you want to use. 213 | * @default GameFont 214 | * 215 | * @param Font italic? 7 216 | * @desc Do you want Italic font? 217 | * @default false 218 | * 219 | * @param Time 7 220 | * @desc Time before text disappers. Set to 0 for eternal. 221 | * @default 120 222 | * 223 | *@param ============= 224 | * 225 | * @param Font Size 8 226 | * @desc USize of the font to be displayed. 227 | * @default 28 228 | * 229 | * @param Font Color 8 230 | * @desc Color of the font 231 | * @default #ffffff 232 | * 233 | * @param Outline Size 8 234 | * @desc Size of the outline from the text 235 | * @default 4 236 | * 237 | * @param Outline Color 8 238 | * @desc Color of the outline on text. 239 | * @default rgba(0, 0, 0, 0.5) 240 | * 241 | * @param Font Name 8 242 | * @desc Name of the font you want to use. 243 | * @default GameFont 244 | * 245 | * @param Font italic? 8 246 | * @desc Do you want Italic font? 247 | * @default false 248 | * 249 | * @param Time 8 250 | * @desc Time before text disappers. Set to 0 for eternal. 251 | * @default 120 252 | * 253 | *@param ============= 254 | * 255 | * @param Font Size 9 256 | * @desc USize of the font to be displayed. 257 | * @default 28 258 | * 259 | * @param Font Color 9 260 | * @desc Color of the font 261 | * @default #ffffff 262 | * 263 | * @param Outline Size 9 264 | * @desc Size of the outline from the text 265 | * @default 4 266 | * 267 | * @param Outline Color 9 268 | * @desc Color of the outline on text. 269 | * @default rgba(0, 0, 0, 0.5) 270 | * 271 | * @param Font Name 9 272 | * @desc Name of the font you want to use. 273 | * @default GameFont 274 | * 275 | * @param Font italic? 9 276 | * @desc Do you want Italic font? 277 | * @default false 278 | * 279 | * @param Time 9 280 | * @desc Time before text disappers. Set to 0 for eternal. 281 | * @default 120 282 | * 283 | *@param ============= 284 | * 285 | * @param Font Size 10 286 | * @desc USize of the font to be displayed. 287 | * @default 28 288 | * 289 | * @param Font Color 10 290 | * @desc Color of the font 291 | * @default #ffffff 292 | * 293 | * @param Outline Size 10 294 | * @desc Size of the outline from the text 295 | * @default 4 296 | * 297 | * @param Outline Color 10 298 | * @desc Color of the outline on text. 299 | * @default rgba(0, 0, 0, 0.5) 300 | * 301 | * @param Font Name 10 302 | * @desc Name of the font you want to use. 303 | * @default GameFont 304 | * 305 | * @param Font italic? 10 306 | * @desc Do you want Italic font? 307 | * @default false 308 | * 309 | * @param Time 10 310 | * @desc Time before text disappers. Set to 0 for eternal. 311 | * @default 120 312 | * 313 | *@param ============= 314 | * 315 | * @help 316 | * ============================================================================ 317 | * Introduction and Instructions 318 | * ============================================================================ 319 | * 320 | * Want to make events on the map say something, but the message box crimps 321 | * your style by pausing everything else going on? Then NASTY Text Pop 322 | * might be the answer for you! 323 | * 324 | * You can call the text with the Plugin command: 325 | * 326 | * NastyTextPop ID# template# #ofFrames String of text here 327 | * 328 | * -ID# 329 | * 0 = The event using the command 330 | * 1-9999 = Event number on the map. 331 | * -1 = Your player 332 | * -2 = Follower 1 333 | * -3 = Follower 2 334 | * -4 = Follower 3 335 | * 336 | * -Template# 337 | * This number coreponds to the plugin manager numbers for text size 338 | * font name, outline width, etc. 339 | * 340 | * -#ofFrames 341 | * Number of frames before the text disappers. 60 frames in a second 342 | * Putting a 0 will hold the text there until the map is refreshed. 343 | * 344 | * -String of text here 345 | * Place any text after the first 3 arguments, and it will all show 346 | * on the specified EventID, Player or Follower. 347 | * 348 | * Ex. NastyTextPop -1 1 120 Tesing This! 349 | * 350 | * This would show "Testing This!" over the Player for 120 351 | * frames and use the settings in the first plugin spot. 352 | * 353 | * As of Version 1.1.0 you can now use the Script Command: 354 | * 355 | * this.NastyTextPop({ 356 | * argument1: value 357 | * argument2: value 358 | * argument3: value 359 | * etc.. 360 | * }) 361 | * 362 | * Arguments you can use: 363 | * 364 | * text: "String Here" - What you want to pop up. 365 | * 366 | * id: Number - 367 | * 0 = The event using the command 368 | * 1-9999 = Event number on the map. 369 | * -1 = Your player 370 | * -2 = Follower 1 371 | * -3 = Follower 2 372 | * -4 = Follower 3 373 | * 374 | * template: Number - Template setup in plugin manager. 375 | * 376 | * windowOpacity: Number - Opacity of window. 0 is default. 377 | * 378 | * time: Number - Frames before text erases. 0 until map refreshes. 379 | * 380 | * font: 'FontName' - Change font 381 | * 382 | * fontsize: Number - Size of the font. 383 | * 384 | * fontcolor: 'String' - Color of text 385 | * 386 | * outlineColor: 'String' - Color of Outline text 387 | * 388 | * outlineWidth: Number - Outline width 389 | * 390 | * italic: true/false - Italic font? 391 | * 392 | * width: Number - Offset of Window width 393 | * 394 | * height: Number - Offset of Window height 395 | * 396 | * x: Number - Offset of x 397 | * 398 | * y: Number - Offset of y 399 | * 400 | * Ex: Place this in script call~ 401 | * 402 | * this.NastyTextPop({ 403 | * time: 0, 404 | * italic: true, 405 | * windowOpacity: 255, 406 | * fontsize: 28, 407 | * outlineColor: '#ff2456', 408 | * outlineWidth: 6, 409 | * width: -600, 410 | * height: 100, 411 | * text: 'Test This Right? \n\\I[10] \nThis is kinda cool bruh!\nTry not to abuse it..', 412 | * }) 413 | * 414 | * HAVE FUN! 415 | */ 416 | //============================================================================= 417 | 418 | //============================================================================= 419 | // Parameter Variables 420 | //============================================================================= 421 | Nasty.Event_Text_Pop = Nasty.Event_Text_Pop || {}; 422 | 423 | (function ($) { 424 | Nasty.Parameters = $plugins.filter(function(p) 425 | { return p.description.contains(''); 426 | })[0].parameters; 427 | 428 | Nasty.Param = Nasty.Param || {}; 429 | Nasty.Param.TextPop = []; 430 | 431 | Nasty.Param.TextPop.push({ 432 | namepop_size: Number(Nasty.Parameters['Font Size 1']), 433 | namepop_color: String(Nasty.Parameters['Font Color 1']), 434 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 1']), 435 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 1']), 436 | namepop_font: String(Nasty.Parameters['Font Name 1']), 437 | namepop_ital: String(Nasty.Parameters['Font italic? 1']), 438 | namepop_time: Number(Nasty.Parameters['Time 1']), 439 | }); 440 | Nasty.Param.TextPop.push({ 441 | namepop_size: Number(Nasty.Parameters['Font Size 2']), 442 | namepop_color: String(Nasty.Parameters['Font Color 2']), 443 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 2']), 444 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 2']), 445 | namepop_font: String(Nasty.Parameters['Font Name 2']), 446 | namepop_ital: String(Nasty.Parameters['Font italic? 2']), 447 | namepop_time: Number(Nasty.Parameters['Time 2']), 448 | }); 449 | Nasty.Param.TextPop.push({ 450 | namepop_size: Number(Nasty.Parameters['Font Size 3']), 451 | namepop_color: String(Nasty.Parameters['Font Color 3']), 452 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 3']), 453 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 3']), 454 | namepop_font: String(Nasty.Parameters['Font Name 3']), 455 | namepop_ital: String(Nasty.Parameters['Font italic? 3']), 456 | namepop_time: Number(Nasty.Parameters['Time 3']), 457 | }); 458 | Nasty.Param.TextPop.push({ 459 | namepop_size: Number(Nasty.Parameters['Font Size 4']), 460 | namepop_color: String(Nasty.Parameters['Font Color 4']), 461 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 4']), 462 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 4']), 463 | namepop_font: String(Nasty.Parameters['Font Name 4']), 464 | namepop_ital: String(Nasty.Parameters['Font italic? 4']), 465 | namepop_time: Number(Nasty.Parameters['Time 4']), 466 | }); 467 | Nasty.Param.TextPop.push({ 468 | namepop_size: Number(Nasty.Parameters['Font Size 5']), 469 | namepop_color: String(Nasty.Parameters['Font Color 5']), 470 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 5']), 471 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 5']), 472 | namepop_font: String(Nasty.Parameters['Font Name 5']), 473 | namepop_ital: String(Nasty.Parameters['Font italic? 5']), 474 | namepop_time: Number(Nasty.Parameters['Time 5']), 475 | }); 476 | Nasty.Param.TextPop.push({ 477 | namepop_size: Number(Nasty.Parameters['Font Size 6']), 478 | namepop_color: String(Nasty.Parameters['Font Color 6']), 479 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 6']), 480 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 6']), 481 | namepop_font: String(Nasty.Parameters['Font Name 6']), 482 | namepop_ital: String(Nasty.Parameters['Font italic? 6']), 483 | namepop_time: Number(Nasty.Parameters['Time 6']), 484 | }); 485 | Nasty.Param.TextPop.push({ 486 | namepop_size: Number(Nasty.Parameters['Font Size 7']), 487 | namepop_color: String(Nasty.Parameters['Font Color 7']), 488 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 7']), 489 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 7']), 490 | namepop_font: String(Nasty.Parameters['Font Name 7']), 491 | namepop_ital: String(Nasty.Parameters['Font italic? 7']), 492 | namepop_time: Number(Nasty.Parameters['Time 7']), 493 | }); 494 | Nasty.Param.TextPop.push({ 495 | namepop_size: Number(Nasty.Parameters['Font Size 8']), 496 | namepop_color: String(Nasty.Parameters['Font Color 8']), 497 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 8']), 498 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 8']), 499 | namepop_font: String(Nasty.Parameters['Font Name 8']), 500 | namepop_ital: String(Nasty.Parameters['Font italic? 8']), 501 | namepop_time: Number(Nasty.Parameters['Time 8']), 502 | }); 503 | Nasty.Param.TextPop.push({ 504 | namepop_size: Number(Nasty.Parameters['Font Size 9']), 505 | namepop_color: String(Nasty.Parameters['Font Color 9']), 506 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 9']), 507 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 9']), 508 | namepop_font: String(Nasty.Parameters['Font Name 9']), 509 | namepop_ital: String(Nasty.Parameters['Font italic? 9']), 510 | namepop_time: Number(Nasty.Parameters['Time 9']), 511 | }); 512 | Nasty.Param.TextPop.push({ 513 | namepop_size: Number(Nasty.Parameters['Font Size 10']), 514 | namepop_color: String(Nasty.Parameters['Font Color 10']), 515 | namepop_outlineWidth: Number(Nasty.Parameters['Outline Size 10']), 516 | namepop_outlineColor: String(Nasty.Parameters['Outline Color 10']), 517 | namepop_font: String(Nasty.Parameters['Font Name 10']), 518 | namepop_ital: String(Nasty.Parameters['Font italic? 10']), 519 | namepop_time: Number(Nasty.Parameters['Time 10']), 520 | }); 521 | 522 | 523 | var Nasty_EvText_gme_charcter_init_alias = Game_Character.prototype.initialize; 524 | Game_Character.prototype.initialize = function() { 525 | Nasty_EvText_gme_charcter_init_alias.call(this); 526 | this.namepop = ""; 527 | this.namepop_size = 28; 528 | this.namepop_color = '#ffffff'; 529 | this.namepop_outlineColor = 'rgba(0, 0, 0, 0.5)'; 530 | this.namepop_outlineWidth = 4; 531 | this.namepop_time = 0; 532 | this.namepop_font = 'GameFont'; 533 | this.namepop_ital = false; 534 | this.windowOpacity = 0; 535 | this.namepop_ox = 0; 536 | this.namepop_oy = 0; 537 | this.namepop_width = 0; 538 | this.namepop_height = 0; 539 | this.textpop_flag = false; //Shut off switch 540 | }; 541 | 542 | var Nasty_evText_chrsprite_init_alias = Sprite_Character.prototype.initialize; 543 | Sprite_Character.prototype.initialize = function(character) { 544 | Nasty_evText_chrsprite_init_alias.call(this, character); 545 | this.char = character; 546 | this.text_timer = 0; 547 | }; 548 | 549 | var Nasty_sprCharacterTxtPop_update_alias = Sprite_Character.prototype.update; 550 | Sprite_Character.prototype.update = function() { 551 | Nasty_sprCharacterTxtPop_update_alias.call(this); 552 | if (this.text_timer > 0 && this.char.textpop_flag === false){ 553 | this.text_timer -=1; 554 | if (this.text_timer <= 0){ 555 | this.removeChild(this.namepop_sprite); 556 | this.tmer_rat = undefined; //Reset ratio, just to avoid issues 557 | } 558 | else if (this.text_timer < 60){ 559 | this.namepop_sprite.contentsOpacity-= 4; 560 | this.namepop_sprite.opacity -= 4; 561 | } 562 | } 563 | if (this.char.textpop_flag === true){ 564 | this.namepop = this.char.namepop; 565 | this.removeChild(this.namepop_sprite); 566 | this.start_namepop(); 567 | this.char.textpop_flag = false; //Release from update 568 | } 569 | }; 570 | 571 | Sprite_Character.prototype.start_namepop = function(){ 572 | if (this.namepop === "") return; 573 | var b_width = (this.namepop.length * (this.char.namepop_size/2) + 24)+this.char.namepop_width; 574 | var b_height = (this.char.namepop_size + 28) + this.char.namepop_height; 575 | var x = (0 - b_width/2) + this.char.namepop_ox; 576 | var y = (0 - b_height - 48) - this.char.namepop_oy; 577 | this.namepop_sprite = new Window_CharacterPop(x,y,b_width,b_height,this.char); 578 | this.namepop_sprite.opacity = this.char.windowOpacity; //Nel Add 579 | //###Change Font, Font Size, Color, and Time based off Character values## 580 | this.namepop_sprite.contents.textColor = this.char.namepop_color; 581 | this.namepop_sprite.contents.outlineColor = this.char.namepop_outlineColor; 582 | this.namepop_sprite.contents.outlineWidth = this.char.namepop_outlineWidth; 583 | this.namepop_sprite.contents.fontSize = this.char.namepop_size; 584 | this.namepop_sprite.contents.fontFace = this.char.namepop_font; 585 | this.namepop_sprite.contents.fontItalic = this.char.namepop_ital; 586 | this.namepop_sprite.drawTextEx(this.namepop, 0, 0);//, b_width, b_height, 'center'); 587 | this.text_timer = this.char.namepop_time; 588 | this.namepop_time = this.char.namepop_time; 589 | this.addChild(this.namepop_sprite); 590 | }; 591 | 592 | //----------------------------------------------------------------------------- 593 | // Window_CharacterPop 594 | // 595 | 596 | function Window_CharacterPop() { 597 | this.initialize.apply(this, arguments); 598 | } 599 | 600 | Window_CharacterPop.prototype = Object.create(Window_Base.prototype); 601 | Window_CharacterPop.prototype.constructor = Window_CharacterPop; 602 | 603 | Window_CharacterPop.prototype.initialize = function(x, y, width, height,character) { 604 | Window_Base.prototype.initialize.call(this, x, y, width, height); 605 | this.character = character; 606 | }; 607 | 608 | var Nasty_TxtPop_drawTextEx_alias = Window_Base.prototype.drawTextEx; 609 | Window_Base.prototype.drawTextEx = function(text, x, y) { 610 | //Only run for Window_CharacterPop windows 611 | if (this.constructor.name==='Window_CharacterPop'){ 612 | if (text) { 613 | var textState = { index: 0, x: x, y: y, left: x }; 614 | textState.text = this.convertEscapeCharacters(text); 615 | textState.height = this.calcTextHeight(textState, false); 616 | //this.resetFontSettings(); 617 | while (textState.index < textState.text.length) { 618 | this.processCharacter(textState); 619 | } 620 | return textState.x - x; 621 | } else { 622 | return 0; 623 | } 624 | }else { 625 | //All other Windows 626 | return Nasty_TxtPop_drawTextEx_alias.call(this,text, x, y); 627 | } 628 | }; 629 | 630 | var Nasty_txtpop_standardpadding_alias = Window_Base.prototype.standardPadding; 631 | Window_Base.prototype.standardPadding = function() { 632 | if (this.constructor.name==='Window_CharacterPop'){ 633 | return 8; 634 | }else{ 635 | return Nasty_txtpop_standardpadding_alias.call(this); 636 | } 637 | }; 638 | 639 | //============================================================================= 640 | // Game_Interpreter - New Plugin Commands 641 | //============================================================================= 642 | 643 | var Nasty_TextPopEvents_change_pluginCommand = 644 | Game_Interpreter.prototype.pluginCommand; 645 | 646 | Game_Interpreter.prototype.pluginCommand = function(command, args) { 647 | Nasty_TextPopEvents_change_pluginCommand.call(this, command, args); 648 | if (command.toUpperCase() === 'NASTYTEXTPOP') { 649 | var ev_id = args.shift(), 650 | template = args.shift()-1, 651 | time = args.shift(), 652 | textString = (args.join(" ")); 653 | char = this.getCharacter_for_Nasty_Text_Pop(ev_id); 654 | 655 | char.namepop = textString; 656 | char.namepop_size = Nasty.Param.TextPop[template].namepop_size; 657 | char.namepop_color = Nasty.Param.TextPop[template].namepop_color; 658 | char.namepop_outlineColor = Nasty.Param.TextPop[template].namepop_outlineColor; 659 | char.namepop_outlineWidth = Nasty.Param.TextPop[template].namepop_outlineWidth; 660 | char.namepop_time = time; 661 | char.namepop_font = Nasty.Param.TextPop[template].namepop_font; 662 | if (Nasty.Param.TextPop[template].namepop_ital==='true') char.namepop_ital = true; 663 | char.textpop_flag = true; //Catch in update 664 | } 665 | }; 666 | 667 | var Nasty_txtpop_reset_text_options_alias = Game_Interpreter.prototype.pluginCommand; 668 | Game_Interpreter.prototype.pluginCommand = function(command, args) { 669 | Nasty_txtpop_reset_text_options_alias.call(this, command, args); 670 | if (command.toUpperCase() === 'RESETTEXTOPTIONS') { 671 | for (i=0; i 0 ? param : this._eventId); 730 | } else { 731 | return null; 732 | } 733 | }; 734 | })(Nasty.Event_Text_Pop); 735 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | NASTY RPG Maker MV Scripts 2 | ========================== 3 | Plugins for RPG Maker MV 4 | 5 | Documentation 6 | ------------- 7 | 8 | Documentation is located within each individual plugin 9 | 10 | Terms of Use 11 | ------------ 12 | 13 | "Free for commercial and non-commercial use as long as you credit me (Nelderson) 14 | and try to send me a copy of your game if completed. Enjoy!" --Nelderson 15 | 16 | License 17 | ------- 18 | 19 | MIT License 20 | 21 | Copyright (c) [2016] [Nelderson] 22 | 23 | Permission is hereby granted, free of charge, to any person obtaining a copy 24 | of this software and associated documentation files (the "Software"), to deal 25 | in the Software without restriction, including without limitation the rights 26 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27 | copies of the Software, and to permit persons to whom the Software is 28 | furnished to do so, subject to the following conditions: 29 | 30 | The above copyright notice and this permission notice shall be included in all 31 | copies or substantial portions of the Software. 32 | 33 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 34 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 35 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 36 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 37 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 38 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 39 | SOFTWARE. 40 | --------------------------------------------------------------------------------