I had a few doubts regarding the source code of SDL PoP:
1) How to set a time delay between two actions? For example, let's say you want the prince to do
Code: Select all
seqtbl_offset_char(seq_5_turn)
Code: Select all
seqtbl_offset_char(seq_50_crouch)
2) Execute an event after any particular action. For example, after drinking red potion on level 2 in room 1, I want to trigger a raise tile located at room 3, row 3, column 3. I tried:
Code: Select all
get_tile(3, 3, 3);
trigger_button(0, 0, -1);
Code: Select all
current_level == 2 && curr_room == 1
3) Teleport prince to a defined room with defined row and column. For example, in the Vanilla version, teleport the prince to the end level door after performing a certain action. Note that the rooms are all previously defined (i.e. created using any level editor or so) and I do not intend to "generate" them dynamically. I tried
Code: Select all
Char.y = y_land[3];
Char.curr_row = 3;
4) Change the colour of vapours coming out of the potions (preferably programmatically) and detect those colours to use them in if - else statements. Any other snippet might also do provided I can add potions which perform different functions.
5) Last but not the least, has the solution been found for the bug where Prince can pass through closed gates when he has taken out his sword? (Draw sword anywhere mod)
Thanking You,
Best Regards,
Akruzen