Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.
Moderator: Zyx
ADDF_Toxic
On Master
Posts: 623 Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:
Post
by ADDF_Toxic » Sun Feb 25, 2007 7:41 pm
Is there any way to randomly choose a number within a range using DSA in CSBWin? Thanks.
I'm a boy, unlike my avatar.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Sun Feb 25, 2007 7:55 pm
&RAND
This generates a number between 0 and the number one less than on the stack
L50 &RAND generates a number between 0 and 49, etc
ADDF_Toxic
On Master
Posts: 623 Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:
Post
by ADDF_Toxic » Sun Feb 25, 2007 8:03 pm
That sounds simple enough! It sounds like you can't set a lower boundary (too bad), but I think I have a way around that. I'll just need to subtract the upper boundary by the lower boundary, then add it again after the random number has been found
Thanks for the help.
I'm a boy, unlike my avatar.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Sun Feb 25, 2007 8:09 pm
Pretty much
L5 &RAND gives you 0 - 4
L5 &+ gives you 5 - 9 for example
ADDF_Toxic
On Master
Posts: 623 Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:
Post
by ADDF_Toxic » Sun Feb 25, 2007 8:11 pm
Do you mean
? Wow, that's easier than I was about to make it!
I'm a boy, unlike my avatar.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Sun Feb 25, 2007 8:14 pm
No, you need to put things on the stacks first
L5 &RAND L5 &+
ADDF_Toxic
On Master
Posts: 623 Joined: Wed Apr 27, 2005 2:43 pm
Location: Canada
Contact:
Post
by ADDF_Toxic » Sun Feb 25, 2007 8:41 pm
Ah, so like I was saying
I'm a boy, unlike my avatar.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Sun Feb 25, 2007 8:50 pm
Probably!
Lunever
Grand Druid
Posts: 2712 Joined: Thu Feb 14, 2002 4:47 pm
Post
by Lunever » Sun Feb 25, 2007 10:39 pm
Stay true to CSB - employ gigglers for random generators.
Parting is all we know from Heaven, and all we need of hell.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Sun Feb 25, 2007 10:42 pm
Lol, some numbers can't reply on gigglers - like which direction a trolin will strike in combat with deth knights
Lunever
Grand Druid
Posts: 2712 Joined: Thu Feb 14, 2002 4:47 pm
Post
by Lunever » Sun Feb 25, 2007 10:52 pm
Maybe you just need enough giggler-controlled invisible soundless spinners
Parting is all we know from Heaven, and all we need of hell.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Sun Feb 25, 2007 11:12 pm
Maybe that's how DSA's really work - they generate 32 hidden levels of giggler mechanics
zoom
Grand Master
Posts: 1819 Joined: Tue Sep 23, 2003 1:27 am
Location: far away but close enough
Post
by zoom » Mon Feb 26, 2007 8:40 pm
poor giggler sods!
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Mon Feb 26, 2007 8:44 pm
Serves them right for STEALING MY VORPAL BLADE *fireball fireball poison dart*
zoom
Grand Master
Posts: 1819 Joined: Tue Sep 23, 2003 1:27 am
Location: far away but close enough
Post
by zoom » Mon Feb 26, 2007 8:59 pm
You should not have (waved ) the vorpal blade in front of the gigglers' faces in the first place!
Next time , put it into your backpack.
THey are cleptomaniacs that have a fixation on stuff in hands..
BUT, if you think about it : fireballing them is fun! even more so, if they charge you.
Lunever
Grand Druid
Posts: 2712 Joined: Thu Feb 14, 2002 4:47 pm
Post
by Lunever » Mon Feb 26, 2007 9:04 pm
Maybe if the gigglers had a guild you could pay them gold coins in order to keep your vorpal blade.
Parting is all we know from Heaven, and all we need of hell.
beowuuf
Archmastiff
Posts: 20687 Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK
Post
by beowuuf » Mon Feb 26, 2007 9:12 pm
Maybe, if I had any left! They stole them! *fireball fireball oh um ew*