Notices

Go Back   FileFront Forums > The Games! > Warcraft Series > Warcraft III > WC3 Modding, Mapping and Editing

Remember Me?

WC3 Modding, Mapping and Editing
Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot!

Reply
 
LinkBack Thread Tools Display Modes
Old April 5th, 2006   #1
I'm too cool to Post
 
Join Date: April 5th, 2006
Status: Available
4 posts, 0 likes.
Rep Power: 0
unauthorized is a n00b
Default Trouble with custom spell activation

Ok here's what I do :
Quote:
MagmaShieldAddArmor
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Magma Shield (custom)
Actions
Unit - Create 1 ScapeGoat (no auto remove) for Neutral Passive at (Random point in (Region centered at (Position of (Triggering unit)) with size (200.00, 200.00))) facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add DebugAddArmor(1-15) to (Last created unit)
For each (Integer A) from 1 to ((Level of Magma Shield (custom) for (Casting unit)) - 1), do (Actions)
Loop - Actions
Unit - Increase level of DebugAddArmor(1-15) for (Last created unit)
<loop ends here>
Wait 0.10 seconds
Unit - Order (Last created unit) to Human Priest - Inner Fire (Triggering unit)
Not too pretty isn't it?
So what I am trying to do is make an improved version of Immolation with armor increasment/level. When the Magma Shield is activated the armor is added correctly but very soon after both effects are lost and my Magma Shield is shown as inactive. My deactivation triger is not made yet and I see no reason for such a thing to happen.
Magma Shield is based on immolation and DebugAddArmor is based on Inner Fire.
I would realy appreciate if you could tell me where am I going wrong.
unauthorized is offline   Reply With Quote
Old April 5th, 2006   #2
No User title
 
Eleandor's Avatar
 
Join Date: July 27th, 2004
Location: I wish I knew it myself...
Status: Eating
543 posts, 0 likes.
Rep Power: 24
Eleandor is a n00b
Default Re: Trouble with custom spell activation

so you're sure it's not marked inactive because you ran out of mana, or went past the "minimum mana" immolation needs?

I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones - Albert Einstein
Eleandor is offline   Reply With Quote
Old April 6th, 2006   #3
I'm too cool to Post
 
Join Date: April 5th, 2006
Status: Available
4 posts, 0 likes.
Rep Power: 0
unauthorized is a n00b
Default Re: Trouble with custom spell activation

Yes I am sure I checked all the basic can-go-wrong things. Furthermore the AddArmor spell would still not disappear when the mana reaches 0 since it should last forever until removed and I as I said there is no trigger to remove it. The spell requires 0.5 mana in level 1 and my caster had 20/30 down by the 10mp activation requirement.
unauthorized is offline   Reply With Quote
Old April 10th, 2006   #4
Certified Danger to Society
 
InnerGemini's Avatar
 
Join Date: October 23rd, 2004
Location: Wouldn't you like to know?
Status: Omnipotent, Omnipresent, & Omniscient
59 posts, 0 likes.
Rep Power: 0
InnerGemini is a n00b
Send a message via Yahoo to InnerGemini
Default Re: Trouble with custom spell activation

Hmm, I did a very quick and very dirty check to see how this would work, and it seemed to work fine when I did it. The only thing I changed in your triggerwork is I changed the event to 'Unit - A unit Starts the effect of an ability'. I had both immolation and the inner fire buff at the same time, and since i didn't set up a counter-trigger, inner fire stayed on after I turned off immolation.

The only thing I could suggest is to do as Eleandor suggested, again if need be. Check all the stats, inner fire's duration, on how much buffer mana needed, mana drained, so on and so on.

Also, check to see if any other triggers you have may be negating or taking off your effects. Making a dummy map with just the hero and the ability (and related triggerwork) would be a good way to test for that.

Wish I could be of more help. Everything you outlined looks perfect from a technical standpoint, so I can't possibly envision the trigger being the problem. If you want more details on what exactly I did to make my test work, drop a line and ask.

Good luck and peace out.



InnerGemini is offline   Reply With Quote
Old April 12th, 2006   #5
I'm too cool to Post
 
Join Date: April 5th, 2006
Status: Available
4 posts, 0 likes.
Rep Power: 0
unauthorized is a n00b
Default Re: Trouble with custom spell activation

I tried to copy the trigger and related spells to an other map and it worked. So simple elimination left the triggers as the only possible source of my bug. I deleted all triggers with the exception of the one above (after making a backup of the map ) and it worked! All that remains is to disable each and start enableing until I find the troublemaker.
Thanks for help. It would have taken me forever to find this bug.

Peace.

Last edited by unauthorized; April 12th, 2006 at 10:39 AM.
unauthorized is offline   Reply With Quote
Old April 13th, 2006   #6
Certified Danger to Society
 
InnerGemini's Avatar
 
Join Date: October 23rd, 2004
Location: Wouldn't you like to know?
Status: Omnipotent, Omnipresent, & Omniscient
59 posts, 0 likes.
Rep Power: 0
InnerGemini is a n00b
Send a message via Yahoo to InnerGemini
Default Re: Trouble with custom spell activation

No prob, glad to help when I can. Just remember the theory of Occam's Razor:
Quote:
entia non sunt multiplicanda praeter necessitatem
It essentially means that the simplest answer is most often the correct one.

Good luck and peace out.



InnerGemini is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with custom spell dedheded WC3 Modding, Mapping and Editing 3 May 29th, 2005 11:57 AM
Need help creating a custom spell SilverSabre WC3 Modding, Mapping and Editing 20 July 2nd, 2004 04:26 PM
Tell your custom spell book..... BlindOne General Gaming 22 June 14th, 2001 05:47 PM
My custom spell book Jake Bullet General Gaming 6 December 2nd, 2000 05:08 PM
Custom Spell Books FF|Pro-Filer General Gaming 6 November 20th, 2000 04:14 PM


All times are GMT -7.







   
 





This site is part of the Defy Media Gaming network

The best serving of video game culture, since 2001. Whether you're looking for news, reviews, walkthroughs, or the biggest collection of PC gaming files on the planet, Game Front has you covered. We also make no illusions about gaming: it's supposed to be fun. Browse gaming galleries, humor lists, and honest, short-form reporting. Game on!

FileFront Forums - Terms of Service - Top
Theme Selection
Copyright © 2002-2016 Game Front. All rights reserved. Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Forum Theme by Danny King (FileTrekker), Sheepeep & Graeme(rs)
RSS Feed Widget by FeedWind