wc3edit.net

United Warcraft 3 map hacking!
It is currently January 6th, 2009, 3:47 am

 

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Spell Condition
PostPosted: November 8th, 2008, 10:51 pm 
Offline
Newcomer

Joined: November 8th, 2008, 10:31 pm
Posts: 9
Well first time i need to say hi (damn my first post xD)
ok .. how can i make a spell to give dmg bassed on character str/agi/int , hmm something like ... x5 str in dmg or x10 agi in dmg or x4 int in dmg , for people that know like in Defi4anc3's Orpg.


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 12:19 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Code:
Custom Spell
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Firebolt (Neutral Hostile)
    Actions
        Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real((Strength of (Casting unit) (Exclude bonuses)))) x 5.00) damage of attack type Spells and damage type Normal


Try this, but remove the Condition spell, and replace witht he one you want.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 1:00 am 
Offline
Newcomer

Joined: November 8th, 2008, 10:31 pm
Posts: 9
Thanks


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 1:27 am 
Offline
Newcomer

Joined: November 8th, 2008, 10:31 pm
Posts: 9
hmm , looks that im stuck at this part

((Real((Strength of (Casting unit) (Exclude bonuses)))) x 5.00)

can't figure it out how can i add it .. its a string or ? sry but im not so good at triggers


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 1:58 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Ok, First off go to Unit in Create a New Action-> scroll down to find Damage Target

From there, click on the 500.00 and it will show up as a Arithmetic showing 1.00 + 1.00

From here, click on the left 1.00 and scroll down/find Conversion - Convert Integer to Real

It should Show Real((Point-value of Footman)) from here, click on the Point-value of Footman

Scroll up to find Hero - Hero attribute. And it should show Strength of Hero (Exlude Bonuses)

From here you can Change the Strength to Agility or Intelligence depending on the damage you would like to cause.

Hope this helps

_________________
Image


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 2:00 am 
Offline
Newcomer

Joined: November 8th, 2008, 10:31 pm
Posts: 9
yes thx but the problem comes now ... where do i type the "x5" :)


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 2:03 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
Remeber the Arithmetic part showing 1.00 + 1.00?

The left side I told you to change to The above, now we will click on the + sign, and change that to the X sign.

After that, click on the right 1.00 and change that to any variable you would like...aka 5 to multiple the Strength/Agility/Intelligence of the spell power by that number.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 2:33 am 
Offline
Newcomer

Joined: November 8th, 2008, 10:31 pm
Posts: 9
ok did it tested doesnt work ... heres the map ... tell me whats wrong plz .. :(
i maked the dmg of spell 0 from abilities i use the spell on creep and no dmg
Attachment:
custom spell x5 int.w3x


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 2:47 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
The only thing I can suggest is changing The Event to -Starts the effect of an ability, and removing the Model missle from the firebolt.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Spell Condition
PostPosted: November 9th, 2008, 2:58 am 
Offline
Newcomer

Joined: November 8th, 2008, 10:31 pm
Posts: 9
i just changed the event and now works ty :) didnt need to change model maybe to increase a litlle more the speed of missile .


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)