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

in dire need of help!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Wed Jun 22, 2005 8:19 am    Post subject: in dire need of help! Reply with quote

is there a way to make a script so when you press a key (lets say X ) you mount a vehicle? i have the button part all figured out but not the vehicle. Huh?
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Wed Jun 22, 2005 8:33 am    Post subject: Reply with quote

If you know how to use vehicles in general, then all you need to do is add a "use npc" command to your script.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Wed Jun 22, 2005 10:38 am    Post subject: Reply with quote

hmm... your right you geniuse! thanks
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Wed Jun 29, 2005 6:18 pm    Post subject: Reply with quote

help, again my script isnt working!

Code:
script, garland, begin
show text box (53)
wait for text box
set npc direction (2, north)
show text box (54)
wait for text box
use door (4)
wait for hero (me)
set hero direction (me, north)
show text box (62)
wait for text box
set hero direction (me, south)
show text box (64)
wait for text box
suspend player
use door (3)
wait for hero (me)
walk hero (me, south, 2)
wait for hero (me)
use npc (25)
resume player
end

it dosnt use the second door. Crying
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
The Wobbler




Joined: 06 Feb 2003
Posts: 2221

PostPosted: Wed Jun 29, 2005 8:56 pm    Post subject: Reply with quote

Note from Castle Paradox Administration:
This content has been removed by the user. Contact the original author and link them to this post if you wish to view the original content. Only the author can remove the tags hiding this content.
Back to top
View user's profile Send private message
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Wed Jun 29, 2005 9:43 pm    Post subject: Reply with quote

wow great idea PHC, thats probably the problem thanks.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Wed Jul 20, 2005 4:15 pm    Post subject: yes i know what im thinking... i need help again Reply with quote

Pissed off! my damn script isnt working again Pissed off!

Code:
script, rover, begin
if (key is pressed (29) and, check tag (23))
then, begin
create npc (35, hero x (me), hero y (me))
use npc(35)
set hero picture (find hero (hero:r109), 4, inside battle)#if vehicle is equiped
end
if (check tag (23))#vehicle is equiped
else, begin
set hero picture (find hero (hero:r109), 2, inside battle)#normal pic
destroy npc (35)
end
if  (check tag(24))#vehicle is used
else, begin
 change npc id(35,34)
end
end


for some reason if the vehicle isnt equiped the picture is number 4 anyways. WHY!?!?!
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
junahu
Custom Title: 45 character limit




Joined: 13 Jan 2004
Posts: 369
Location: Hull, England

PostPosted: Thu Jul 21, 2005 2:11 am    Post subject: Reply with quote

You can check to see if a tag is false without writing an else statement.

Code:

if (check tag (23))#vehicle is equiped
else, begin # The else part indicates you wanted to check if tag(23) was false
set hero picture (find hero (hero:r109), 2, inside battle)#normal pic
destroy npc (35)
end


should be...

Code:

if (check tag (23) == false)#vehicle is not equiped
then, begin
set hero picture (find hero (hero:r109), 2, inside battle)#normal pic
destroy npc (35)
end

_________________
Back to top
View user's profile Send private message Send e-mail
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Sun May 27, 2007 9:53 am    Post subject: Reply with quote

im not sure whats wrong?

Code:
script, tresure, begin,
suspend player
set npc direction (02, east)
wait (1)
set npc direction (02, south)
wait (30)
set npc direction (02, east)
wait (10)
set npc direction (02, north)
resume player
end


if its something easy dont judge me because i havnt worked on scripts since the colab.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
satyrisci
~guo~




Joined: 28 Feb 2007
Posts: 73

PostPosted: Sun May 27, 2007 5:17 pm    Post subject: Reply with quote

I could be wrong but you may need another wait command after that last set npc direction.
Back to top
View user's profile Send private message
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Sun May 27, 2007 8:21 pm    Post subject: Reply with quote

nah, i found the problem and fixed it. waits dont need to be constent.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Sat Aug 18, 2007 12:10 pm    Post subject: Reply with quote

bah! need help again. but this time the person who helps me gets points in the ohr month contest (if it works that way).

Code:
script, waterstep, begin
if, (check tag (swimming) = off)
then, set hero picture (find hero (0),5,outside battle)
set tag (swimming, on)
end
if, (check tag (swimming) = on)
then, set hero picture (find hero (0), 1, outside battle)
set tag (swimming, off)
end


im trying to make it so when you step on an npc, the charicters picture changes and when you step on it again it changes back to before. what am i doing wroung?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Bob the Hamster
OHRRPGCE Developer




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

PostPosted: Sat Aug 18, 2007 12:23 pm    Post subject: Reply with quote

PHC wrote:
Do we still have the old bug where you can't use a "use door" command if your character is already standing on a door? I recall something similar being a problem a long time ago. Try making your character walk 1 in any direction before the second door command.


Huh. i don't remember anything about that one. Filed '' . bug_title('432') . ''

Code:
script, waterstep, begin
if, (check tag (swimming) = off)
then, set hero picture (find hero (0),5,outside battle)
set tag (swimming, on) #TAG GETS TURNED ON HERE
end
if, (check tag (swimming) = on) #TAG YOU JUST TURNED ON GETS CHECKED
then, set hero picture (find hero (0), 1, outside battle)
set tag (swimming, off)
end


I am also assuming that you re-typed that code into your post rather than copying-and-pasting from the script, because "=" would not even compile. I assume you meant "==", and you left of the "begin"s

Anyway, try something more like:

Code:
script, waterstep, begin
  if (check tag (swimming) == off) then, begin
    set hero picture (find hero (0),5,outside battle)
    set tag (swimming, on)
  end, else, begin
    set hero picture (find hero (0), 1, outside battle)
    set tag (swimming, off)
  end
end
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Sat Aug 18, 2007 12:57 pm    Post subject: Reply with quote

it worked! thanks james, i will conferm that you helped me with my game so you can get points for the contest.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Blue Pixel
SPY SAPPIN MAH FISH SANDWICH




Joined: 22 Apr 2005
Posts: 621

PostPosted: Sat Mar 01, 2008 9:51 am    Post subject: Reply with quote

i started a new game yesterday so im likely to have tons of problems soon, so if anyone would like to help me constently id be thankful for it.

onto my first problem;
Code:
script, door, begin
 if, (npc at spot (14,11,2) or, check tag (2))
 then,
   begin
               write map block (14,10,15,1)
               write map block (14,9,15,1)
               write map block (14,8,15,1)
               write map block (14,7,15,1)
               write map block (14,6,15,1)
               write map block (14,5,15,1)
               write map block (14,4,15,1)
               write map block (14,3,15,1)
               write map block (14,2,18,1)
               write map block (15,2,16,1)
               write map block (16,2,16,1)
               write map block (17,2,9,1))
end

_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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