At least I tried...

Here is my Zod sword script made with help from Urza, Tricxta and Calebponessa. Can someone fix this up for me because I’m a noob…
oh btw It’s supposed to make 0.5 damage.

if(playerenters){
  message Touch Me!;
  setimg benjiro_sword1icon.png;
}
if(playertouchsme){
  toweapons Swords/Training Sword;
}
if (weaponfired){
  if (this.inuse=0){
    this.inuse=1;
    setsword ,1;
    replaceani idle,noddess_sword1-idle;
    replaceani walk,noddess_sword1-walk;
    replaceani sword,noddess_sword1-attack;
  }
}
else {
  replaceani idle,idle;
  replaceani walk,walk;
  replaceani sword,sword;
}
if (actionSwords/TrainingSword){
  if (playerhearts>0){
    playerhearts-=2;
    setani hurt,;
  }
}
if (weaponfired){
  if (this.inuse=0){
    this.inuse=1;
    setsword ,1;
    replaceani idle,noddess_sword1-idle;
    replaceani walk,noddess_sword1-walk;
    replaceani sword,noddess_sword1-attack;
    setani noddess_sword1-idle,;
   }
  else {
    this.inuse=0;
    replaceani idle,idle;
    replaceani walk,walk;
    setani idle,;
    setsword ,0;
  }
}

if (keypressed && keydown2(keycode(s),true) && this.inuse==1){
  this.ready=1;
  if (this.ready==0) setani noddess_sword1-attack,;
  while (keydown2(keycode(s),true))sleep .05;
  this.ready=0;
}

this uses the default hit detection. To make it work, others sword gani must be set to noddess_sword1-attack so essentially you can only use one sword using this current gani… use params to change the image in the gani then your still limited to the same gani but different swords. Zelda games got away with one sword gani (okay maybe 2…spin :|) but yer if you want to use spears and shit as well your going to need a different approach such as triggeractions.

[QUOTE=tricxta;59200]

if (weaponfired){
  if (this.inuse=0){
    this.inuse=1;
    setsword ,1;
    replaceani idle,noddess_sword1-idle;
    replaceani walk,noddess_sword1-walk;
    replaceani sword,noddess_sword1-attack;
    setani noddess_sword1-idle,;
   }
  else {
    this.inuse=0;
    replaceani idle,idle;
    replaceani walk,walk;
    setani idle,;
    setsword ,0;
  }
}

if (keypressed && keydown2(keycode(s),true) && this.inuse==1){
  this.ready=1;
  if (this.ready==0) setani noddess_sword1-attack,;
  while (keydown2(keycode(s),true))sleep .05;
  this.ready=0;
}

this uses the default hit detection. To make it work, others sword gani must be set to noddess_sword1-attack so essentially you can only use one sword using this current gani… use params to change the image in the gani then your still limited to the same gani but different swords. Zelda games got away with one sword gani (okay maybe 2…spin :|) but yer if you want to use spears and shit as well your going to need a different approach such as triggeractions.
[/QUOTE]

:frowning: NEVER EVER WORKS!!! IT AIN’T WORKING

your probably not using the same sword gani but not that i think about it… that script i made was fucking stupid. Here use this instead, should work with no probz IF you use the same fucking sword gani!!!

if (playerenters){
  if (!isweapon)toweapons Noobling Sword;
  replaceani sword,noddess_sword1-attack;
}

if (weaponfired){
  if (this.inuse=0){
    this.inuse=1;
    setsword ,1;
    replaceani idle,noddess_sword1-idle;
    replaceani walk,noddess_sword1-walk;
    setani noddess_sword1-idle,;
   }
  else {
    this.inuse=0;
    replaceani idle,idle;
    replaceani walk,walk;
    setani idle,;
    setsword ,0;
  }
}

The script is fixed!
Well before we close my flapping crap does anyone know how to add multiple bigmaps online?

if (playerenters){
  if (startswith(somelevels_,#L))setmap ,onebigmap.txt,x,y;
  else if (startswith(somemorelevels_,#L))setmap ,twobigmaps.txt,x,y;
}