View previous topic :: View next topic |
Author |
Message |
Meatballsub Divine Bovine

Joined: 16 Jun 2003 Posts: 437 Location: Northwest Georgia
|
Posted: Thu Sep 06, 2007 8:03 pm Post subject: Another scripting problem.... |
|
|
I have a script in my game that causes an npc "boulder" to drop down on an exit when triggered. I want the boulder to stay there even if the game is saved and exited, but it always resets. Any suggestions?
Here is the code:
Code: | script,boulder,begin
suspend player
suspend npcs
suspend npc walls
set hero speed (0)
play sound (10,false,false)
walk npc (9,down,2)
wait for npc (2)
set hero direction (0,up)
set hero direction (1,up)
set hero direction (2,up)
wait for all
wait (50)
show textbox (200)
wait for textbox
set npc speed (9,0)
resume player
resume npc walls
resume npcs
end |
_________________ MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Sep 06, 2007 8:09 pm Post subject: |
|
|
When the boulder falls, set a tag that indicates the bolder has already fallen
Then write a map autorun script that checks that tag, and if it is on, instantly moves the boulder. |
|
Back to top |
|
 |
Meatballsub Divine Bovine

Joined: 16 Jun 2003 Posts: 437 Location: Northwest Georgia
|
|
Back to top |
|
 |
|