HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help

10-02-2004, 07:20 AM#1
grd
I want to make it that when a unit enters a region that the owner of the triggering unit loses 1000 gold.

o_O please help me, if you can
10-02-2004, 09:15 AM#2
Dead-Inside
Code:
UnitEntersRegion
    Events
        Unit - A unit enters No region
    Conditions
    Actions
        Player - Set (Owner of (Entering unit)) Current gold to (((Owner of (Entering unit)) Current gold) - 1000)

There you go. The actions are "Set Player Proptery" (Not add). The rest should be enough of info for you to figure out yourself.
10-02-2004, 12:39 PM#3
grd
Did you test that?
Because it subtracts all of the gold not just 1000 gold

if any1 else has a soultion please post
10-02-2004, 08:54 PM#4
Unknown6
Quote:
Originally Posted by Dead-Inside
Code:
UnitEntersRegion
    Events
        Unit - A unit enters No region
    Conditions
    Actions
        Player - Set (Owner of (Entering unit)) Current gold to (((Owner of (Entering unit)) Current gold) - 1000)

There you go. The actions are "Set Player Proptery" (Not add). The rest should be enough of info for you to figure out yourself.

it works. check your money before entering the region. it should be above 1000
10-03-2004, 12:48 AM#5
grd
That's the same as the other one, but it doesn't work - gold subtracts all gold...

if the trigger was - 1 gold and you 1000000000000000000000000 gold you would then have NO GOLD. thanks for trying :D
10-03-2004, 12:57 AM#6
Dead-Inside
That doesn't make any sense. It's foolproof. (I guess it's not... Never mind).
10-03-2004, 01:13 AM#7
-={tWiStÄr}=-
are you sure u put in ur region? if u kept no region then it may just constantly remove 1000 gold, theres nothing wrong with his trigger.
10-03-2004, 01:17 AM#8
Rafael Br
Quote:
Originally Posted by Dead-Inside
That doesn't make any sense.
Yes, I am right now looking at my unit enetring a region and losing 1000 gold by time, the trigger is exactly the same.
10-03-2004, 01:32 AM#9
sneb
Post the exact trigger you used that caused all the gold to go away theres probly something wrong with what you put in.(copy the trigger as text and past it in [code] tags incase you didnt know)
10-03-2004, 01:39 AM#10
grd
Quote:
Originally Posted by -={tWiStÄr}=-
are you sure u put in ur region? if u kept no region then it may just constantly remove 1000 gold, theres nothing wrong with his trigger.

lol world editor won't let you create a region baced event without a region ^_^
10-03-2004, 01:40 AM#11
Dead-Inside
Observe the attachment. I know what you did wrong.
It was all you and I was right the whole time. You're welcome.
10-03-2004, 01:41 AM#12
grd
I had 1500 gold, the trigger was the same as Dead-Inside, my unit entered the region and lost all gold. so - 1000 took away 1500 gold
10-03-2004, 01:42 AM#13
Dead-Inside
Please refresh the page and download the attachment. Then learn how to read.
10-03-2004, 01:44 AM#14
grd
downloaded
10-03-2004, 01:50 AM#15
Dead-Inside
I'm going to bed now. I hope you can figure out what I was really saying this time around. Good night everybody, and good luck grd.