HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

New to map making and need help!

04-24-2007, 06:33 PM#1
mike
OK so I am really new to map making and I know every one here is pro so I got some question.

I am making an Altered melee -Holy Crusades- and I am having some problem.

First of all my map will work like Shogun V47.b: We capture Town , Cities and stuffe by hitting them and puting them to a certain number of hit point then it comes to you (with everything serrounding it) and it ocmes back to initial ammount of hit point so here is the question.

How can I make that the same way as Shogun (I mean his system) what trigger must I use and everything...
1) So that a target player (it a 12 player map) hit a target building and render it to like 20% of it hit points and the target attaking player will own the building
2) The building return to it initial ammount of hit points and we can do the rigger again

My second question is about shogun again. In shogun we can have player name. Like Teal won't have his palyer name but he will have a Teal name named Ando and it will appear like that for every player. Even in the diplomacy section we can see that Teal's name is Ando and not his user accopunt name so my question is how do I do that.

Finnaly Income. From SHogun again. When you have a building it gives you a certain ammoutn of gold each 2 minutes. How can I make a trigger like that so that when you control buildings it gives you money at each 2 minutes. ANd I want to do a Tweak to this. More troops that you have less your income will be big is that possible? Like if I have like 70 troops my income will be lowered of 50%.

Well I think that it I would really like if someone 1 anwser me

BTW sorry for my poor english it not my natal language
04-24-2007, 09:06 PM#2
tamisrah
I hope I'm not totally wrong when I expect you would like to get your anwers as GUI triggers
1.Detect a attack and if the attacked unit is a struct and has less than 20% of its hp it changes the owner:
Trigger:
Switch Ownership
Collapse Events
Unit - A unit Is Attacked
Collapse Conditions
((Attacked unit) is A Struct) Equal to True
(Life of (Attacked unit)) Less Than (0.20 x (Max. Life of (Attacked unit)))
((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Gleich True
Collapse Actions
Unit - Change ownership of (Attacked unit) to (Owner of (Attacking unit)) and Change Color
Unit - Set life of (Attacked unit) to (Max. Life of (Attacked unit))

2.
I'm not completly sure whether this is what you want but this seems to be appropriate:
Trigger:
Player - Set name of Player(0) to Ando
3.This trigger increases every players gold by the number of structs*a constant each 120 sec (=2 min )
Trigger:
Income
Collapse Events
Time - Every 120.00 seconds of game time
Conditions
Collapse Actions
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Player - Add ((Count structures controlled by (Picked player) (Exclude incomplete structures)) x 50) to (Picked player) Aktuelles Gold

Hope this helps you with your project
04-24-2007, 09:15 PM#3
Dil999
For the first trigger, theres no need to do .2xmax life. You can just do Percentage life of attacked unit less than 20.
04-25-2007, 09:28 PM#4
mike
wow thank I am goign to try this out now!

Thank a lot
04-25-2007, 10:12 PM#5
mike
mmmm it don'T seem to work here is what I did:

Event:
Unit - Alexandria Castle is attacked

Condition:
-Alexandria is a struc equal to true
-Life of Alexandria Castle is less than 0.20
----Here where I think it don't work-----
-(Owner of ((attacking unit)) Equal to (Owner((of attacked unit))
P.S: I did not seem to find the -belongs to a enemy-

Action:
-Unit - Change ownership of Alexandria Castle to (Owner of (attacking unit)) and chnage color
-Unit - set life back to 100%

So?? where did I fuck 'up

O and BTW and whant to do a tweak to this:

When a building is captured I want the player to have the choice to sack settlement (which would give gold but kill the population) or Occupy (no gold but population intact)

You know what I mean like when you chose the diffculty level at the begining of a game and stuffe

Thank Agin
04-26-2007, 02:21 AM#6
Szythe
Quote:
Originally Posted by mike
mmmm it don'T seem to work here is what I did:

Event:
Unit - Alexandria Castle is attacked

Condition:
-Alexandria is a struc equal to true
-Life of Alexandria Castle is less than 0.20
----Here where I think it don't work-----
-(Owner of ((attacking unit)) Equal to (Owner((of attacked unit))
P.S: I did not seem to find the -belongs to a enemy-

Action:
-Unit - Change ownership of Alexandria Castle to (Owner of (attacking unit)) and chnage color
-Unit - set life back to 100%

So?? where did I fuck 'up

O and BTW and whant to do a tweak to this:

When a building is captured I want the player to have the choice to sack settlement (which would give gold but kill the population) or Occupy (no gold but population intact)

You know what I mean like when you chose the diffculty level at the begining of a game and stuffe

Thank Agin

0.2 life literally means 0.2, which will pretty much never happen. You want 20%.

Also, "Unit belongs to an Enemy" is a Boolean comparison, it shouldnt be too hard to find
04-26-2007, 02:43 AM#7
Dil999
Also, Change ownership of Alexandria Castle to (Owner of (attacking unit)) and chnage color, means the attacker has to be on the same team as the attacked (Meaning if the attacking unit is owned by the same player as the attacked unit, change the owner of the attacked unit to the owner of the attacking unit; doing nothing.
Also, theres no reason to check if its a structure, since your specifying one unit and you know that unit will always be a structure.
04-26-2007, 04:21 AM#8
Pyrogasm
You should use the [trigger] tags next time. Go to your trigger in the WE, select all of it and click Edit –> Copy as Text.

Then post that here!