View previous topic :: View next topic |
Author |
Message |
RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner


Joined: 12 Jul 2003 Posts: 1459
|
Posted: Sat Oct 02, 2004 11:27 am Post subject: Random Text Boxes |
|
|
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 |
|
 |
Shadowiii It's been real.

Joined: 14 Feb 2003 Posts: 2460
|
Posted: Sat Oct 02, 2004 11:35 am Post subject: |
|
|
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 |
|
 |
RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner


Joined: 12 Jul 2003 Posts: 1459
|
Posted: Sat Oct 02, 2004 11:38 am Post subject: |
|
|
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 |
|
 |
junahu Custom Title: 45 character limit

Joined: 13 Jan 2004 Posts: 369 Location: Hull, England
|
Posted: Mon Oct 04, 2004 3:47 am Post subject: |
|
|
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 |
|
 |
|