I just want to make the item's concept same like the vampirism fire.
For Vampirism fire's item Urn of Dracula.
It gives you gold every minutes. from -
14-30minutes is 25gold per minute.
30minute onwards is 50gold per minute.
And i have a version of their deprotected map. Which i found the gold increament is based on gui:jass
What i want is to have a slightly change to 10minute - 30minute (25gold), 30minute onwards is 50gold. How do i do it?
Need some help here.
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Need some help here.
I have seen this trigger in the deprotected map.
Basically, every periodic event *60 seconds*
It calls the urn trigger which takes every player in udg_player03( which a player is added to when aquires the Urn of Dracula
Then, when the 15 mark hits(the countdown timer) it sets udg_integer03 to udg_Integer03 +1
So basically the periodic event timer is going basically every minute, but since udg_integer03 = 0 the whole time between 0 minutes - 15, it doesn't matter about this trigger:
Adjustplayer stateBJ((25*udg_integer03)) GOld + Lumber
So...These simple triggers can fix everything
This trigger is for when The 15 minute mark hits, everyone gets 1 gold instead of 2:
Event:
Time- Elapsed game time is 899.00 seconds ( just before 15 minute mark
Condition:
None
Action:
Set integer03 = 0
This trigger is for when you 10 minute mark hits:
Event:
Time- Elapsed game time is 600 seconds( 10 minutes)
Condition:
None
ACtion:
Set integer03 = 1
Thats it..At the 10 minute mark whoever has urn will gain gold/lumber, and at the 15 minute mark, it will continute as originally planned.
Hope this helps
Basically, every periodic event *60 seconds*
It calls the urn trigger which takes every player in udg_player03( which a player is added to when aquires the Urn of Dracula
Then, when the 15 mark hits(the countdown timer) it sets udg_integer03 to udg_Integer03 +1
So basically the periodic event timer is going basically every minute, but since udg_integer03 = 0 the whole time between 0 minutes - 15, it doesn't matter about this trigger:
Adjustplayer stateBJ((25*udg_integer03)) GOld + Lumber
So...These simple triggers can fix everything
This trigger is for when The 15 minute mark hits, everyone gets 1 gold instead of 2:
Event:
Time- Elapsed game time is 899.00 seconds ( just before 15 minute mark
Condition:
None
Action:
Set integer03 = 0
This trigger is for when you 10 minute mark hits:
Event:
Time- Elapsed game time is 600 seconds( 10 minutes)
Condition:
None
ACtion:
Set integer03 = 1
Thats it..At the 10 minute mark whoever has urn will gain gold/lumber, and at the 15 minute mark, it will continute as originally planned.
Hope this helps
-
- Member
- Posts: 83
- Joined: May 6th, 2008, 10:29 am
Re: Need some help here.
Erm, i think you got it wrong. Maybe i didn't explained properly.
What you're telling me is the 15th minute gold reward. This has got nothing to do with the Urn. (Item)
What i wanted is the gold increament when you're holding the Urn. (Item)

What you're telling me is the 15th minute gold reward. This has got nothing to do with the Urn. (Item)
What i wanted is the gold increament when you're holding the Urn. (Item)
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
-
- Member
- Posts: 83
- Joined: May 6th, 2008, 10:29 am
Re: Need some help here.
The original creator only made the item to start increasing money from 14minutes onwards.
Even the item is bought before 14min, lets say.. 10th minute. when the 11th minutes hits, i do not get my gold increament eventhough i an holding the urn.
I basically just want to change the 14min starting point to 10th min starting point for the gold to start increase when you don't click me/hold that item.
Even the item is bought before 14min, lets say.. 10th minute. when the 11th minutes hits, i do not get my gold increament eventhough i an holding the urn.
I basically just want to change the 14min starting point to 10th min starting point for the gold to start increase when you don't click me/hold that item.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Need some help here.
Yah, thats what I said...
Mabye this will explain it to you
This is where it does every 60 seconds....Give player 25gold/lumber * Integer03
Trigger function to increase gold/lumber increments
Now...there is a simple fix in this next spoiler/explained why.
If this is still confusing, Repost/pm me please
Mabye this will explain it to you
This is where it does every 60 seconds....Give player 25gold/lumber * Integer03
Spoiler:
Spoiler:
Spoiler: