Skip to content

For Anime/OCG/TCG cards that requires core update to fix/create - may be unsyced from FH

Notifications You must be signed in to change notification settings

MichaelLawrenceDee/YGo-Percy-edopro-pre-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

For Anime/OCG/TCG cards that requires core update to fix/create - may be unsyced from FH

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages