Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > MapHaven Guild > Thread: Changing diplomacy i H4
Thread: Changing diplomacy i H4
CharlesA
CharlesA

Tavern Dweller
Pilgrimage Traveller
posted April 18, 2006 08:37 PM

Changing diplomacy i H4

I.m currently working on a Beleriand map for Heroes IV, and I want to change the diplomacy as an event in the game, is this possible?

You all know of the kinslayings...
____________
Pilgrimage for Trust on Earth
Ecumenical dialog!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Vlaad
Vlaad


Admirable
Legendary Hero
ghost of the past
posted April 18, 2006 08:41 PM

Quote:
I.m currently working on a Beleriand map for Heroes IV, and I want to change the diplomacy as an event in the game, is this possible?

You all know of the kinslayings...

There is a CHANGE OWNER option, but could you describe what exactly you want to do?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
CharlesA
CharlesA

Tavern Dweller
Pilgrimage Traveller
posted April 18, 2006 08:53 PM

I want to make one of my player hostile to all other players, change team for them, or something like that. But that most happen after some time. I don't want Maedhros to kill Fingon...
____________
Pilgrimage for Trust on Earth
Ecumenical dialog!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Vlaad
Vlaad


Admirable
Legendary Hero
ghost of the past
posted April 18, 2006 09:16 PM
Edited by Vlaad on 18 Apr 2006

Quote:
I want to make one of my player hostile to all other players, change team for them, or something like that. But that most happen after some time. I don't want Maedhros to kill Fingon...

OK, first I must admit I don't remember the whole story and the characters, so I'll just post a piece of advice. You can try it out and see if it works for you!

There is a bug with CHANGE OWNER scripts, so it's best to use placed events around a stationary heroes or creatures, and triggered events on them.

It's important the armies don't mix, because the script might not work properly. So it's usually best to disable their movement in the editor.

The CHANGE OWNER script is rather simple. In the triggered event called "join green" (for example) in the army's properties the script would be:

SEQUENCE:
CHANGE OWNER TO green player
DISPLAY MESSAGE "..."
REMOVE SCRIPT

In the placed events the script would be:

IF CURRENT PLAYER IS green
- SEQUENCE:
- TRIGGER CUSTOM EVENT join green
- REMOVE SCRIPT


Again, put the identical placed events (use copy/paste) all around the hero who will change the owner. It is important to place the events in a wide area around the hero who will change the owner, not next to him. If the player is too close, a combat will occur! The "traitor" who changed the owner will attack the player, then join him after the battle! It's an old bug.

P.S. It's the same with towns.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0178 seconds