|
Thread: Changing diplomacy i H4 | |
|
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!
|
|
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?
____________
|
|
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!
|
|
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.
____________
|
|
|