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

Random Text Boxes

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Sat Oct 02, 2004 11:27 am    Post subject: Random Text Boxes Reply with quote

Can somone tell me how to make a script where an NPC says random things? I think it was used in OHR-Date, but due to the fact that my computer is messed up and won't let me download stuff, can someone please help me?
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
Shadowiii
It's been real.




Joined: 14 Feb 2003
Posts: 2460

PostPosted: Sat Oct 02, 2004 11:35 am    Post subject: Reply with quote

It is quite simple.
Code:

script, boytalk, begin
suspend npcs
show textbox (random(161, 220))
wait for text box
resume npcs
end


161-220 are the text boxes it randomly chooses. You can always edit this if you so desire.

Good luck.
_________________
But enough talk, have at you!
Back to top
View user's profile Send private message Send e-mail
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Sat Oct 02, 2004 11:38 am    Post subject: Reply with quote

You are a lifesaver Shadow! Now Master Shake some other people can say things that will make your sides ache.
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
junahu
Custom Title: 45 character limit




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

PostPosted: Mon Oct 04, 2004 3:47 am    Post subject: Reply with quote

Code:

global variable (manvocab)

script, talktoman, begin
suspend npcs
if(manvocab == 0)
then, begin
manvocab := 190
end
show textbox (random((manvocab -- 30, manvocab))
wait for text box
if(manvocab << 220)
then, begin
increment(manvocab,1)
end
resume npcs
end


This way you can have the guy say new stuff the more you talk to him.
_________________
Back to top
View user's profile Send private message Send e-mail
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