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-12-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 06, 2008, 12:16:12 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
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: I need a code which generates 3 values from 0 to 255 with dalias  (Read 78 times)
tintinibar
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 107



« on: July 03, 2008, 12:55:02 AM »

I want to make effects use the format of:
Code
GeSHi (eventscripts):
"es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es est_Effect 3 #a 0 sprites/glow.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) 0.5 10 20 server_var(wcs_temp1) server_var(wcs_tmp2) server_var(wcs_tmp3) 255"
 
using a random number genrator for each wcs_tmp to make the color combinations change.
Logged
Pre-Dominance
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 179



WWW
killweiser187
predom
« Reply #1 on: July 28, 2008, 04:34:04 PM »

in the beginning of the skill, in setting, do an
'es_xrand wcs_rand 1 10'
Somewhere later in the code(possibly a racealias), do if wcs_rand = 1 then es_setinfo wcs_temp <color>

Im not too good, so this might be wrong.
But i think its right
Logged

Need helÞ?

Steam:killweiser187
Msn:[email protected]                       I don't
Xfire:predom                                        think that
Clan:?WwT? Wcs/Zm mod.                   They'll read
ClanWeb:wwt-clan.info                            the side
Wizey
Level 3 Trained Apprentice
***
Offline Offline

United Kingdom

Posts: 66




eden_112
None

myServer 89.145.117.136:27015
(Warning: click connects through Steam)
« Reply #2 on: August 02, 2008, 08:56:17 PM »

i think its rand 3 10
Logged

May The Dragons Be With Us
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 09:15:37 AM]

[Today at 08:33:01 AM]

[Today at 12:26:04 AM]

[December 05, 2008, 10:26:03 PM]

[December 05, 2008, 08:10:32 PM]

[December 05, 2008, 07:51:01 PM]

[December 05, 2008, 07:33:12 PM]

[December 05, 2008, 07:11:25 PM]

[December 05, 2008, 06:44:09 PM]

[December 05, 2008, 12:14:07 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.053 seconds with 25 queries.