• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Sacred Shield v1.0

This bundle is marked as pending. It has not been reviewed by a staff member yet.
  • Like
Reactions: SadOnix and ILH
Sacred Shield
IMPORT GUIDE :
1. Enable "Tick the Automatically create unknown variables ..." located at File>Preference>General
2. Copy the Sacred Shield ability in the object editor
3. Import Sacred Shield special effect if you want the one used on test map (optional)
4. Import Damage Engine AND Unit Indexer (OR Unit Event)
5. Copy the SacredShield folder in the trigger editor
6. Configure the SacredShieldConfig trigger
SPELL DESCRIPTION :
Create a protective shield on an allied unit that blocks up to 1000%/2000%/3000% of caster's intelligence. The shield lasts for 30 seconds. Both shield value and duration are refreshed whenever reapplied while active. Sacred Shield cannot be dispelled, removed, nor stolen.
MEDIA SHOWCASE :

CHANGELOG :
Version 1.0: Released

CREDIT :
Shyster: Sacred Shield model
Contents

Sacred Shield v1.0 (Map)

So apparently there is an overlap between the triggers here and Yu'lon Hero Concept and I'm not good enough to fix it without breaking both.
You need to replace chopinski's DamageInterface trigger with the code from this GitHub:
 
Level 11
Joined
Jul 19, 2011
Messages
603
Level 39
Joined
Feb 27, 2007
Messages
5,014
The error box actually has information that tells you about the error and shows you where in the code an error is occurring. If you read it you might be able to figure out what’s going on:

Function redeclared. Redeclared so it’s a duplicate somewhere. You likely have either imported the same library multiple times or have a library that contains (part of) another one. What’s the function name? “UnitAddEvasionChanceTimed”, so look for other declarations of that function somewhere else and you’ll see what exactly is duplicated. (The second error window actually shows you where the first declaration is so you don’t even have to search yourself.)
 

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,468
Top