• 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.

[Spell] Resource Spell

Status
Not open for further replies.
Level 30
Joined
Jul 31, 2010
Messages
5,259
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: 155
Level 17
Joined
Nov 13, 2006
Messages
1,814
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
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
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

  • gold exchange.w3x
    21.2 KB · Views: 42
  • gold exchange2.w3x
    19 KB · Views: 47
  • gold exchange3.w3x
    19.2 KB · Views: 50
Status
Not open for further replies.
Top