Archive for myfreeforum.org Before posting please check the "stickies" in the support forums. Please ask questions in real English and not "txt". You will get a better response. Please do not ask support questions via PMs.
|

Zudane
|
Field Change Action portalOkay, quick question here...
Setting up and RPG thing based on posts on a new forum before it kicks off.... I've got the gold and what not adding correctly, but I had another question:
Would it be possible to use the shop to purchase a class (fighter, mage, etc), while it removing the old class? Basically just changing a single profile field to the new class.
Or would it be easier to do this with a separate page and action portal using the php link? If I go that route, could I use a single action to both remove the gold and set the class to a new value? Or should I just do one action that resigns the class and then another action that assigns a new class, forcing the player to give up their own class before getting a new one.
If I go that way, how could I both remove the gold and set the class profile field at the same time? the actions portal only allows one field to be affected per action.
|
Zudane
|
Just edited the title to fit better...
I have a basic idea set up through the same process used before with actions portals...
I still have little idea about how to use the actions portal with macros, so I have a couple questions.
1) Can I fill in part of the form through the link, such as action.php?component=ACTIONS&action=Spend&send=1&amount=500 to spend 500 gold
Along the same line, is is possible to check the value of a field before calling the action, or having the actions portal not send a field to a negative value? I have the money value set with 0 as a minimum number, but if the actions portal removes 500 gold it will still send it negative.
Essentially I want it as a shop, although rather than just increasing a number I want it to set a single field to different text values.
Another good reason to be able to call up profile fields from other pages... Then I could check gold amount and class value to allow or disallow the buttons.
|
admin (no pm's please)
|
I am thinking on this.
|
Zudane
|
Hey, at least I make your day fun! I'm always trying to push limits on everything... it's no fun if you can't push limits.
|
admin (no pm's please)
|
Okay an ACTION portal does allow 3 commands, so you can use it to remove a profile field value and do other things.
It seems to me that what we need is a "simple" extension to shop items. The addition of four parameters two FILTERS one for buy and one for SELL and two ACTIONS again one for buy and one for sell.
That way for example you could have an item ELF that only shows if the user has WARRIOR, and if they buy ELF then the action could clear WARRIOR.
This seems to me to be a clean and powerful way of doing things.
My concern is that whilst we can do this, we are still at the end of the day running a system that can only be made so clever.
e.g. The above would make is possible to only sell a charm to a wizard with level 10 which sounds (and in a forum system) is very clever. But it won't let you sell a charm only to the most powerful wizard, there reaches a point with any 4GLish type system where either the options in it start getting stupidly complex or you face up to the fact that you need to run your won bespoke code.
|
Zudane
|
Items to classes isn't as important, because this is more for fun than any real use, and I can just make items progressively more expensive.
Though being able to assign a single class only sounds nice, though level is irrelevant as the items won't do anything.
Essentially I just want to be able to do the classes right now, don't need to be able to get more specific.
|
admin (no pm's please)
|
Maybe but if we are to make changes, we need to think them through to give maximum power for the least complication.
|
Zudane
|
Well, it's no worry if this is dropped now...
The forums started as a replacement for some that went down a few months ago, but after setting this up I finally got in touch with the old admin that hosted these forums... and they are back up on his servers. So this isn't really needed for me anymore.
|
|
|
|