Page 1 of 1

Effect table?

Posted: Tue Jan 28, 2014 5:18 pm
by KaL
Can i use regular php coding in the effect table (ingame)? i tried the IF and ELSE command and it doesn't work. what type of commands can i use in the effect table?

Re: Effect table?

Posted: Tue Jan 28, 2014 7:21 pm
by a_bertrand
effect table? And the action / conditions are full PHP code.

Re: Effect table?

Posted: Tue Jan 28, 2014 8:57 pm
by KaL
The effect table is locate under the works module. I notice I can use echo but can I use the full php code?

Re: Effect table?

Posted: Tue Jan 28, 2014 9:45 pm
by a_bertrand

Code: Select all

create table works(
id integer unsigned primary key,
name varchar(80),
description text,
requirements text,
display_condition text,
duration integer unsigned default '3600',
effect text
) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin;
That's what you call the effect table? Sorry it's called WORKS table, and have an effect column ;)

And yes, whatever PHP code you put there will work.