Hey guys,so I was looking at the commands "Setd" and "Getd" I understand that they turn a variable into a string,
So here's what I tried...
mes "Very well please pick what kind of gaurdian you'd like to summon.";
switch(select("-^E41B17Seekers^000000:-^E41B17Pushers^000000:-^E41B17Attackers^000000:-^E41B17Warpers^000000:-^157DECKing Spawns^000000")){
next;
case 1:
mes @name$;
setd .Seekers,"SummonType";
callfunc "Summon_Type";
case 2:
mes @name$;
setd .Pushers,"SummonType";
callfunc "Summon_Type";
setarray .Seekers[0],2680,2681,2682,2683; //Monster ID arrays
setarray .Pushers[0],2684,2685,2686,2687;
}
function script Summon_Type {
for(set .@i,0; .@i<getarraysize(getd("SummonType")); set .@i,.@i+1)
set .@menu$, .@menu$+strmobinfo(1,getd("SummonType")+[.@i])+" CM Cost- "+getd("SummonType")+[.@i]+" Point Cost- "+getd("SummonType")+[.@i]+":";
set .@selected,select(.@menu$)-1;
So,what I was aiming for,was to set the array names to one common name,so I didn't have to use a bunch of functions,I thought the best way to do this would be using the setd/getd,but the script isn't quite working right.Can anyone explain what I'm doing wrong and possibly give a clear example of the setd/getd (I tried the wiki one but I didn't quite understand it)
P.S: Sorry if this comes off as confusing,it's kinda hard to convey what I'm sorry.
Question
Pavi
Hey guys,so I was looking at the commands "Setd" and "Getd" I understand that they turn a variable into a string,
So here's what I tried...
So,what I was aiming for,was to set the array names to one common name,so I didn't have to use a bunch of functions,I thought the best way to do this would be using the setd/getd,but the script isn't quite working right.Can anyone explain what I'm doing wrong and possibly give a clear example of the setd/getd (I tried the wiki one but I didn't quite understand it)
P.S: Sorry if this comes off as confusing,it's kinda hard to convey what I'm sorry.
Edited by PaviLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.