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-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 09:06:14 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: Generic Skills!!!  (Read 654 times)
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« on: December 19, 2011, 07:46:10 PM »

I have cooked something that you will all love (and hate because it will make duplicate races easy as pinkie pie)

A generic skill can be created and other races utilize it with possible custom parameters which is dependent on the generic skill implementation

for example, the evasion skill will accept an array of 5 floats to define its chances per level
SEE SVN DIFF
http://goo.gl/M0emY
the generic evasion skill is implemented in rainbow dash, but night elf uses it

first the generic skill is created
then each race designates a skill to use that generic skill. the race gets skillID to itself as usual, but the generic skill does all the work.

the generic skill will do all the level checking. The race engine searches for the skill level the player currently has, and redirects that level to the generic skill level amount.

WAY too ****ing easy
Code:
new Float:EvadeChance[5]={0.0,0.05,0.10,0.15,0.20};
new evasiondata=CreateArray(5,1);
SetArrayArray(evasiondata,0,EvadeChance,sizeof(EvadeChance));
SKILL_EVADE=War3_UseGenericSkill(thisRaceID,"g_evasion",evasiondata,"Evasion",_,true,_,_);
and your done, the generic skill does ALL the precautions and checks (immunity, hex) for you.


*Disclaimer: if you create copycat races out of greed to earn money, i will hunt you down
Credits to Necavi and his WCX engines, which will be possibly converted to generic skills
Credits to Glider for <insert something here>.
« Last Edit: December 20, 2011, 01:18:11 AM by Ownz » Logged

DarkEnergy
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #1 on: December 19, 2011, 09:18:03 PM »

Quote
Credits to Glider for <insert something here>.

Oh you  Grin
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #2 on: December 20, 2011, 01:13:21 AM »

no pony macro?
Logged

DarkEnergy
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #3 on: December 20, 2011, 01:32:33 AM »

Nais.
Logged

Sapere aude!
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #4 on: December 20, 2011, 05:10:23 AM »

no pony macro?

I wanted to, initially, but then I was too lazy to fire up ponibooru and look for one.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #5 on: December 20, 2011, 09:05:58 AM »

wow u only need GOOGLE
Logged

DarkEnergy
Vulpone
Full Member
***
Posts: 140



View Profile Email
« Reply #6 on: December 20, 2011, 10:39:23 AM »

Quote
I wanted to, initially, but then I was too lazy to fire up ponibooru and look for one.





And

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!