How do I add heroes to my party in the order I want?

From OHRRPGCE-Wiki
Jump to: navigation, search

This article will explain you what to do to add heroes in a party in a precise order.

So let's say that there are 4 heroes: Harry, Hermione, Ron and George and that you would like to enter the party in the following order: Hermione, Ron and George. (You will have certainly recognised the heroes created by J.K Rowling)

Before adding them to the party, you have to ask yourself a very important question: is it the first time that those heroes come into the party?


1st time the heroes are added to the party[edit]

If it is so, just use the appropriate command. (See above if you want to use text boxes to add them to the party)

script, friends arrive, begin

suspend player
suspend npcs

add hero (hero:Hermione)
add hero (hero:Ron)
add hero (hero:George)

resume npcs
resume player
end #end of the plotscript

Then for some reasons the heroes left, because Harry had to take care of the training of the AD. So you may want them to be stored in the reserve.

script, heroes go to the reserve, begin

suspend player
suspend npcs

add hero (hero:Hermione)
add hero (hero:Ron)
add hero (hero:George)

resume npcs
resume player
end #end of the plotscript
script, friends leave, begin

suspend player
suspend npcs

# see above for details on how to count position
swap out hero (hero: Hermione) #Hermione takes position n°1
lock hero (hero: Hermione)

swap out hero (hero: Ron) #Ron takes position n°2
lock hero (hero: Ron)

swap out hero (hero: George) #George(one of Ron's elder brother takes position n°3)
lock hero (hero: George)

resume npcs
resume player

end #end of the plotscript

2nd/3rd time the heroes are added, the come back of the heroes[edit]

Let's take again the example of Harry Potter. Harry has finished the training of the DA (Dumbledore's Army) and now Ron, George and Hermione are going to come back with Harry.

To put the hero back on the party in the order you want you have to understand how to count position

0- 1rst position in the party, main's hero position 1- 2nd poisition in the party 2- 3rd position in the party 3- 4th position in the party

The hint to remember how to count heroes is that the main hero, the one that the player will play with most of the game, is hero (0). Hero(0)=hero(me)

To do so, we have to combine several commands.

script, friends come back, begin

suspend player
suspend npcs

unlock hero (hero: Ron) #unlock the heroes of the reserve
unlock hero (hero: Hermione)
unlock hero (hero: George)

# Heroes came back where they were in the party
find hero (hero: Ron)
swap by position (hero: Ron, 1)

find hero (hero: Hermione)
swap by position (hero: Hermione, 2)

find hero (hero: George)
swap by position (hero: George, 3)

#you might be interested in putting the member's of the DA in the reserve until
#they can to help at the ministery for the final fight

lock hero (hero: Luna)
lock hero (hero: Ravenclaw student)
lock hero (hero: Hufflepuff student)

resume npcs
resume player

end #end of the plotscript

See Also[edit]