• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Spell] Resource Spell

Status
Not open for further replies.
Level 30
Joined
Jul 31, 2010
Messages
5,248
I'm actually making 2 spells(or better yet items) that purchases 500 gold and 500 lumber for owner of unit:

[if GENERAL-only solution]the problem about this is that when I use the "item" standard version, it drops it since it is an item, but when you change it into a unit ability it doesn't show up in-game.

[if TRIGGER-only solution] if a player doesn't have enough resource to purchase/cast it, it won't work like for an example: cast 500 gold for 500 lumber, if the player doesn't have 500 lumber, then nothing happens, so anyone can help? :)

here's a pic about it:

attachment.php
 

Attachments

  • WC3ScrnShot_030412_013002_01.jpg
    WC3ScrnShot_030412_013002_01.jpg
    233.7 KB · Views: 186
its have cooldown?

generic unit event - unit cast ability
condition - ability casted is ur exchange ability
action:
if triggerplayer gold < 500 then remove ability, and add ability again to triggering unit (its mean cooldown reseted)
else
decrease player gold by 500 and give 500 lumber
endif
 
I'm actually making 2 spells(or better yet items) that purchases 500 gold and 500 lumber for owner of unit:

[if GENERAL-only solution]the problem about this is that when I use the "item" standard version, it drops it since it is an item, but when you change it into a unit ability it doesn't show up in-game.

[if TRIGGER-only solution] if a player doesn't have enough resource to purchase/cast it, it won't work like for an example: cast 500 gold for 500 lumber, if the player doesn't have 500 lumber, then nothing happens, so anyone can help? :)

here's a pic about it:

attachment.php

i uploaded 3 demo map for u:

1. when i made with dummy unit and abilities, its show what u need
2. with minimal trigger just when u exchange its look like this cost: 500 gold -500 lumber
3. similiar way but without showing negative value and +1 trigger
 

Attachments

Status
Not open for further replies.
Back
Top