Match Card Lottery

● ARCHIVED · READ-ONLY
Started by mjshi 86 posts Page 5 of 5 View original ↗
  1. EarthMother said:
    @mjshi this is an awesome plugin, but it isn't really working for me. I get this error message:

    I'm guessing it is because I have a bunch of plugins installed, but I am having trouble finding which ones...

    Did you make sure that the format for the prizes parameter is right? If you reset it to the default parameters (by deleting and re-adding the plugin) does it still work?
  2. Hello! I am aware plugin compatibilities are usually outside the remit of developers fixes, but this conflicts with https://galvs-scripts.com/2017/04/26/mv-image-cache/

    I had another plugin conflicting with this script that was fixed by
    Code:
    if(j != 'delete')
    being added on line 203 of galvs before it ran the caching, but that doesn't seem to have counteractively worked with this one.
  3. Stopped by to say that this plugin is amazing and it still works great even in my 1.6.1 project!

    I was wondering if there was perhaps a way to just be able to have the match game play without needing any "tickets" at all?

    For my game I was hoping to have the player find an npc in an alleyway, the npc would challenge the player to a match game and win prizes. The way I have it evented now is that the player has to give the npc an item as if they are "betting" for it. It would be a bit cooler to just be able to start the game without the need for a "ticket" or is that impossible the way the plugin works now?

    Other than that your plugin is great and i haven't run into any compatiblity issues yet.
  4. @Fangzarie it might be possible, but I didn't test it, but you could
    try to mody the plugin itself, the itemID for tickets, set any number,

    in the plugin, find "MCLottery.ticketID" that is used, and search
    for $gamePlayer.loseItem which say (itemID, 1) change 1 to 0.
    this is on 2 places, do that and it should work, so you dont lose
    the item, so you can use the itemID of a potion or otherwise.

    for the check of > of the itemID, chnage that to >= (higher or equal).
    so even if you dont have the item, it still should work, but you should
    try it out if it does.

    ruling it out, might crash the game or a modify it in a way for not checking
    the itemID.
  5. ShadowDragon said:
    in the plugin, find "MCLottery.ticketID" that is used, and search
    for $gamePlayer.loseItem which say (itemID, 1) change 1 to 0.
    this is on 2 places, do that and it should work, so you dont lose
    the item, so you can use the itemID of a potion or otherwise.

    for the check of > of the itemID, chnage that to >= (higher or equal).
    so even if you dont have the item, it still should work, but you should
    try it out if it does.
    Thank you @ShadowDragon that seems to work perfectly! I even fiddled around with the code myself and added an extra line that stops the ticket window from showing entirely,
    Code:
    this._ticketWindow.visible = false;
    so that there isn't a silly " item x1 " at the top corner since the item technically never leaves the inventory.

    Thank you again for pointing me in the right direction!
  6. @mjshi First of all, very good job! i realy like your mini game!
    Hello! Sorry to bother you after so long since the release of the plugin, I have a question, my idea was to put a lottery with a specific first prize jackpot. But once you win the first prize, the game came back to normal, changing to standard prizes. But I guess it can’t be done automatically, since the lottery asks you if you want to use another ticket and continue.. As long as the player continues and does not get out of this loop I cannot change the prizes? right?