Code Monkey home page Code Monkey logo

ygo-percy-edopro-pre-script's Introduction

Functions

Duel.RockPaperScissors([repeat = true]) - returns int (winner or PLAYER_NONE)

Duel.GetRandomNumber([int min = 0,]int max)

Card.GetCardEffect(card[, int code]) returns all the effect with that code applied on a card. With no code or code=0 it will returna ll the effects applied on a card.

Duel.GetPlayerEffect(int player, int code) returns all the effect with that code applied on the player. With no code or code=0 it will returna ll the effects applied on the player.

Duel.GetLinkedZone(int player) returns all the aviable linked zones a player has

Duel.GetLocationCountFromEx(int tp, int tp, group sg, card lc) returns the number of free zones when sg are used as material for special summoning lc.

Duel.SelectDisableField(int player, int count, int s, int o, int filter[,bool all=false]), now it has an additional extra parameter when this parameter is set to true, the function will allow the selection of every zone on the field, from monster zone to pendulum zone

Duel.GetMasterRule() returns the current master rule

Card.SetUniqueOnField(Card c, int s, int o, int unique_code|function unique_function[, int unique_location=LOCATIOIN_ONFIELD]) now this function other than accepting the usual unique code, will work with functions too

Duel.MoveToField(Card c, int move_player, int target_player, int dest, int pos, bool enabled[,int sequence]) Now accepts sequence. 0-5 for SZONE, 0 to 6 for MZONE and use LOCATION_PZONE for Pendulum Zones.

Card.GetFreeLinkedZone() returns the useable linkes zones of a link monster

Duel.AssumeReset() manually resets assume effects

Group.SelectUnselect(Group g1, Group g2, int player[, bool buttonok, bool cancelable, int min, int max]) g1 is the group of not selected cards, g2 is the group of already selected cards, player is the player who selects the card, buttonok. often used with cancelable, shows the ok button while in the panel selection, cancelable make the selection be canceled with the right click, max and min does nothing to the function, they are only the max and min values shown in the hint. Every card in both the groups can be selectes. The function returns a single card

Effects:

EFFECT_CANNOT_SPECIAL_SUMMON now can accept the position as filter by putting it as the value, the inserted position will be the one blocked, example target:

function (e,c,sump,sumtype,sumpos,targetp,se)
	return bit.band(sumpos,POSITION_TO_ALLOW)==0
end

EFFECT_TUNER_MATERIAL_LIMIT: instead of using the EFFECT_SYNCHRO_MATERIAL_CUSTOM, when the monster only has a materials restriction, this can be used, in the target it accepts functions with these filters: (e,c) where e is the effect, in this case the LIMIT, and c is the generic non tuner material, when the function returns true the material will be able to be used, but we don't use this function.

EFFECT_TUNE_MAGICIAN_X this effect is a filter for the xyz materials, but we also don't use this.

EFFECT_BECOME_LINKED: This effect, only useful under mr4, accept as value the zone that will be treated as a linked zone, even if there's no link monster

EFFECT_FUSION_MATERIAL now a monster can have more than 1 of this effect

Place all scripts in script folder as is. Live2017Links to be synced before the next update, currently synced with LiveMR4Links

ygo-percy-edopro-pre-script's People

Contributors

alphakretin avatar andreoliveiramendes avatar edo9300 avatar eeriecode avatar larry126 avatar michaellawrencedee avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.