View Single Post
Old Aug 28th, 2011, 10:27:25 PM   #2
Charmander
Mission Complete
is a Contributor to Smogon
 
Charmander's Avatar
 
Join Date: Feb 2010
Posts: 2,690
Great Falls, VA
Default

you know I have to contribute more to this so...

here's more on my PO to C&C script. I guess you can kind of call this a walk through
so let's say this is the set we want to use:

Mienfoo (M) @ Eviolite
Trait: Regenerator
EVs: 156 Atk / 196 Def / 156 Spd
Jolly Nature (+Spd, -SAtk)
- Hi Jump Kick
- Drain Punch
- U-turn
- Knock Off


we press f12 and open something that looks like this
...

and paste our set. Also, you have a choice to give it a name. If you do, it'll use that as the name (eg name: Sweeper). If you don't, it'll use the item name (this is useful for Choice item Pokemon, Life Orb sweepers, and others).
After we've done this, it'll look like this
...


Click "Done" and you're done! It will return

[SET]
name: Best Name Ever
move 1: Hi Jump Kick
move 2: Drain Punch
move 3: U-turn
move 4: Knock Off
item: Eviolite
ability: Regenerator
nature: Jolly
evs: 156 Atk / 196 Def / 156 Spe

Also, here is another script that formats stuff in C&C format. This is extremely simple, so I won't really give any instructions, but here is a screenshot
...


and here is the script
Code:
menu menubar,channel,query {
  Set Formatter by Charmander : dialog -md Set Set
}
dialog Set {
  title "Set Formatter by Charmander"
  size -1 -1 317 270
  edit "Set Name", 2, 10 46 300 20
  edit "Move 1", 1, 10 62 300 20
  edit "Move 2", 3, 10 78 300 20
  edit "Move 3", 4, 10 94 300 20
  edit "Move 4", 5, 10 110 300 20
  edit "Item", 6, 10 126 300 20
  edit "Ability", 7, 10 142 300 20
  edit "Nature", 8, 10 158 300 20
  edit "EVs", 9, 10 174 300 20
  edit "IVs", 10, 10 190 300 20
  text "[SET]", 11, 10 26 300 20, center
  button "Make My Set!", 12, 9 217 299 40, ok
  text "If you want to exclude IVs/Ability, leave them untouched.", 25, 12 6 290 17
}
on *:dialog:Set:sclick:12: {
  echo -a [SET]
  echo -a name: $did(Set,2)
  echo -a move 1: $did(Set,1)
  echo -a move 2: $did(Set,3)
  echo -a move 3: $did(Set,4)
  echo -a move 4: $did(Set,5)
  echo -a item: $did(Set,6)
  if ($did(Set,7) != Ability) {
    echo -a ability: $did(Set,7)
  }
  echo -a nature: $did(Set,8)
  echo -a evs: $did(Set,9)
  if ($did(Set,10) != IVs) {
    echo -a ivs: $did(Set,10)
  }
}
edit: also #scripting on irc for general help
__________________
Charmander is offline   Reply With Quote