Page 1 of 1

Costume Items!

Posted: Sat Jan 19, 2013 5:05 am
by Saraneth
I know the priority was not very high on the totem pole for this stuff, but with Galkasmash's help I decided to put these together to practice scripting. 2 items were already completed (ghost cape + mandragora belt).

4 items have issues:
1) Chocobo beret will only turn you into a blue, juvenile chocobo. I am not a great scripter so couldn't script in the egg, the timer, the movement speed + or the random costume (1 of 5 chocobos), so I set it to just the blue one. If anyone can add to this .lua I would be most grateful (or tell me how I can do it, and I'll get it done!)

2+3) Nomad moogle shield and town moogle shield - Using this will turn you into a moogle. I can't script in 'Moogle's Japery', the chance of failure or the movement speed boost, so costume is all you get.

4)Detonator belt - This belt gives you a random costume from 3 choices (bomb or clusters). I couldn't script in randomization so the costume will turn you into a black cluster.

Everything else works fine, tested it on my server and I'm pretty sure I kept the format in the .lua's correct.

I'm sorry this isn't a fantastic contribution, but I'm working my way up... slowly! lol

Have a great day!

Re: Costume Items!

Posted: Sat Jan 19, 2013 12:37 pm
by PrBlahBlahtson
Practicing the low priority stuff is how you learn the skills to do the higher priority stuff.

Re: Needing to randomize.

math.random(1,4) should produce a random integer between 1 and 4 (4 choices.) From there, it's a simple if/elseif/else or a select caseof.

Re: Costume Items!

Posted: Sat Jan 19, 2013 4:00 pm
by Saraneth
Sweet, Thanks for the tips Pr^^!

Re: Costume Items!

Posted: Tue Feb 12, 2013 5:02 am
by diatanato
on retail, if you have worm costume, then you can't move.