Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Another scripting problem....

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Thu Sep 06, 2007 8:03 pm    Post subject: Another scripting problem.... Reply with quote

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
View user's profile Send private message Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Sep 06, 2007 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Meatballsub
Divine Bovine




Joined: 16 Jun 2003
Posts: 437
Location: Northwest Georgia

PostPosted: Fri Sep 07, 2007 5:40 am    Post subject: Reply with quote

Easy enough, thanks for pointing that out Happy
_________________
MOCBJ Software - My Games
The Hamster Wheel - OHRRPGCE Information Database
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group