YGOPRO Forum

Welcome Guest! To enable all features please try to register or login.
Options
Go to last post Go to first unread
BananaPhone42  
#1 Posted : Tuesday, April 21, 2020 9:37:06 PM(UTC)
BananaPhone42

Rank: Advanced Member

Joined: 1/16/2018(UTC)
Posts: 190

Thanks: 13 times
Was thanked: 10 time(s) in 10 post(s)
As you've probably discovered, you cannot directly modify the AI to give it or yourself advantages anymore in EDOPro, YGOPercy's successor. So, to work around through this problem, I found that you have to do it through card format. Here, let me give you this card as an example. It deletes itself from the Duel and you have the choice on whether or not you want to apply the condition on this card. If you agree, you get to heal 1500 LP pre-Draw Phase. I call it, "Biased Healing".


Biased Healing
Spell

Effect
Quote:
Remove this card from the Duel immediately. If both players agree, apply the following rules.
● Before either player's Draw Phase, you gain 1500 LP. This effect cannot be negated.


Script:
Code:
--Unfair Healing
local s,id=GetID()
function s.initial_effect(c)
	--activate
	local e1=Effect.CreateEffect(c) 
	e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
	e1:SetCode(EVENT_PREDRAW)
	e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_CANNOT_DISABLE)
	e1:SetRange(LOCATION_ALL)
	e1:SetCountLimit(1)
	e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,1500,REASON_EFFECT) end)
	Duel.RegisterEffect(e1,tp)
	--act
	local e10=Effect.CreateEffect(c)
	e10:SetOperation(c511003500.actb)
	e10:SetCost(c511003500.descost)
	e10:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
	e10:SetCode(EVENT_PREDRAW)
	e10:SetRange(LOCATION_DECK)
	e10:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
	c:RegisterEffect(e10)
	--acthand
	local e20=Effect.CreateEffect(c)
	e20:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
	e20:SetRange(LOCATION_HAND)
	e20:SetCode(EVENT_PREDRAW)
	e20:SetOperation(c511003500.actb)
	e20:SetCost(c511003500.descost)
	e20:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
	c:RegisterEffect(e20)
	--actgrave
	local e30=Effect.CreateEffect(c)
	e30:SetOperation(c511003500.actb)
	e30:SetCost(c511003500.descost)
	e30:SetRange(LOCATION_GRAVE)
	e30:SetCode(EVENT_PREDRAW)
	e30:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
	e30:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
	c:RegisterEffect(e30)
end
function c511003500.actb(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return e:GetHandler():IsAbleToRemove() end
	Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
function c511003500.descost(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.GetFlagEffect(tp,100001176)==0 end
	Duel.RegisterFlagEffect(tp,100001176,0,0,0)
end


What I did was I took this from my Cheating AI wherein you gain the advantages and not the AI and basically modified this...

local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_PHASE+PHASE_DRAW)
e1:SetCountLimit(1)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-player_ai
end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
--AI.Chat("Oh yeah, cheating feels good.")
Duel.Draw(1-player_ai,EXTRA_DRAW,REASON_RULE)
Duel.Recover(1-player_ai,LP_RECOVER,REASON_RULE)
end)
Duel.RegisterEffect(e1,player_ai)

By getting rid of that condition where it only recovers LP on your turn and changed it to the Pre-Draw Phase of each turn. You have to change "Effect.GlobalEffect()" into "Effect.CreateEffect()" and the "1-player ai" to either 0 (you) or your opponent (1), depending on whom you want to gain the advantages. I haven't tested the others like "Cannot lose the Duel by 0 LP" or "Lose by Deck Out" or changing the ATK/DEF of monsters.

Edited by user Thursday, April 23, 2020 3:32:39 AM(UTC)  | Reason: Updating Script

BananaPhone42  
#2 Posted : Wednesday, April 22, 2020 2:41:51 AM(UTC)
BananaPhone42

Rank: Advanced Member

Joined: 1/16/2018(UTC)
Posts: 190

Thanks: 13 times
Was thanked: 10 time(s) in 10 post(s)
UPDATE: Yes, the stuff from my "Cheating AI" script does indeed work with this format.
kvanir  
#3 Posted : Sunday, April 26, 2020 1:42:32 PM(UTC)
kvanir

Rank: Newbie

Joined: 12/16/2017(UTC)
Posts: 23

Was thanked: 3 time(s) in 3 post(s)
I thought about doing this as well, but bigger issue is that you can't import decks. I really like the new program, it's very polished but customization in terms of AI related stuff just isn't there. Hopefully this changes overtime. I wouldn't mind the switch.

Anyways I don't really keep up with new cards and mechanics, or the lame ass TV show... This is Konami after all. They always try to make new cards power creep. Gotta have people buying the new releases. So that's why I don't care about new cards, instead I have been making the older ones stronger and AI stupid proof.
BananaPhone42  
#4 Posted : Sunday, April 26, 2020 4:58:31 PM(UTC)
BananaPhone42

Rank: Advanced Member

Joined: 1/16/2018(UTC)
Posts: 190

Thanks: 13 times
Was thanked: 10 time(s) in 10 post(s)
Originally Posted by: kvanir Go to Quoted Post
I thought about doing this as well, but bigger issue is that you can't import decks. I really like the new program, it's very polished but customization in terms of AI related stuff just isn't there. Hopefully this changes overtime. I wouldn't mind the switch.

Anyways I don't really keep up with new cards and mechanics, or the lame ass TV show... This is Konami after all. They always try to make new cards power creep. Gotta have people buying the new releases. So that's why I don't care about new cards, instead I have been making the older ones stronger and AI stupid proof.


I don't watch much of the recent animes myself, to be honest. But the point is, I shouldn't have to modify an AI's/player's advantages through a card, NOR should said advantages suddenly swap places just because I pick a rematch and/or pick "Second to go".

I've looked everywhere in WindBot that might help me with this problem, and I ain't found anything that could help me do that (directly mod the A.I.) like YGOPercy used to do. Also, yes, you can import decks. You just need to go to the EDOPro folder, pick "deck" and insert your .ydk file into the "deck" folder.

Edited by user Sunday, April 26, 2020 5:00:26 PM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error