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 2008-09-18 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
September 18, 2008, 05:12:07 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Current Official Servers:
#1 - 195.3.216.57:27400 Location US
#2 - 85.190.38.232:27015 Location Amsterdam
| Tick@100 | wcs 0.77 | Mani |
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Help with mind control skill  (Read 25 times)
Bob
Level 0 Beginner

Offline Offline

United States United States

Posts: 12



« on: September 17, 2008, 04:13:31 PM »

Can Some1 me with making a mind control skill? so that 1 enemy goes to other team untill end of round or if u can until the mind controller dies.
and also I want it so it costs 1k and a 20 sec cooldown and have it an ability or
have it so some1 can say ability.


I only got this so far
Code:
    "skill4_setting"    "es_xset wcs_maxtargets 1;es_xset wcs_radius 400|es_xset wcs_maxtargets 1;es_xset wcs_radius 450|es_xset wcs_maxtargets 1;es_xset wcs_radius 500|es_xset wcs_maxtargets 1;es_xset wcs_radius 550|es_xset wcs_maxtargets 1;es_xset wcs_radius 600"
    "racealias_mcont1"  ""
    "skill4_cmd"        "es es_xif (event_var(text) = ability) then racealias_mcont1"
    "skill4_sfx"        "0"

Plz    that would be great.
and HOLIDAY or some1 can you try to script it for me?
if you can?

Bob     
Logged
Bob
Level 0 Beginner

Offline Offline

United States United States

Posts: 12



« Reply #1 on: September 17, 2008, 07:32:49 PM »

Do you think this will work for the racealias? but i need a cooldown and all that other stuff

Code:
    "skill4_setting"    "es_xset wcs_maxtargets 1;es_xset wcs_radius 400|es_xset wcs_maxtargets 1;es_xset wcs_radius 450|es_xset wcs_maxtargets 1;es_xset wcs_radius 500|es_xset wcs_maxtargets 1;es_xset wcs_radius 550|es_xset wcs_maxtargets 1;es_xset wcs_radius 600"
    "racealias_mcont1"  "es es_xgetplayername wcs_name event_var(userid) ma_swapteam"
    "skill4_cmd"        "es es_xif (event_var(text) = ability) then racealias_mcont1"
    "skill4_sfx"        "0"
Logged
Bob
Level 0 Beginner

Offline Offline

United States United States

Posts: 12



« Reply #2 on: September 17, 2008, 07:41:42 PM »

or can this work?
without all the other stuff.

Code:
    "skill4_setting"    "es_xsetinfo wcs_chance 2|es_xsetinfo wcs_chance 4|es_xsetinfo wcs_chance 6|es_xsetinfo wcs_chance 8|es_xsetinfo wcs_chance 10"
    "racealias_mcont1"  "es es_xgetplayerteam wcs_team event_var(attacker); ma_swapteam"
    "skill4_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_mcont1"
    "skill4_sfx"        "0"
Logged
thegreatone5224
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 104




thegreatone52
thegreatone5224
« Reply #3 on: Today at 02:08:32 AM »

If you are going to make a skill like this, it'll probably be easier for you to make as an ultimate and in block style. I only say block style because it makes life easier when you need to use a lot of if statements. If you really want to make it a say ability...I suggest inserting the code in the the wcs.txt under the event player_say block. I haven't been able to get the player_say ability to work in the race_db for whatever reason.

You also need to know if you want it to happen on spawn, attack or just aim and they turn.

Attacking: Should probably do a chance here. Just get the id and make it switch teams

Spawn: Use a if statement for team selection and then select a random person with a filter for the other team. Make that person witch teams.

Ultimate: Two options really here
 - Click: Make it to the same thing as the spawn one
 - Aim: Get the id of the player you are aiming at with the est_getviewplayer command. After getting the id make the same list of commands as the spawn or click ultimates

The getplayername command only gets the name...really only useful for doing a global command to tell everyone that this person used an ability on that person. Good Luck!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 01:01:20 AM
i want admin or lvls but i have my own server to take care of right now :O
September 17, 2008, 01:34:58 AM
Does anyone want 10 free levels on my server or even admin!? if so message me

September 16, 2008, 09:25:33 PM
sry the old link doesnt work this work 100% http://warcraft-source.com/board/index.php/topic,5207.0.html
Hall of Fame
September 16, 2008, 08:28:03 PM
September 16, 2008, 04:12:25 PM
Rock the CluB!
September 16, 2008, 03:57:23 PM
Welcome to the CluB!.
Recent
[Today at 04:16:10 AM]

[Today at 02:55:34 AM]

[Today at 02:44:04 AM]

[Today at 02:08:32 AM]

[Today at 12:28:27 AM]

[September 17, 2008, 11:14:01 PM]

[September 17, 2008, 09:17:07 PM]

[September 17, 2008, 07:58:19 PM]

[September 17, 2008, 06:11:18 PM]

[September 17, 2008, 06:08:59 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.044 seconds with 28 queries.