EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Food for thought... (https://www.eq2interface.com/forums/showthread.php?t=2199)

Kosmos 03-27-2005 11:47 AM

Food for thought...
 
So I'm a bit busy lately, and have not been able to investigate this, but I thought I would put it out there for a few of the big brains here.

So far as I know we have not been able to use any sort of 'if' statement.

A couple of things I would like to suggest, that may be worthless, or may turn into something.

It seems like we might be able to do some basic boolean logic type functions that could be used as 'if' type branches.
We are able to invert boolean values, and if I understand we can do some math functions. So that is basically all we need for some basic logic gate type functions.

We may even have these functions available to us already if no one has tried
Boolean Operators on the Boolean some of the boolean values we work with in the mods.
AND, OR XOR, NOT, and TEST

This is a good site for the various operators syntax for different languages.
http://home.att.net/~gobruen/con/boole.html

There was a post in here somehwere, I've missplaced it, where a guy had examed the Macros file I think And it had a couple of macros that had the syntax !$ in it.. Which is in the 'In Abel' section at the bottom of that page.
Just poped out as looking familiar.
I know alot of variations have been tried,already, I just though I would post this for ideas.

But even without the And statements.
We could easly compare say.. two checkboxes, using Simple Multiplication and Boolean logic.

I really wish I had more time to devote to testing messing around with this stuff.

EDIT: Also.. as far as referencing variables within an event.
In the templates, the $value$ is always used for strings. So the XML can create the list or table from the data source. Is it possible that there is a sign to indicate that 'this' part of the script is a Float or integer? I'm assuming the $string$ is telling XML that that data is a string...
Again, I know there's been extensive testing of other similar ideas, I just wanted to try and stir the pot here. Perhaps there is new information out there I am unaware of.

Drumstix42 03-27-2005 02:21 PM

Well I posted this once but I dunno if anyone ever read it:

Quote:

Originally Posted by Drumstix42
I haven't read through all of this thread but it just came to my attention this post... I was just thinking... heh (amazing I know)

There's another way to do IF statements in coding. Maybe there's some variation that'll work with the EQ2 XML...

Code:

OnPress="parent.Test.visible==true?visible=false:visible:true"
I don't have anything to test it out... but maybe someone could try it.

Or maybe:

Code:

OnPress="(parent.Test.visible==true)?(visible=false):(visible:true)"
(I don't really have a grasp on where to use parenthasis in the EQ2 XML coding) *note* I dunno what's up with the random spaces, they're just showing that way /shrug

The basic layout is:

IF?THEN:ELSE

Kosmos 03-27-2005 02:30 PM

Quote:

Originally Posted by Drumstix42
Well I posted this once but I dunno if anyone ever read it:



The basic layout is:

IF?THEN:ELSE


Yes, in fact I did read that, and it was on the top of my list of things to try when I get a day to sit down and mess with this. I just have not had time, I saw that no one had replied to that, it seemed like a good place to start to me. Thanks

Drumstix42 03-27-2005 08:50 PM

Some DEV reply on this would be super.


All times are GMT -5. The time now is 01:48 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI