Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 03:22:00 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Correct Syntaxes  (Read 242 times)
hrimfisk
Newbie
*
Posts: 1


View Profile Email
« on: January 31, 2012, 03:01:05 PM »

Hi im trying to code races in sourcepawn but im having issues determining if im using the correct syntaxes for things like freezing or invis. Ive looked all around online but couldnt find something with what seemed like the proper syntaxes. Sorry if this is the wrong forum i didnt know were else to go.

The syntaxes im using for freeze and invis are freeze and alpha, all the other code i looked at seemed to make up their own syntaxes. Do i just create one like a variable?
Logged
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #1 on: January 31, 2012, 03:08:24 PM »

Hi im trying to code races in sourcepawn but im having issues determining if im using the correct syntaxes for things like freezing or invis. Ive looked all around online but couldnt find something with what seemed like the proper syntaxes. Sorry if this is the wrong forum i didnt know were else to go.

The syntaxes im using for freeze and invis are freeze and alpha, all the other code i looked at seemed to make up their own syntaxes. Do i just create one like a variable?

i don't really get it.
if you want to handle basic buffing, the buff engine is for you.

for a list of buffs check out the enumeration W3Buff in constants.inc for a list of buffs
if you wanna know how buffs are typically applied, check out the races that are delivered.



the best way to learn is to look at the existing races and via trail & error.
but in a nutshell:
if it looks like C++, it probably is. go with c++ syntax, you won't get hurt. and the rest can be compared

cheers
Logged

Sapere aude!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!