Commit 95e77491 authored by VanillaSalt's avatar VanillaSalt

update

parent 931c05a2
--古代の歯車機械
--Name change is temporary, needs a proper announce function
function c18486927.initial_effect(c)
--declare card
local e1=Effect.CreateEffect(c)
......@@ -62,13 +61,7 @@ function c18486927.actcon(e)
end
function c18486927.nametg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
--Gadget Order: Green, Red, Yellow, Gold, Silver, Soldier, Hauler, Arms, Driver
local nt={aux.Stringid(18486927,1),aux.Stringid(18486927,2),aux.Stringid(18486927,3),aux.Stringid(18486927,4),aux.Stringid(18486927,5),
aux.Stringid(18486927,6),aux.Stringid(18486927,7),aux.Stringid(18486927,8),aux.Stringid(18486927,9)}
local ct={41172955,86445415,13839120,55010259,29021114,86281779,28002611,47985614,54497620}
Duel.Hint(HINT_SELECTMSG,tp,564)
local opt=Duel.SelectOption(tp,nt[1],nt[2],nt[3],nt[4],nt[5],nt[6],nt[7],nt[8],nt[9])+1
local ac=ct[opt]
local ac=Duel.AnnounceCardFilter(tp,0x51,OPCODE_ISSETCARD,18486927,OPCODE_ISCODE,OPCODE_NOT,OPCODE_AND)
Duel.SetTargetParam(ac)
Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,ANNOUNCE_CARD)
end
......
......@@ -611,6 +611,20 @@ CHINT_RACE =3
CHINT_ATTRIBUTE =4
CHINT_NUMBER =5
CHINT_DESC =6
--Opcode
OPCODE_ADD =0x40000000
OPCODE_SUB =0x40000001
OPCODE_MUL =0x40000002
OPCODE_DIV =0x40000003
OPCODE_AND =0x40000004
OPCODE_OR =0x40000005
OPCODE_NEG =0x40000006
OPCODE_NOT =0x40000007
OPCODE_ISCODE =0x40000100
OPCODE_ISSETCARD =0x40000101
OPCODE_ISTYPE =0x40000102
OPCODE_ISRACE =0x40000103
OPCODE_ISATTRIBUTE =0x40000104
--Hint Message --提示消息,显示在窗口的上面
HINTMSG_RELEASE =500 --请选择要解放的卡
HINTMSG_DISCARD =501 --请选择要丢弃的手牌
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment