Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-08-10 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Help with my race (Newcomer)  (Read 164 times)

KataKlysme

  • Level 0 Beginner
  • Posts: 9
  • <3 WCS :)
Help with my race (Newcomer)
« on: August 01, 2010, 08:19:37 AM »
Hi there,

I just started coding today at 2 oclock AM :P and I wondered, what's wrong?! It tells me ingame that I reached max level for this game and I don't start with only a knife.
BTW I didn't find any longjump codes so I wrote 0 for now
Here it is!:

­­
Code: [Select]
"5" // RaceID
  {
    "name"              "Ninja" // RaceName
    "author"            "KataKlysme" // RaceAuthor
    "shortdescription"  "A swift ninja" // RaceShortDescription
    "required_level"    "0" // RaceRequiredLevel
    "maximum_level"     "0" // RaceMaximumLevel
    "allow_only"        "0" // PrivateRaceSettings
    "teamlimit"         "0" // Teamlimit
    "preloadcmd"        "0" // PreloadedCommands
    "player_spawn_cmd"  "0" // PlayerSpawnCommands
    "round_start_cmd"   "es est_RestrictAll event_var(userid);es est_UnRestrict event_var(userid) weapon_knife;es est_give event_var(userid) weapon_knife"" // RoundStartCommands
    "round_end_cmd"     "0" // RoundEndCommands
    "numberofskills"    "4" // NumberOfSkills
    "numberoflevels"    "6" // NumberOfLevels
    "skillnames"        "Shadow Cloak|Assasin's Experiment|Ghost Marchers|Assasin's Touch" // SkillNames [Divided By "|"s]
    "skilldescr"        "Invisibility|Health|Speed|Long Jump(Not Working)" // SkillDescriptions [Divided By "|"s]
    "skillcfg"          "player_spawn|player_spawn|player_spawn|player_spawn" // SkillConfigs [Divided By "|"s]

    "skill1_setting"    "es_xset wcs_invis 155;es_xset wcs_alpha 50|es_xset wcs_invis 145;es_xset wcs_alpha 60|es_xset wcs_invis 123;es_xset wcs_alpha 80|es_xset wcs_invis 115;es_xset wcs_alpha 90|es_xset wcs_invis 90;es_xset wcs_alpha 110|es_xset wcs_invis 85;es_xset wcs_alpha 120"
    "skill1_cmd"        "es_xcopy wcs_tmp wcs_invis;es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp);es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1;wcs_getlanguage wcs_lng wcs_lng_r_invis;es_tell event_var(userid) #multi server_var(wcs_lng)"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xset wcs_addhealth 15|es_xset wcs_addhealth 25|es_xset wcs_addhealth 35|es_xset wcs_addhealth 50"
    "skill2_cmd"        "es est_Health event_var(userid) + server_var(wcs_addhealth);es_tell event_var(userid) #multi #green[#lightgreenMagical Sanction#green] #defaultYou got server_var(wcs_addhealth) extra from your last experiments."
    "skill2_sfx"        "0"

    "skill3_setting" "es_xset wcs_speed 1.2|es_xset wcs_speed 1.3|es_xset wcs_speed 1.4|es_xset wcs_speed 1.5|es_xset wcs_speed 1.6|es_xset wcs_speed 1.7"
    "skill3_cmd" "es_tell event_var(userid) #multi #greenYour speed is now server_var(wcs_speed).;es_keygetvalue wcs_tmp WCSuserdata event_var(userid) speed;if (server_var(wcs_speed) > server_var(wcs_tmp)) then es est_Speed event_var(userid) server_var(wcs_speed);if (server_var(wcs_speed) > server_var(wcs_tmp)) then es_xkeysetvalue WCSuserdata event_var(userid) speed server_var(wcs_speed)"
    "skill3_sfx" "0"

    "skill4_setting" "0"
    "skill4_cmd" "0"
    "skill4_sfx" "0"
}


Than
« Last Edit: August 01, 2010, 08:32:04 AM by KataKlysme »

-SJ. Mr.BrightSide

  • Level 3 Trained Apprentice
  • Posts: 75
Re: Help with my race (Newcomer)
« Reply #1 on: August 01, 2010, 08:30:50 AM »
For long jump just look in shopmenu and just recode it so it for a race jm knmy iPod so I can't  ;D



KataKlysme

  • Level 0 Beginner
  • Posts: 9
  • <3 WCS :)
Re: Help with my race (Newcomer)
« Reply #2 on: August 01, 2010, 08:38:29 AM »
Cool, but, could somebody explain me why isn't my things working? Like, when I do spendskills, it says I reached max level already, and I don't spawn with only a knife.

Rhalp! =D
Thx

MiB

  • WCS Custom Coder
  • Level 7 Expert
  • Posts: 948
  • Country:
Re: Help with my race (Newcomer)
« Reply #3 on: August 01, 2010, 08:41:28 AM »
First put the round_start stuff in the player_spawn_cmd then remove the extra quote.

KataKlysme

  • Level 0 Beginner
  • Posts: 9
  • <3 WCS :)
Re: Help with my race (Newcomer)
« Reply #4 on: August 01, 2010, 04:34:14 PM »
So It should be like that?

Code: [Select]

"5" // RaceID
  {
    "name"              "Ninja" // RaceName
    "author"            "KataKlysme" // RaceAuthor
    "shortdescription"  "A swift ninja" // RaceShortDescription
    "required_level"    "0" // RaceRequiredLevel
    "maximum_level"     "0" // RaceMaximumLevel
    "allow_only"        "0" // PrivateRaceSettings
    "teamlimit"         "0" // Teamlimit
    "preloadcmd"        "0" // PreloadedCommands
    "player_spawn_cmd"  "es est_RestrictAll event_var(userid);es est_UnRestrict event_var(userid) weapon_knife;es est_give event_var(userid) weapon_knife" // PlayerSpawnCommands
    "round_start_cmd"   "0" // RoundStartCommands
    "round_end_cmd"     "0" // RoundEndCommands
    "numberofskills"    "4" // NumberOfSkills
    "numberoflevels"    "6" // NumberOfLevels
    "skillnames"        "Shadow Cloak|Assasin's Experiment|Ghost Marchers|Assasin's Touch" // SkillNames [Divided By "|"s]
    "skilldescr"        "Invisibility|Health|Speed|Long Jump(Not Working)" // SkillDescriptions [Divided By "|"s]
    "skillcfg"          "player_spawn|player_spawn|player_spawn|player_spawn" // SkillConfigs [Divided By "|"s]

    "skill1_setting"    "es_xset wcs_invis 155;es_xset wcs_alpha 50|es_xset wcs_invis 145;es_xset wcs_alpha 60|es_xset wcs_invis 123;es_xset wcs_alpha 80|es_xset wcs_invis 115;es_xset wcs_alpha 90|es_xset wcs_invis 90;es_xset wcs_alpha 110|es_xset wcs_invis 85;es_xset wcs_alpha 120"
    "skill1_cmd"        "es_xcopy wcs_tmp wcs_invis;es_xmath wcs_tmp float;es_xmath wcs_tmp / -2.55;es_xmath wcs_tmp + 100;es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0;es_keysetvalue WCSuserdata event_var(userid) invisp server_var(wcs_tmp);es est_setplayercolor event_var(userid) 255 255 255 server_var(wcs_invis) 1;wcs_getlanguage wcs_lng wcs_lng_r_invis;es_tell event_var(userid) #multi server_var(wcs_lng)"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xset wcs_addhealth 15|es_xset wcs_addhealth 25|es_xset wcs_addhealth 35|es_xset wcs_addhealth 50"
    "skill2_cmd"        "es est_Health event_var(userid) + server_var(wcs_addhealth);es_tell event_var(userid) #multi #green[#lightgreenMagical Sanction#green] #defaultYou got server_var(wcs_addhealth) extra from your last experiments."
    "skill2_sfx"        "0"

    "skill3_setting" "es_xset wcs_speed 1.2|es_xset wcs_speed 1.3|es_xset wcs_speed 1.4|es_xset wcs_speed 1.5|es_xset wcs_speed 1.6|es_xset wcs_speed 1.7"
    "skill3_cmd" "es_tell event_var(userid) #multi #greenYour speed is now server_var(wcs_speed).;es_keygetvalue wcs_tmp WCSuserdata event_var(userid) speed;if (server_var(wcs_speed) > server_var(wcs_tmp)) then es est_Speed event_var(userid) server_var(wcs_speed);if (server_var(wcs_speed) > server_var(wcs_tmp)) then es_xkeysetvalue WCSuserdata event_var(userid) speed server_var(wcs_speed)"
    "skill3_sfx" "0"

    "skill4_setting" "0"
    "skill4_cmd" "0"
    "skill4_sfx" "0"
}

[code\]

MiB

  • WCS Custom Coder
  • Level 7 Expert
  • Posts: 948
  • Country:
Re: Help with my race (Newcomer)
« Reply #5 on: August 01, 2010, 05:15:41 PM »
Yes.

KataKlysme

  • Level 0 Beginner
  • Posts: 9
  • <3 WCS :)
Re: Help with my race (Newcomer)
« Reply #6 on: August 01, 2010, 09:43:27 PM »
Ok, but can you tell me why when I choose the race, I write spendskills to use my skillpoints, and it says me that I reached the max level for this race, and it is level 0.

Scyther

  • Level 3 Trained Apprentice
  • Posts: 69
  • <3 WCS :)
Re: Help with my race (Newcomer)
« Reply #7 on: August 02, 2010, 12:45:53 PM »
Code: [Select]
    "skill4_setting"    "es_xsetinfo wcs_multiplier 1.2|es_xsetinfo wcs_multiplier 1.3|es_xsetinfo wcs_multiplier 1.4"
    "skill4_cmd"        "es es_xkeysetvalue WCSuserdata event_var(userid) longjump server_var(wcs_multiplier);es_tell event_var(userid) #multi #greenLongJump #lightgreenactivated."
    "skill4_sfx"        "0"

Higher multiplier = jump further, its Longjump as a skill.
Ill read through the race properly and see if i work out whats wrong.

Edit : skill2 only has 4 levels and i dont know if you intended it to be like that or if it matters but you wanna make it 6? like i said, no idea if it matters.

Edit2: also try resetting the race if your admin, sometimes mine used to glitch and say i was max level, so just yeah, reset yourself for that race while your on it or try typing resetskills and then yeah, might work :/
« Last Edit: August 02, 2010, 12:49:58 PM by Scyther »

KataKlysme

  • Level 0 Beginner
  • Posts: 9
  • <3 WCS :)
Re: Help with my race (Newcomer)
« Reply #8 on: August 02, 2010, 01:29:13 PM »
Cool, I'll try that out, thanx, BTW for the second skill I just deleted to much, and can you explain me what Alpha is in the invisibility? I just took the code line and changed some random stuff :P

EDIT: Why is it wcs_xsetINFO instead of just xset?
« Last Edit: August 02, 2010, 01:31:58 PM by KataKlysme »

Scyther

  • Level 3 Trained Apprentice
  • Posts: 69
  • <3 WCS :)
Re: Help with my race (Newcomer)
« Reply #9 on: August 04, 2010, 11:06:11 PM »
The alpha stuff i honestly have no idea, usually when its in a skill i make it random or delete it, but if you want try to make it correct based on what it was on the original skill. Why is it setinfo? No idea but it works ^^