wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 05-04-2006, 05:48 AM   #1
Linera
Banned
 
Linera's Avatar
 
Join Date: Oct 2004
Posts: 851

Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)

Send a message via MSN to Linera
Default setting armor

How can I set armor in-game?
Linera is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 05-04-2006, 05:53 AM   #2
kaldoreielf
User
 
kaldoreielf's Avatar
 
Join Date: Mar 2006
Posts: 179

Submissions (2)

kaldoreielf has a little shameless behaviour in the past (-5)

Send a message via MSN to kaldoreielf
Default

What do you mean? Is it an item or a model or what? Please explain more.
__________________
My Warcraft Log - Please leave some comments!

Funny Warcraft Pictures Gallery Latest Picture: Up-close Blood Mage
kaldoreielf is offline   Reply With Quote
Old 05-04-2006, 05:54 AM   #3
Mystic Prophet
User
 
Mystic Prophet's Avatar
 
Join Date: Nov 2005
Posts: 375

Mystic Prophet is on a distinguished road (16)

Send a message via AIM to Mystic Prophet Send a message via MSN to Mystic Prophet
Default

well there's a function on WEU that lets you both raise and reduce armor. I use it for my stat based avatar spell.

Trigger:
Actions
Advanced - for (triggering unit) increase defense by 1

other than using WEU. i dont know of any ways but using upgrades. which would only work if you're not going to use it very often.

this is the converted version of that line

Collapse JASS:
function Trig_armor_set_Actions takes nothing returns nothing
    call ChangeDefense( GetTriggerUnit(), true, 1 )
endfunction

//===========================================================================
function InitTrig_armor_set takes nothing returns nothing
    set gg_trg_armor_set = CreateTrigger(  )
    call TriggerAddAction( gg_trg_armor_set, function Trig_armor_set_Actions )
endfunction


Last edited by Mystic Prophet : 05-04-2006 at 06:01 AM.
Mystic Prophet is offline   Reply With Quote
Old 05-04-2006, 06:00 AM   #4
Linera
Banned
 
Linera's Avatar
 
Join Date: Oct 2004
Posts: 851

Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)

Send a message via MSN to Linera
Default

@kaldoreielf - I'm talking about a unit's armor.

@Mystic Prophet - I'll no longer use WEU except for the huge map sizes(i.e. 480x480 maps)
Linera is offline   Reply With Quote
Old 05-04-2006, 06:20 AM   #5
Mystic Prophet
User
 
Mystic Prophet's Avatar
 
Join Date: Nov 2005
Posts: 375

Mystic Prophet is on a distinguished road (16)

Send a message via AIM to Mystic Prophet Send a message via MSN to Mystic Prophet
Default

Well all the other options I can think of all have downsides to them.

using positive and negative armor upgrades (would need a lot of levels)

swapping out an undroppable item in inventory (unit would need inventory ability and would take up a slot)

or if you didnt give attack speed for agility you could simply set that with triggers.

so this is pretty much out of my league for any hands free armor changing.
Mystic Prophet is offline   Reply With Quote
Old 05-04-2006, 06:30 AM   #6
Linera
Banned
 
Linera's Avatar
 
Join Date: Oct 2004
Posts: 851

Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)

Send a message via MSN to Linera
Default

I renamed agility, strength, and intellect to display certain info about their character.
Linera is offline   Reply With Quote
Old 05-04-2006, 06:37 AM   #7
harel
User
 
harel's Avatar
 
Join Date: Nov 2003
Posts: 167

Submissions (2)

harel is on a distinguished road (22)

Send a message via MSN to harel
Default

Why dont you use the armor ability (i think), it is an item ability.
This ability dont show any icon, it is stacable and you can use negative value to decrease armor if you want (sorry for not giving a better help i'm far from the editor).
harel is offline   Reply With Quote
Old 05-04-2006, 06:50 AM   #8
Linera
Banned
 
Linera's Avatar
 
Join Date: Oct 2004
Posts: 851

Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)

Send a message via MSN to Linera
Default

well, armor can get as high as like 5000 maybe 6000 even
so having an armor ability with 6000 levels so i can increase and decrease armor at will is not gonna work plus that will have it look like:

0 +125
Linera is offline   Reply With Quote
Old 05-04-2006, 07:01 AM   #9
harel
User
 
harel's Avatar
 
Join Date: Nov 2003
Posts: 167

Submissions (2)

harel is on a distinguished road (22)

Send a message via MSN to harel
Default

you can have few abilities +1 +5 +10 +20 +50 +100 +500
and mathmaticly set the ability for what you need (i learnd that from the bonus mod made by waadar)
harel is offline   Reply With Quote
Old 05-04-2006, 07:02 AM   #10
Linera
Banned
 
Linera's Avatar
 
Join Date: Oct 2004
Posts: 851

Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)

Send a message via MSN to Linera
Default

what bonus mod?
Linera is offline   Reply With Quote
Old 05-04-2006, 07:14 AM   #11
vile
n00b map maker
 
Join Date: Jul 2005
Posts: 599

Submissions (5)

vile will become famous soon enough (60)vile will become famous soon enough (60)vile will become famous soon enough (60)

Send a message via ICQ to vile Send a message via AIM to vile Send a message via MSN to vile
Default

Your only option is using the Item Armor bonus.

That's what the bonus mod uses. It's a mod that lets you change a unit's stats. Check in the resources section.
__________________
Check out my maps:
Age of Myths
Deadly Games
Magic & Steel New Project is kicking in!

TEASER TRAILER
vile is offline   Reply With Quote
Old 05-04-2006, 07:14 AM   #12
harel
User
 
harel's Avatar
 
Join Date: Nov 2003
Posts: 167

Submissions (2)

harel is on a distinguished road (22)

Send a message via MSN to harel
Default

search for threads mad by waadar regarding his spell book or any other downloadeble stuff.
I am working on a mac now (under system 9) so i cant see many atuchments sorry.
harel is offline   Reply With Quote
Old 05-04-2006, 07:19 AM   #13
Linera
Banned
 
Linera's Avatar
 
Join Date: Oct 2004
Posts: 851

Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)Linera seems to be the reincarnation of TerranUp16 (-62)

Send a message via MSN to Linera
Default

the tread on his bonus mod i found has the attachment removed completly
Linera is offline   Reply With Quote
Old 05-04-2006, 10:21 AM   #14
Blade.dk
.
 
Blade.dk's Avatar


Respected User
 
Join Date: May 2005
Posts: 1,990

Submissions (15)

Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)Blade.dk is a glorious beacon of light (418)

Approved Map: Azeroth's Arcane ArenaSpell session 01 winner

Send a message via MSN to Blade.dk
Default

WEU uses BonusMod for changing armor, and using abilities of +1, +20, +50 etc. like harel suggested would not really work, you need the power of two.

http://www.wc3jass.com/viewtopic.php?t=202
__________________
Spell Making Course: Part 1: Making a simple stomp spell.
I wonder if I'll ever finish part 2.
Blade.dk is offline   Reply With Quote
Old 05-04-2006, 12:27 PM   #15
The)TideHunter(
SpeakerGames.com
 
The)TideHunter('s Avatar
 
Join Date: Mar 2006
Posts: 1,328

Submissions (1)

The)TideHunter( is a jewel in the rough (160)The)TideHunter( is a jewel in the rough (160)

Send a message via MSN to The)TideHunter(
Default

Well, i made a system for you Linera to add damage without the +(extra damage). You could use it the for armor too the way this does. Its just that at the moment i cant put negative integers into the editor, so i cant decrease damage, but when you find this, the functions are all ready made.

Heres the thread:
http://wc3campaigns.net/showthread.php?t=82823
and heres the post:
http://wc3campaigns.net/showpost.php...7&postcount=12
__________________
Big plans...

Last edited by The)TideHunter( : 05-04-2006 at 12:31 PM.
The)TideHunter( is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 11:02 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services