• 🏆 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!

[General] Nature of Thereisnospoon

Level 4
Joined
Feb 1, 2024
Messages
36
Hi, can someone explain the mechanism of 'Thereisnospoon' how it makes any ability cast of a player's units not cost mana and even abilities with mana cost higher than current mana of unit? As I'm making an item to allow units not losing mana from casting abilities for a short while which I found this cheat useful.
 
Last edited:

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,562
Hi, can someone explain the mechanism of 'Thereisnospoon' how it makes any ability cast of a player's units not cost mana and even abilities with mana cost higher than current mana of unit? As I'm making an item to allow units not losing mana from casting abilities for a short while which I found this cheat useful.
It's probably just hardcoded behavior that you can't mess with:
vJASS:
if CHEAT_THEREISNOSPOON then
 // skip mana costs
else
 // check mana costs
endif
The not losing mana aspect would be easy to trigger yourself with a simple refund system, but bypassing "too high" mana cost limitations would be difficult.

If you need this in multiplayer - which can't rely on cheats, you could set all of the unit's ability mana costs to 0 temporarily using the SetAbilityField functions. This again would require some advanced triggers for tracking the abilities, the original mana costs, as well as handling cases where new abilities are gained afterwards. That's assuming you're on patch 1.31+ and can access these functions.

I could be wrong though, maybe they extended this behavior to be easily accessible outside of the cheat.
 
Top