log in or register to remove this ad

 

O.G.R.E: Online Generic Randomizer Engine


log in or register to remove this ad

Morrus

Well, that was fun
Staff member
Can the "if" script be changed so it can do the operations <, >, <=, >=, <> please? Or at least the < and > if possible?

It can, as far as I know.

If it can't - that's another upgrade feature to add to the upgrade request list to take to the developer at some point.
 

Pelldom

First Post
Is the list of functions available listed in the Wiki complete? For example, are there any other scripts (such as the dice script) that can be used but aren't listed anywhere?
 


Morrus

Well, that was fun
Staff member
I've used the > and < before and they worked. Sounds like they've broken. I'll pass the bug report along to the developer.
 

Morrus

Well, that was fun
Staff member
The "Favorites" system is now in place. Next up will be the user input prior to running a generator being assigned as a variable (which is a bigger deal than it sounds!)

Then it will be the mobile app API, which will take some time.

Then after all that, we can sort out a compiled feature/change list and see what it'll cost. I really would like somebody else to maintain that list for me though as I really don't have time (perhaps as a section in the wiki page).
 


Bagpuss

Hero
Being able to apply modifiers to the dice rolls as in input variable would be great as well.

IE: Table is 1d20+X where X either comes from the use or from another table. No value for X it assumes X=0. Probably cause a nightmare with the existing checks to make sure the table is valid though and what happens if X puts the table out of range?
 

Bagpuss

Hero
I've just done a self-reference table You have to saved the table at least once without it referencing to itself as otherwise it doesn't exist to call at that point. The original table I was basing it on had a last entry on a 1d10 table 10 Roll two more times on this table and combine the results in some logical manner. Reroll duplicates.

So I tried entry 10 like so...
Code:
{Bagpuss (534A)} and {Bagpuss (534A)}

Ran this sixty times with these four odd results. Bold and's show breaks between results.
Bob was forced into a life of crime by threats against loved ones and needed money to pay debts and was forced into a life of crime by threats against loved ones
Bob does it for the thrill and excitement the danger brings and does it for the thrill and excitement the danger brings
Bob is punishing those responsible for misdeeds and seeks to wield power in the criminal underworld and was forced into a life of crime by threats against loved ones
Bob needed money to pay debts and has a pathological urge to do wrong and was forced into a life of crime by threats against loved ones

Only once did it happen to call exactly the save value twice, and three times it called result 10 again for one of the two and so ended up with three values.

So I modified the last entry of a 1d10 table is as follows.
Code:
{$var1: {Bagpuss (534A)}}{$var2: {Bagpuss (534A)}} {if: $var1=$var2}{print: $var1}{else}{print: $var1} and {print: $var2}{/if}

I ran it sixty times as a test I got two odd results.

Results
Bob wants to to be rich and wants to to be rich and was forced into a life of crime by threats against loved ones
Bob needed money to pay debts and want to defy authority and needed money to pay debts and want to defy authority and succumbed to peer pressure

So no doubles except when it calls 10 again.

So good news is it doesn't break the table by calling itself, bad news is it is impossible to stop it coming up with some odd results that don't make much sense.
 

Morrus

Well, that was fun
Staff member
The system is not designed to handle self-referencing tables. Worse, one could easily bring down the entire server, so please don't be tempted to try!
 

Bagpuss

Hero
I'll remove it. You might want to put a check in to stop it in future then, I've notice the checks are actually pretty good at picking up code you haven't closed and the like.
 

Callahan09

Explorer
Hi Morrus, I was wondering if there would ever be an upgrade to the table creator so we can put in some kind of delimited text or even select a file with the text to upload? I have some tables of names I wouldn't mind uploading, but with a couple hundred entries it would take forever to manually add them row by row...
 

Bagpuss

Hero
I'd love that too, I stopped most of my naming lists at around 100 entries because I was bored, the original list I had ran over 1000 entries in some cases.
 

Morrus

Well, that was fun
Staff member
At the risk of sounding repetitive, if someone wants to compile the infinitely growing list of requests for me, I can ask the developer how much it would cost and how long it would take to do them all - I suspect we're stretching into 2014 by now. But, as I said, the user input variables are next, followed by the mobile API, so I won't even be asking until those are done.
 

Callahan09

Explorer
I'm a developer and DBA by trade... If you want to read my resumé and do some kind of interview and you feel at all like you trust me, then I would be more than willing to donate my time coding features that I'd personally use. I'm not offering myself out for hire (unless you're paying well!) but I'd gladly volunteer to implement the features I'd personally be interested in seeing. Probably not worth it to you to share your code with someone who is basically just offering to work on the projects I *feel like* working on, but if you want free help, maybe we can work something out?
 

Pelldom

First Post
The system is not designed to handle self-referencing tables. Worse, one could easily bring down the entire server, so please don't be tempted to try!
That's too bad... That would have been a great tool. What about, as a work-around to get the same result, if you had a second table that was identical to the first? Then the d10 result would just call the duplicate table (with possible adjustments). In fact, if there was a way to "Copy" or "Save As" a table, that would make something like that quite simple and straight-forward.
 

Morrus

Well, that was fun
Staff member
O.G.R.E.

That's too bad... That would have been a great tool. What about, as a work-around to get the same result, if you had a second table that was identical to the first? Then the d10 result would just call the duplicate table (with possible adjustments).

That's exactly what I said earlier in the thread! This subject has come up before. ;)

In fact, if there was a way to "Copy" or "Save As" a table, that would make something like that quite simple and straight-forward.

I refer you to my previous posts on feature requests. :)
 

Pelldom

First Post
Oops. Must have missed that post. I take it this means no one has taken you up on compiling requests? If you have no takers by Monday I MIGHT be able to free up some time to do that. Can't commit right now, but possible.
 

Pelldom

First Post
Is there anything going on with the OGRE site lately? Last couple of days when I try to save a table I get a 502 error. I sometimes have to re-create the ENTIRE table 3 or 4 times before I can get it to save. In one case, I had to add a couple lines, save it, add a couple more, save it, etc. Quite the PITA...
 

Morrus

Well, that was fun
Staff member
O.G.R.E.

Is there anything going on with the OGRE site lately? Last couple of days when I try to save a table I get a 502 error. I sometimes have to re-create the ENTIRE table 3 or 4 times before I can get it to save. In one case, I had to add a couple lines, save it, add a couple more, save it, etc. Quite the PITA...

Nothing that I'm aware of! Anyone else having the same issues?
 

Level Up!

An Advertisement

Advertisement4

Top