gold stealing ability?

  • Thread starter Thread starter 25jai
  • Start date Start date
2

25jai

Guest
i see some maps that has a gold gaining or stealing ability...how do i do this? is there really a gold stealing ability?.. so when ever i attack a unit with the hero with that ability i see coins splashing out of the unit but the unit didnt die yet...and i get gold for each of that attack. how do i make that ability?
 
Make an ability based on something useless like unholy aura or pheonix fire.

Give it no icon.

Do this trigger:
Events- A unit is attacked
Conditions- (Attacking unit) has the God Stealing Ability equal to True (dodgy condition, not sure if it exists :P)
Actons- Set Gold (owner of (attacking unit) to ((gold of (owner of attacking unit) + (x gold))

Same action only change gold of owner of attacking unit to gold of owner of triggering unit.

Also, change + (x gold) to - (x gold)

where it says x, change it to your needs.

Hope this works :)
Hope this helps :)

~Jindo
 
ya nice jindo but also

the gold stealing from attacked unit is equal to the attacking unit reciving? exemple

im the attacking with the ability "stealing" (i got 0 gold)
and i attack the (attacked unit = (0gold)
are u going to steal gold anyway or wont be able to

beacuse if u use set gold to attacking unit ur not stealing just adding
but u can also set if all cond true (cond attacked unit gold greater than or equal to (the gold u will steal on lvls)
that will make the gold of attacked unit loses and attacking wins gold :D
 
set gold (owner of unit(attacked unit)) to ((gold of (owner of attacked unit) - (x gold))
and that be how it workes, put after jindo's actions
 
no dude i think u not understand ... if the attacked unit has no gold?
 
ok give me a second to fix up a trigger
First make this trigger
Steal gold on
Events
Unit - A unit Learns a skill
Conditions
(Get last learned skill of (Triggering unit)) Equal to Your Ability)
Actions
Trigger - Turn on Steal Gold <gen>
Then make this trigger

Steal Gold
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Your unit
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacked unit)) Current gold) Greater than or equal to x
Then - Actions
Player - Set (Owner of (Attacking unit)) Current gold to (((Owner of (Attacking unit)) Current gold) + x)
Player - Set (Owner of (Attacked unit)) Current gold to (((Owner of (Attacked unit)) Current gold) - x)
Else - Actions
Do nothing
make that trigger initally off

PS. this needs WEU
 
instead of the actions do the same kind of thing with if then else and loop actions

If All Conditions ae true then do then actions else do else actions.

Then actions
the actions are the actions that i put at the top.

Else Actions
Do nothing.

Hope that helps :)
Good luck

~Jindo
 
thanks for the help but ....im trying to do one without the triggers or both because the skill itself has a splash of coins everytime i attack a unit. heres what i did.

i used the ability pillage ( orc ability that gains resources when attackin enemy buildings ) i edit its (tagets Allowed) so i gain gold every time i attack...but is there like away to set its exact amount of gold gained? if i take off accumlation step to 0 it crashes my computer...
 
"i dont want use Triggers"
grrrrr come on u need trigers or else u will make a bad map...
 
why did the trigger above require WEU? It looked standard to me... Anyway, that is pretty much how I would make a steal gold ability. I gave it some thought once (I give everything some thought...) and came up with a similar method. I don't see why it would require WEU.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top