Post yer monster scripts here
Pages
- 1
- 2
Author | Topic: Post yer monster scripts here |
---|---|
Warrior
Member # 1505
|
written Sunday, April 4 2004 07:53
Profile
When is Jeff going to add these to the script DB? -------------------- -Newtfeet Posts: 151 | Registered: Saturday, July 13 2002 07:00 |
Apprentice
Member # 4127
|
written Sunday, April 4 2004 11:35
Profile
quote:That is correct. I cannot imagine that is too difficult to add to the language, but he would have to call deduct_ap() something else. He does not want to erase the old call (for compatibility), and he needs a way for his interpreter to recognize the right calls as they will have a different number of arguments. However, this all depends on how difficult it is to add functions to AvernumScript in general. If he has a proper symbol look-up table, it shouldn't be too hard, but then I don't know how he chose to design this. There are other modifications I would like made to AvernumScript like unary minus and the not operator (!) that are much harder and I doubt those will be added. Posts: 48 | Registered: Saturday, March 20 2004 08:00 |
Apprentice
Member # 4127
|
written Sunday, April 4 2004 12:43
Profile
quote:Then I will lay off that idea (but to be honest, I had not thought of it). My plans for the next few scripts after familiars are: A spawning pool that uses very complex messaging to control all its creatures as slaves (it does coordinated target acquisition and sends the creatures there). This will use a combination of tricks from my target acquisition and familiar examples.A bunch of interesting mirror terrains like a mirror of life trapping, and a mirror of opposition (if Jeff fixes give_char_item() so I can duplicate party items).You should be safe for a while. ;) Posts: 48 | Registered: Saturday, March 20 2004 08:00 |
Triad Mage
Member # 7
|
written Sunday, April 4 2004 16:32
Profile
Homepage
Well, it's not hard to fake the not operator with excessive use of DeMorgan's laws. -------------------- "At times discretion should be thrown aside, and with the foolish we should play the fool." - Menander ==== Drakefyre's Demesne - Happy Happy Joy Joy Encyclopedia Ermariana - Trapped in the Closet ==== You can take my Mac when you pry my cold, dead fingers off the mouse! Posts: 9436 | Registered: Wednesday, September 19 2001 07:00 |
Apprentice
Member # 4127
|
written Sunday, April 4 2004 16:38
Profile
quote:True. I was thinking that you cannot do it in unary instances such as !char_ok(x), but I guess in all those cases you just do (char_ok(x) == FALSE). So maybe that's not too bad. It would be nice, however, to have !x available for making x = 1 if 0 and 0 if anything else. Right now that requires an if-branch. Posts: 48 | Registered: Saturday, March 20 2004 08:00 |
Infiltrator
Member # 3040
|
written Tuesday, April 6 2004 08:19
Profile
quote:Or you could do: x = 1 - x -------------------- 5.0.1.0.0.0.0.1.0... Posts: 508 | Registered: Thursday, May 29 2003 07:00 |
Apprentice
Member # 4127
|
written Tuesday, April 6 2004 08:22
Profile
quote:Shorts can be negative. So if x = 2, x = 1 - x makes -1, not 0. Posts: 48 | Registered: Saturday, March 20 2004 08:00 |
Infiltrator
Member # 154
|
written Tuesday, April 6 2004 09:08
Profile
Since the BoA community lacks an up-to-date Script Archive right now, I've put the scripts linked to in this topic up at TBS. AIM me on UWHugo or something if you want it taken down. -------------------- Apparently still annoying. Posts: 612 | Registered: Saturday, October 13 2001 07:00 |
Warrior
Member # 4202
|
written Saturday, April 10 2004 06:20
Profile
Homepage
quote:No, just do what you said: (x == FALSE) You don't need to put that in an if-branch. It's equivalent to (!x), if that did what you want it to. -------------------- Creator of the 3D Blades of Avernum Editor for Mac. Get it at Ingenious Isaac's Illusion, my web page. Better yet, get Battle for Wesnoth, a wonderful free TBS game. Posts: 192 | Registered: Sunday, April 4 2004 08:00 |
Law Bringer
Member # 2984
|
written Saturday, April 10 2004 13:30
Profile
Homepage
quote:x = x ^ x, maybe? It would make it 1 if x was 0... and for any value larger than 1, it would be larger (unless I'm dumb and tired as hell, shorts are integers only, right?). For any value below 0, it would be positive but smaller than 1. Then, for any value x != 1, x = x * 0 ^ (x - 1) would make it 0. (if shorts can be non-whole numbers, the exponent of 0 should be in absolute value signs of course, to avoid giving a divide-by-0 if x<1.) So after these two operations, , x should be 1 if it was 1 or 0 before, and 0 if it was any other number before. I'm too tired to think of how to get rid of the 1... Can you use min to get the smaller of two values? If so, x = min .5,x *paranthesis omitted due to strange html error* before the two others should leave it as x if it was smaller than .5, or changing it to .5 if it was anything larger, such as 1. Probably bugridden, but if it works, you should have changed the x successfully in just three mathematical operations without any if-clause. :) -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |
Infiltrator
Member # 3040
|
written Saturday, April 10 2004 14:00
Profile
No exponents allowed, or even min() and max(). :( If max() was allowed, then max(0,1-x*x) would work. Too bad there is no such command. -------------------- 5.0.1.0.0.0.0.1.0... Posts: 508 | Registered: Thursday, May 29 2003 07:00 |
Law Bringer
Member # 2984
|
written Sunday, April 11 2004 11:29
Profile
Homepage
No exponential operations at all? That sucks... :( -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |
BANNED
Member # 4
|
written Sunday, April 11 2004 12:30
Profile
Homepage
You could simulate exponential operations by assigning variables and multiplying themselves by themselves, ie: x = x * x -------------------- * Posts: 6936 | Registered: Tuesday, September 18 2001 07:00 |
Infiltrator
Member # 3040
|
written Sunday, April 11 2004 15:25
Profile
Not when you want the exponent to be a variable. If exponents were allowed, a simple "not" command would be x = 3 ^ -(x ^ 2) assuming nonintegral numbers are rounded to the nearest integer. -------------------- 5.0.1.0.0.0.0.1.0... Posts: 508 | Registered: Thursday, May 29 2003 07:00 |
Shake Before Using
Member # 75
|
written Sunday, April 11 2004 15:37
Profile
You can use for loops to do it in that case, can't you? Posts: 3234 | Registered: Thursday, October 4 2001 07:00 |
Infiltrator
Member # 3040
|
written Sunday, April 11 2004 16:37
Profile
Well sure, but if the purpose is merely to make an efficient "not" command, "if" would be the obvious choice when compared to a loop. -------------------- 5.0.1.0.0.0.0.1.0... Posts: 508 | Registered: Thursday, May 29 2003 07:00 |
Pages
- 1
- 2