Costume Items!

Post Reply
Saraneth
Posts: 19
Joined: Sun Sep 02, 2012 2:15 am

Costume Items!

Post by Saraneth » Sat Jan 19, 2013 5:05 am

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!
Attachments
Costumes.rar
Bunch of .lua's!
(8.29 KiB) Downloaded 314 times

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: Costume Items!

Post by PrBlahBlahtson » Sat Jan 19, 2013 12:37 pm

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.

Saraneth
Posts: 19
Joined: Sun Sep 02, 2012 2:15 am

Re: Costume Items!

Post by Saraneth » Sat Jan 19, 2013 4:00 pm

Sweet, Thanks for the tips Pr^^!

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

Re: Costume Items!

Post by diatanato » Tue Feb 12, 2013 5:02 am

on retail, if you have worm costume, then you can't move.

Post Reply