Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Making NPC's move and attack

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Making NPC's move and attack

Post by Leo_V117 »

No problem... They good for you?
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Making NPC's move and attack

Post by arcones »

James Payne wrote:Thanks Arc! But how to lock the edit mode?
To lock the edit mode, I'd ask Damian as he used some code for TGC pertaining to locking edit mode!
Arc :geek:
Image
Want a user bar like this one? PM Leo!
User avatar
James Payne
Member
Member
Posts: 20
Joined: April 24th, 2010, 8:43 am
Name: James

Re: Making NPC's move and attack

Post by James Payne »

Thanks! Hope to see ur answer soon! Can i ask again... How to make a spell assign to the player beginning of the game without open the tab menu and equip it?
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Making NPC's move and attack

Post by arcones »

These are great questions James! :)
James Payne wrote:How to make a spell assign to the player beginning of the game without open the tab menu and equip it?
I don't believe I can answer that one without some scripting help... so, sorry, I can't help with that one :|

Arc :geek:
Image
Want a user bar like this one? PM Leo!
User avatar
James Payne
Member
Member
Posts: 20
Joined: April 24th, 2010, 8:43 am
Name: James

Re: Making NPC's move and attack

Post by James Payne »

Oh Thanks btw... I saw others can script to let the player reduce health -1persecond... How to do that pls?
User avatar
James Payne
Member
Member
Posts: 20
Joined: April 24th, 2010, 8:43 am
Name: James

Re: Making NPC's move and attack

Post by James Payne »

Someone pls help me...!
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Making NPC's move and attack

Post by arcones »

EDIT:

Code: Select all

spawn_spell2 = [
	r_type $ENT_SPELL
	r_icon gainhealth
	r_description "heals and boosts your movement speed"
	r_name "morale boost"
	r_spell_type $STYPE_SELF
	r_spell_cost 20
	r_spell_range 32
	r_spell_effect 3
	r_addeffect $STATUS_HEALTH 30 20000
	r_addeffect $STATUS_MOVE 20 20000

	r_interact [
		r_select $rpginteract
		r_pickup $rpgself
	]
]
That code is for an RPG spell. When used, it will increase speed and health. An effect of this is increased jump height. This is only used in RPG mode.
Hope that helps!
Arc :geek:
Image
Want a user bar like this one? PM Leo!
User avatar
James Payne
Member
Member
Posts: 20
Joined: April 24th, 2010, 8:43 am
Name: James

Re: Making NPC's move and attack

Post by James Payne »

Erm... I know... But i dun wan the spells... I just wan to make the character lose health persecond...
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Making NPC's move and attack

Post by arcones »

Then coding will be involved if you want it in FPS mode. That's going to require a health bar and some code that will take health away. So in either case coding will be required...
Image
Want a user bar like this one? PM Leo!
User avatar
James Payne
Member
Member
Posts: 20
Joined: April 24th, 2010, 8:43 am
Name: James

Re: Making NPC's move and attack

Post by James Payne »

Can i do this in RPG?
Locked