How to pre-load custom abilities?

Status
Not open for further replies.
Level 3
Joined
Sep 29, 2012
Messages
37
How to pre-load custom abilities, when I give a unit custom abilities via trigger, it will lag. So how do i do it?

Is this i should do it?

  • Preload
  • Preload
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Preload_Ability[2] = Flaming Sword
  • Flaming Sword
  • Flaming Sword
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Warrior's Power
    • Actions
      • Unit - Add Preload_Ability[2] to (Learning Hero)
 
Edit: wrong info

When I add warror's power, the extra ability, flaming sword, will also add to my hero. After i add it sudden lag and no more.

what i suspect as the cause of the problem is :

  • Set Preload_Ability[2] = Flaming Sword
why did you need these ?

and

(Learning Hero) could be changed into (Triggering Unit)

i have tried several times to do this and it worked fine for me ..
 
You have to be smart with preloading. You don't want players to wait during loading screen for something they will hardly use nor find in the game.

Abilities with 4 levels are loaded pretty fast, and the lag spike isn't really noticeable; like in DotA; you experience a 0.01 lag spike no one cares about when a hero is picked because it just has 4 abilities with 4 levels. Even if you play in Deathmatch where you get a new hero everytime you die, the lag spike isn't important there.
 
Status
Not open for further replies.
Back
Top