Page 1 of 1

Formuae for "strength" values

Posted: Sun Jan 04, 2009 12:48 pm
by Lord_BoNes
My suggestion, in this case, would be: could you allow formulae to be used in the "strength" values of conversions, and actions? Values would have to cap at 1, and round down(if floating point, at the final answer) of course.
EG:
Strength = 10-%MEMBER_WIZARD%, a level 4 wizard activating this would have strength = 6
Strength = (10*((%MEMBER_WIZARD%+1)/2)), a level 4 wizard activate this would have strength = (10*((4+1)/2)) = 25

Allowing formulae would add a whole new ability to dungeon designing, and it would make the existing functionality A HELL OF A LOT more easier, especially experience gain actions.

I know that you can achieve a similar effect using relays and/or counters... but, that way is extremely long-handed. I know that you said to only suggest things that can't be done, but this suggestion is about ease, and it should be easy to implement.

Thanx for listening.

Posted: Sun Jan 04, 2009 1:05 pm
by beowuuf
hey LB, I adjusted the subject so GG can pick it out from the rest when he trawls the forums!

Posted: Sun Jan 04, 2009 2:28 pm
by Lord_BoNes
Thanx Beo. :D

I only had that subject because I have suggested SOOOOO many things so far. :oops:

Posted: Sun Jan 04, 2009 3:46 pm
by Gambit37
I must admit, I don't especially like "strength" based puzzles, so I wouldn't use this feature -- I prefer brain based puzzles (at least, when my brain works well enough to solve them!) :-)

Posted: Sun Jan 04, 2009 4:13 pm
by Lord_BoNes
What I meant was for example:
You have an item that creates a fireball, and you wish to give the caster experience for firing it. In order to decrease the amount of experience gained for a higher level wizard, you have to do 15 relays to give the experience based on the level of the caster.

Now think: "What if I want the item to cast a lightning bolt, that gives more experience per cast?" another 15 relays. What about if you want to have a poison-bolt aswell?

With my spellbook system that I described in another topic, I'd need 15 relays for each projectile spell... That's a whole crap-load of relays. What a messy ordeal...

My above suggestion would allow me to do the experience gain with 1 WALLITEM_ACTION, per spell, instead of 15. A great deal less messy.

I can also think of other uses for this approach, but this is the one that comes to mind.

Posted: Sun Jan 04, 2009 4:21 pm
by beowuuf
Can you pass values from relay queries into counters and read them again?

Posted: Sun Jan 04, 2009 5:03 pm
by Lord_BoNes
I don't see why not.

That sounds like how my spellbook system works... The value counts up, checks against another counter to see if it's hit the max-value(if so starts a self-looping relay, that decreases the counter back to zero). Every time it counts up, it checks the value against the possible spells available, then it checks THAT spell to see if the member has it, if so it swaps the null spellbook to the real one for THAT spell. Every loop, it checks the right hand of the caster for the null spellbook, if it isn't there, it cancels the loop. There is an additional counter per member for storing the number of spells learnt, if zero then the loop doesn't happen, because it'd be infinite, and RTC crashes(happened a few times while testing, and forgetting to reset it).

But, the relays to do such a thing with experience gain, would be pretty damn hefty.