June 26, 2019, 11:10:07 PM

Author Topic: Help at coding a skill.  (Read 3340 times)

Offline Minus

  • Level 2 Apprentice
  • **
  • Posts: 47
Help at coding a skill.
« on: October 19, 2009, 07:22:15 PM »
Okay,

First of all i will like to say that i suck at coding, and it's more a request than accually help.
This is how i want the skill to work, tell me if it's unpossible ore if i'm a stupid idiot.

Galvanize
- Hammerstorm’s awesomeness is so great that he influences nearby allies, buffing their armor and movement speed.

Can somebody code this skill for me??

Thanks,
Minus

Offline D3vil

  • Level 7 Expert
  • *****
  • Posts: 549
Re: Help at coding a skill.
« Reply #1 on: October 19, 2009, 07:28:09 PM »
That will be probably no problem for a coder ^^

Offline Vippers.Colt

  • Level 7 Expert
  • *****
  • Posts: 369
  • Country: 00
Re: Help at coding a skill.
« Reply #2 on: October 19, 2009, 07:30:52 PM »
That will be probably no problem for a coder ^^

ya i think it too

Offline Vippers.Colt

  • Level 7 Expert
  • *****
  • Posts: 369
  • Country: 00
Re: Help at coding a skill.
« Reply #3 on: October 19, 2009, 07:51:01 PM »
mna im not a coder, im just trying to help ok? i think that cannot work but here it is:
Code: [Select]
"skill1_setting"       "es_xset wcs_speed 0.5;es_xset wcs_chance 60; es_xset wcs_time 2|es_xset wcs_speed 0.45|es_xset wcs_chance 80; es_xset wcs_time 3|es_xset wcs_speed 0.40es_xset wcs_chance 90; es_xset wcs_time 3|es_xset wcs_speed 0.35es_xset wcs_chance 100; es_xset wcs_time 4"
"racealias_slow"       "es est_speed event_var(userid) server_var(wcs_speed);es es_xdelayed server_var(wcs_time) wcs_removefx speed event_var(userid)"
"racealias_vip1"       "if (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_slow"
"skill1_cmd"           "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then ma_drug event_var(userid) 1;es es_xdelayed server_var(wcs_time) ma_drug event_var(userid) 0 then racealias_vip1"
"ultimate_cooldown"    "30|20|15|10"   

thats for an ultimate, that will let the player slowed and druged, i think there can be bugs, so if you find one please tell me what can i make to fix  ;D

Zawmbee

  • Guest
Re: Help at coding a skill.
« Reply #4 on: October 19, 2009, 07:52:19 PM »
mna im not a coder, im just trying to help ok? i think that cannot work but here it is:
Code: [Select]
"skill1_setting"       "es_xset wcs_speed 0.5;es_xset wcs_chance 60; es_xset wcs_time 2|es_xset wcs_speed 0.45|es_xset wcs_chance 80; es_xset wcs_time 3|es_xset wcs_speed 0.40es_xset wcs_chance 90; es_xset wcs_time 3|es_xset wcs_speed 0.35es_xset wcs_chance 100; es_xset wcs_time 4"
"racealias_slow"       "es est_speed event_var(userid) server_var(wcs_speed);es es_xdelayed server_var(wcs_time) wcs_removefx speed event_var(userid)"
"racealias_vip1"       "if (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_slow"
"skill1_cmd"           "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then ma_drug event_var(userid) 1;es es_xdelayed server_var(wcs_time) ma_drug event_var(userid) 0 then racealias_vip1"
"ultimate_cooldown"    "30|20|15|10"   

thats for an ultimate, that will let the player slowed and druged, i think there can be bugs, so if you find one please tell me what can i make to fix  ;D

It is possible, give me about 5 - 10 minutes and I will be done...

Offline Vippers.Colt

  • Level 7 Expert
  • *****
  • Posts: 369
  • Country: 00
Re: Help at coding a skill.
« Reply #5 on: October 19, 2009, 07:54:34 PM »
ok,  ;) and when you finish tell me what i've done wrong ;D, thats my first skill lol. and i want to learn how to code :D thx
« Last Edit: October 19, 2009, 08:00:02 PM by VIPPERS Colt »

Zawmbee

  • Guest
Re: Help at coding a skill.
« Reply #6 on: October 19, 2009, 07:59:20 PM »
Put This in Your WCSultimates_db.txt file with all of your other ultimates

Code: [Select]
block wcs_galvanize
{
wcs_debuglog wcs_galvanize start
  es_xset wcs_team_target 0
  es_getplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  if (server_var(wcs_team) = 3) do
  {
    es_xset wcs_team_target 3
    es_xset wcs_team_targetn "#c!d"
  }
  if (server_var(wcs_team) = 2) do
  {
    es_xset wcs_team_target 2
    es_xset wcs_team_targetn "#t!d"
  }
  if (server_var(wcs_team_target) != "0") do
  {
    es_xset wcs_pcount 0
    es_getlivingplayercount wcs_pcount server_var(wcs_team_target)
    if (server_var(wcs_pcount) > 0) do
    {
      alias wcs_run_galvanize1 "es est_armor server_var(wcs_targetid) + server_var(ally_armor);es wcs_setfx speed server_var(wcs_targetid) + server_var(ally_speed)"
      es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es_exists ex userid server_var(wcs_targetid);if (server_var(ex) = 1) then wcs_run_galvanize1"
    }
  }
wcs_debuglog wcs_galvanize end
}

In your skill_cmd add:

es_xdoblock wcs/WCSultimates/wcs_galvanize

In your skill_setting use:

es_xset ally_armor <Number>;es_xset ally_speed <Number>;es_xset wcs_radius <Number>

**Don't forget to set your numbers!**

Offline Vippers.Colt

  • Level 7 Expert
  • *****
  • Posts: 369
  • Country: 00
Re: Help at coding a skill.
« Reply #7 on: October 19, 2009, 08:01:07 PM »
Put This in Your WCSultimates_db.txt file with all of your other ultimates

Code: [Select]
block wcs_galvanize
{
wcs_debuglog wcs_galvanize start
  es_xset wcs_team_target 0
  es_getplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  if (server_var(wcs_team) = 3) do
  {
    es_xset wcs_team_target 3
    es_xset wcs_team_targetn "#c!d"
  }
  if (server_var(wcs_team) = 2) do
  {
    es_xset wcs_team_target 2
    es_xset wcs_team_targetn "#t!d"
  }
  if (server_var(wcs_team_target) != "0") do
  {
    es_xset wcs_pcount 0
    es_getlivingplayercount wcs_pcount server_var(wcs_team_target)
    if (server_var(wcs_pcount) > 0) do
    {
      alias wcs_run_galvanize1 "es est_armor server_var(wcs_targetid) + server_var(ally_armor);es wcs_setfx speed server_var(wcs_targetid) + server_var(ally_speed)"
      es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es_exists ex userid server_var(wcs_targetid);if (server_var(ex) = 1) then wcs_run_galvanize1"
    }
  }
wcs_debuglog wcs_galvanize end
}

In your skill_cmd add:

es_xdoblock wcs/WCSultimates/wcs_galvanize

In your skill_setting use:

es_xset ally_armor <Number>;es_xset ally_speed <Number>;es_xset wcs_radius <Number>

**Don't forget to set your numbers!**


just like a god :D

Zawmbee

  • Guest
Re: Help at coding a skill.
« Reply #8 on: October 19, 2009, 08:01:52 PM »
Put This in Your WCSultimates_db.txt file with all of your other ultimates

Code: [Select]
block wcs_galvanize
{
wcs_debuglog wcs_galvanize start
  es_xset wcs_team_target 0
  es_getplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  if (server_var(wcs_team) = 3) do
  {
    es_xset wcs_team_target 3
    es_xset wcs_team_targetn "#c!d"
  }
  if (server_var(wcs_team) = 2) do
  {
    es_xset wcs_team_target 2
    es_xset wcs_team_targetn "#t!d"
  }
  if (server_var(wcs_team_target) != "0") do
  {
    es_xset wcs_pcount 0
    es_getlivingplayercount wcs_pcount server_var(wcs_team_target)
    if (server_var(wcs_pcount) > 0) do
    {
      alias wcs_run_galvanize1 "es est_armor server_var(wcs_targetid) + server_var(ally_armor);es wcs_setfx speed server_var(wcs_targetid) + server_var(ally_speed)"
      es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es_exists ex userid server_var(wcs_targetid);if (server_var(ex) = 1) then wcs_run_galvanize1"
    }
  }
wcs_debuglog wcs_galvanize end
}

In your skill_cmd add:

es_xdoblock wcs/WCSultimates/wcs_galvanize

In your skill_setting use:

es_xset ally_armor <Number>;es_xset ally_speed <Number>;es_xset wcs_radius <Number>

**Don't forget to set your numbers!**


just like a god :D

Took me 7 minutes and 1 second :P

Also post your skill in my requests section and I will fix.

Offline Vippers.Colt

  • Level 7 Expert
  • *****
  • Posts: 369
  • Country: 00
Re: Help at coding a skill.
« Reply #9 on: October 19, 2009, 08:03:07 PM »
Put This in Your WCSultimates_db.txt file with all of your other ultimates

Code: [Select]
block wcs_galvanize
{
wcs_debuglog wcs_galvanize start
  es_xset wcs_team_target 0
  es_getplayerteam wcs_team server_var(wcs_userid)
  // check teams (T=2, CT=3)
  if (server_var(wcs_team) = 3) do
  {
    es_xset wcs_team_target 3
    es_xset wcs_team_targetn "#c!d"
  }
  if (server_var(wcs_team) = 2) do
  {
    es_xset wcs_team_target 2
    es_xset wcs_team_targetn "#t!d"
  }
  if (server_var(wcs_team_target) != "0") do
  {
    es_xset wcs_pcount 0
    es_getlivingplayercount wcs_pcount server_var(wcs_team_target)
    if (server_var(wcs_pcount) > 0) do
    {
      alias wcs_run_galvanize1 "es est_armor server_var(wcs_targetid) + server_var(ally_armor);es wcs_setfx speed server_var(wcs_targetid) + server_var(ally_speed)"
      es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es_exists ex userid server_var(wcs_targetid);if (server_var(ex) = 1) then wcs_run_galvanize1"
    }
  }
wcs_debuglog wcs_galvanize end
}

In your skill_cmd add:

es_xdoblock wcs/WCSultimates/wcs_galvanize

In your skill_setting use:

es_xset ally_armor <Number>;es_xset ally_speed <Number>;es_xset wcs_radius <Number>

**Don't forget to set your numbers!**


just like a god :D

Took me 7 minutes and 1 second :P

Also post your skill in my requests section and I will fix.


ok thx :D

Offline Minus

  • Level 2 Apprentice
  • **
  • Posts: 47
Re: Help at coding a skill.
« Reply #10 on: October 19, 2009, 09:49:09 PM »
Haha! I really admire you'r coders awesomeness..
But but, i wanted it as a non-ultimate skill, just like a normal one.
But THANKS so much for the quick responds.

Now some more challenges to the great gods of coding ;D

Mighty Swing
- Hammerstorm attacks with great might, causing splash damage.

With this i mean when you attack your enemy, people around your target gets damaged.

Btw, i like this, i come with idea's, you code the shit of of them' xD

This is the race i'm coding, just if you wanna see them :D

Code: (eventscripts) [Select]
   


"247"                                  

  {

    "name"              "Hammerstorm"

    "author"            "Minus"          

    "shortdescription"  "From boyhood on, he has known nothing but battle, and his silent determination and deadly strength have earned him the epithet: Hammerstorm."              

    "required_level"    "7500"            

    "maximum_level"     "0"            

    "allow_only"        "0"

    "teamlimit"         "0"  

    "restrict_shop" "0"          

    "preloadcmd"        "0"              

    "player_spawn_cmd"  "es es_xtell event_var(userid) #multi #green You are now Hammerstorm [Race created by Minus];es est_Speed event_var(userid) 0.80"              

    "round_start_cmd"   "0"              

    "round_end_cmd"     "0"              

    "numberofskills"    "4"            

    "numberoflevels"    "8"            

    "skillnames"        "Hammer Throw|Mighty Swing|Galvanize|Brute Strength"

    "skilldescr"        "Hammerstorm throws his mighty hammer at a target enemy, stunning him completely.|Hammerstorm attacks with great might, causing splash damage|Hammerstorm’s awesomeness is so great that he influences nearby allies, buffing their armor and movement speed|Hammerstorm unleashes a savage fury within him, majorly increasing his attack damage temporarily."

    "skillcfg"          "player_attacker|player_spawn|player_spawn|player_ultimate"

                

  }

I just miss the skills, as you see xD
Thanks,
Minus
« Last Edit: October 19, 2009, 09:52:25 PM by Minus »

Offline Vippers.Colt

  • Level 7 Expert
  • *****
  • Posts: 369
  • Country: 00
Re: Help at coding a skill.
« Reply #11 on: October 19, 2009, 10:20:10 PM »
here it is, just a c/p when you hit someone you have a chance of chain light a player if hes in radius:
Code: [Select]
    "skill1_setting"    "es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 150;es_xsetinfo wcs_chance 2|es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 170;es_xsetinfo wcs_chance 6|es_xsetinfo wcs_maxtargets 3;es_xsetinfo wcs_radius 210;es_xsetinfo wcs_chance 8|es_xsetinfo wcs_maxtargets 3;es_xsetinfo wcs_radius 230;es_xsetinfo wcs_chance 10|es_xsetinfo wcs_maxtargets 3;es_xsetinfo wcs_radius 250;es_xsetinfo wcs_chance 13|es_xsetinfo wcs_maxtargets 4;es_xsetinfo wcs_radius 270;es_xsetinfo wcs_chance 15|es_xsetinfo wcs_maxtargets 4;es_xsetinfo wcs_radius 300;es_xsetinfo wcs_chance 17|es_xsetinfo wcs_maxtargets 4;es_xsetinfo wcs_radius 300;es_xsetinfo wcs_chance 20"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdoblock wcs/WCSultimates/wcs_ulti_chain;es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xtell server_var(userid) #multi #Lightgreen : #Green Lightning #Lightgreen hits the enemies and made #Green 32 damage"
    "skill1_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 3 #a 0 sprites/crystal_beam1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 10 10 41 4 255 255"


Zawmbee

  • Guest
Re: Help at coding a skill.
« Reply #12 on: October 19, 2009, 11:16:08 PM »
here it is, just a c/p when you hit someone you have a chance of chain light a player if hes in radius:
Code: [Select]
    "skill1_setting"    "es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 150;es_xsetinfo wcs_chance 2|es_xsetinfo wcs_maxtargets 1;es_xsetinfo wcs_radius 170;es_xsetinfo wcs_chance 6|es_xsetinfo wcs_maxtargets 3;es_xsetinfo wcs_radius 210;es_xsetinfo wcs_chance 8|es_xsetinfo wcs_maxtargets 3;es_xsetinfo wcs_radius 230;es_xsetinfo wcs_chance 10|es_xsetinfo wcs_maxtargets 3;es_xsetinfo wcs_radius 250;es_xsetinfo wcs_chance 13|es_xsetinfo wcs_maxtargets 4;es_xsetinfo wcs_radius 270;es_xsetinfo wcs_chance 15|es_xsetinfo wcs_maxtargets 4;es_xsetinfo wcs_radius 300;es_xsetinfo wcs_chance 17|es_xsetinfo wcs_maxtargets 4;es_xsetinfo wcs_radius 300;es_xsetinfo wcs_chance 20"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdoblock wcs/WCSultimates/wcs_ulti_chain;es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xtell server_var(userid) #multi #Lightgreen : #Green Lightning #Lightgreen hits the enemies and made #Green 32 damage"
    "skill1_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 3 #a 0 sprites/crystal_beam1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 10 10 41 4 255 255"

Not what she wants dude... but good effort... I will have it ready tomorrow... I just got busy for the moment being.

Offline Minus

  • Level 2 Apprentice
  • **
  • Posts: 47
Re: Help at coding a skill.
« Reply #13 on: October 20, 2009, 12:55:55 PM »
Accually, the stun thing is simple, and i want to make the ultimate myself. So i just need Mighty Swing and Galvanize ;D

Thanks,
Minus

Offline Minus

  • Level 2 Apprentice
  • **
  • Posts: 47
Re: Help at coding a skill.
« Reply #14 on: October 20, 2009, 01:13:37 PM »
Zawmbee, i'm really sorry to let you down but.. I'm a He not a She.
Not your fault, i know.. xD