Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/general/scripts/book.rs2
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ switch_obj (%open_book) {
case horror_diary1 : @book_flip_page(^book_direction_backward, 0, 13, horror_diary1);
case horror_diary2 : @book_flip_page(^book_direction_backward, 0, 13, horror_diary2);
case horror_diary3 : @book_flip_page(^book_direction_backward, 0, 10, horror_diary3);
case castlewars_manual : @book_flip_page(^book_direction_backward, 0, 9, castlewars_manual);
}
p_delay(0);

Expand All @@ -50,6 +51,7 @@ switch_obj (%open_book) {
case horror_diary1 : @book_flip_page(^book_direction_forward, 0, 13, horror_diary1);
case horror_diary2 : @book_flip_page(^book_direction_forward, 0, 13, horror_diary2);
case horror_diary3 : @book_flip_page(^book_direction_forward, 0, 10, horror_diary3);
case castlewars_manual : @book_flip_page(^book_direction_forward, 0, 9, castlewars_manual);
}
p_delay(0);

Expand Down
22 changes: 22 additions & 0 deletions scripts/minigames/game_castlewars/scripts/castlewars_manual.rs2
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[opheld1,castlewars_manual]
%book_page = 0;
%open_book = castlewars_manual;
@open_castlewars_manual;

[label,open_castlewars_manual]
@book_flip_page(0, 0, 9, castlewars_manual);

[proc,castlewars_manual]
switch_int (%book_page) {
case 0 : ~book("Castle Wars Manual", "Objective:|The aim is to get into your opponents castle and take their team standard. Then bring that back and capture it on your teams standard.");
case 1 : ~book_obj("Castle Wars Manual", book:page_left_model_3, castlewars_toolkit, 200, "||||Toolkit:|This useful item allows you to repair broken doors and catapults. Simply use it on the item to be repaired, or have one in your inventory when you select the option, and you'll rebuild it!");
case 2 : ~book_obj("Castle Wars Manual", book:page_left_model_2, castlewars_bandages, 200, "||||Bandages:|These can be used to heal some health and restore some of your running energy. You can also use them to heal fellow players.");
case 3 : ~book_obj("Castle Wars Manual", book:page_left_model_4, castlewars_explosives_potion, 200, "|||||Explosive Potion:|A simple but effective item, use it to blow up your opponents catapult and barricades! It can also be used to clear the tunnels under the arena for a sneak attack into your opponents castle. Don't forget to collapse the tunnels into your own castle though!");
case 4 : ~book_obj("Castle Wars Manual", book:page_left_model_4, castlewars_barricade, 200, "|||||Barricade:|Use these constructs to block your opponents movement and prevent them accessing your castle. Each team can only have 10 built at any time.");
case 5 : ~book_obj("Castle Wars Manual", book:page_left_model_3, bucket_water, 200, "||||Bucket:|Fill a bucket with water and you can use it to put out a burning catapult or barricade, but be quick or it'll be destroyed.");
case 6 : ~book_obj("Castle Wars Manual", book:page_left_model_3, tinderbox, 200, "||||Tinderbox:|Logs aren't all that's flammable, use a tinderbox to set light to your opponents catapult and barricades.");
case 7 : ~book_obj("Castle Wars Manual", book:page_left_model_3, bronze_pickaxe, 200, "|||||Pickaxe:|Use a pickaxe to mine your way through the tunnels under the arena for a sneak attack into your opponents castle. Don't forget to collapse the tunnels into your own castle though!");
case 8 : ~book_obj("Castle Wars Manual", book:page_left_model_3, castlewars_catapult, 200, "||||Catapult:|Use this war machine to launch rocks at your opponents. Just give it rough coordinates and let the rock fly, just be careful not to hit your team with it!");
case 9 : ~book_obj("Castle Wars Manual", book:page_left_model_4, castlewars_catapult_rock, 200, "|||||Rock:|Used as ammo for the catapult, and not much else. Brings new meaning to the phrase 'flies like a rock'.");
}