Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / change attack

Author
Message
meMYself2230
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location:
Posted: 4th Jul 2011 01:22
ok I have the entites attacking me the way I want when I enter the room, but if I move around the room and hit a trigger zone I want the attack to change. For example I get attack very aggressive at first but when I hit the trigger zone I want the enemy to back off a little.

Always lost
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 4th Jul 2011 10:50
you can work with global variables i think. look for dimvar=x, varless=x etc. triggerzone sets var, char uses var in if-states.
meMYself2230
13
Years of Service
User Offline
Joined: 3rd Jul 2011
Location:
Posted: 4th Jul 2011 17:53
Sorry but that's a little vague for me. Your talking to a newbie. I understand global variables and all but I don't understand how I would build it. Thanks for the reply.

Always lost
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 6th Jul 2011 13:43
Just declare a var like ''attspeed'' and set at 0, set the enemy to attack at the faster speed when attspeed = 0. Set the trigger zone to add one to the variable ''attspeed'' when plrinzone. Set the enemy to change attack type when attspeed=1.

All browsers should come with compulsory spell checks.

Login to post a reply

Server time is: 2024-11-24 06:41:34
Your offset time is: 2024-11-24 06:41:34