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-06-05 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
June 05, 2008, 01:06:44 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Current Official Servers:
#1 - 207.210.236.112:27015 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: Learning...(thought i was out of school)  (Read 48 times)
Pre-Dominance
Level 0 Beginner

Offline Offline

United States United States

Posts: 18



« on: June 04, 2008, 06:44:02 PM »

Ok, since this is my fifth day of coding, i still have a..load of questions.

Ill keep editing this post...

So all es commands are either es_x<command> <variable> <userid, attacker, etc etc>?
So if how would i name a fixed number? Like if i wanted...

es_xgetmoney amount1; (should get the players money, then store as variable "amount1"
now how would I set it up so if the variable(amount1) is equal to or greater than 14000, It makes it so when you shoot, you do 80 damage?
Logged
mobsi
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 155



« Reply #1 on: June 04, 2008, 08:07:31 PM »

well first of all
-->http://www.eventscripts.com/pages/Category:Commands
^^ thought this would help ya

"es_xset amount1 0;es_xgetmoney amount1 event_var(userid);if (server_var(amount1) >= 14000) then damage event_var(userid) 80 32 event_var(attacker)"

first of all you have to set the variable you havent got to do that if you use the wcs_tmp vars
then you get the current money of your enemy
next is checking if this amount >= 14000 and if yes then damage him with 80 dmg of type 32 (falldamage) by you

hope that helps ya greez mobsi
Logged

better the devil you know than the devil you don't
Pre-Dominance
Level 0 Beginner

Offline Offline

United States United States

Posts: 18



« Reply #2 on: June 04, 2008, 09:49:48 PM »

so how would i make it so that if there money is between 0-4000, they do 20 dmg, 4k-8k, 40dmg, 8k-12k 60dmg, and 12k-16k, 100 dmg.
Logged
Koshy
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 213



WWW
« Reply #3 on: Today at 01:16:52 AM »

so how would i make it so that if there money is between 0-4000, they do 20 dmg, 4k-8k, 40dmg, 8k-12k 60dmg, and 12k-16k, 100 dmg.

find out how much cash they have... if between x and y amount wcs_dealdamage then who and amount... bla bla bla
Logged



Pre-Dominance
Level 0 Beginner

Offline Offline

United States United States

Posts: 18



« Reply #4 on: Today at 01:20:23 AM »

Ok, since this is my fifth day of coding
Logged
seconds
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 78



« Reply #5 on: Today at 07:49:12 AM »

keep in mind that damage is a BIG deal on most servers and people that can 1 shot you per hit are quickly considered jerks for playing that race... so instec fo big numbers use smaller amouts... speaking from experience a person that does 10-15 damage per hit or more with a rifle is so OP its sickening
Logged
Pre-Dominance
Level 0 Beginner

Offline Offline

United States United States

Posts: 18



« Reply #6 on: Today at 09:03:27 AM »

forgot to mention this is for zm server 

im making a "government spy"
The more the govt pays him(the more money he has) the more motivation he has and does more damage.

I do believe thats a custom skill.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 09:59:52 AM
But i need a thread or something that has the command command for the sfx, along with a picture of it
Today at 07:53:59 AM
You cant just compile a list of effects, coz u can make basically anything. If u use the models right u can make whatever u want
Today at 12:48:21 AM
WHAT up all
June 04, 2008, 11:30:49 PM
anyone compile a list of sfx w/pictures?
June 04, 2008, 11:05:32 PM
Can someone Help me i got problem with holliday's blackguard
June 04, 2008, 10:03:01 PM
Check my 2 threads in "race ideas discussion and help"
June 04, 2008, 09:04:01 PM
I've lost my voice so I can't shout -.-
Recent
[Today at 10:31:18 AM]

[Today at 09:51:13 AM]

[Today at 09:49:07 AM]

[Today at 09:24:12 AM]

[Today at 09:03:27 AM]

[Today at 08:02:13 AM]

[Today at 07:54:19 AM]

[Today at 07:37:40 AM]

[Today at 05:02:25 AM]

[Today at 02:48:27 AM]
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.04 seconds with 26 queries.