Effect table?

General Chat, Comments
Post Reply
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Effect table?

Post 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?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: Effect table?

Post by a_bertrand »

effect table? And the action / conditions are full PHP code.
Creator of Dot World Maker
Mad programmer and annoying composer
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

Re: Effect table?

Post 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?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: Effect table?

Post 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.
Creator of Dot World Maker
Mad programmer and annoying composer
Post Reply

Return to “General”