[NPC] NPC Resistance Manipulation [Added another way]

Description: Have any suggestions or new ideas for SMBX-38A? This is a place for you. Good suggestions may appear in future versions of SMBX-38A.
Moderators: Lx Xzit, Yoshi021, 5438A38A, Semi-moderatos, Moderators

Victor ManuelMR M
Topic author, Marquis
Marquis
Avatar
Victor ManuelMR M
Topic author, Marquis
Marquis
Age: 19
Reputation: 99
Posts: 192
Joined: 7 Feb 2018

Post #1by Victor ManuelMR » 19 Jul 2020, 8:55

Screenshot_2.png
Screenshot_2.png (8.31 KiB) Viewed 283 times

This idea can be quite useful, and there are two versions of it:
1# - "Unique index": .Dmg - Determines the damage that the NPC receives (added an underline after the index):
Spoiler
_Fireball
_Jump
_Hammer
_Shell
_Sword
_Iceball
_Lava
_Explosion
_Blockhit
_Tails


Example:

Code: Select all

with npc (sysval (param1))

if .ivala = 1
.dmg_fireball = 5
else
.dmg_fireball = 1
end

end with

If the value is -1, then it becomes Infinite.
Only .dmg without underline will decrease all resistance at once.

2# - Index for each type of Damage.
Example:

Code: Select all

NPC(ID).Firedmg = 1
NPC(ID).Hammerdmg = 5
Image
[1.4.5] - Dream Team at The Challenging Portals:
Image

Return to “Ideas & Suggestions”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest