gergecoelho
Apprentice
Posts: 31
Likes Given: 7
Likes Received: 3 in 3 posts
Joined: Jul 2015
Reputation: 0
|
RE: NPC Events not being applied
Oh, then it's even better than I thought. Though the script isn't working for some OTHER reason.
See if you can make any sense of this (it's the event on EventsPet):
Code:
[TYPEDEF e_NPC_Triumphus] //NPC Spawn
ON=@Create
ALLSKILLS = (100 + (<TAG.LEVEL> * 80))
IF (<TAG.NPCCLASS> == 1) //Brute
STR = (18 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (3 + (<TAG.LEVEL> * 8) + {1 3})
INT = (-3 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+20
HITS = MAXHITS
EVENTS +e_brute
ENDIF
IF (<TAG.NPCCLASS> == 2) //Soldier
STR = (13 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (8 + (<TAG.LEVEL> * 8) + {1 3})
INT = (3 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+15
HITS = MAXHITS
EVENTS +e_soldier
ENDIF
IF (<TAG.NPCCLASS> == 3) //Artillery
STR = (3 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (23 + (<TAG.LEVEL> * 8) + {1 3})
INT = (3 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+10
HITS = MAXHITS
EVENTS +e_artillery
ENDIF
IF (<TAG.NPCCLASS> == 4) //Skirmisher
STR = (8 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (23 + (<TAG.LEVEL> * 8) + {1 3})
INT = (-3 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+15
HITS = MAXHITS
EVENTS +e_skirmisher
ENDIF
IF (<TAG.NPCCLASS> == 5) //Lurker
STR = (13 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (23 + (<TAG.LEVEL> * 8) + {1 3})
INT = (-3 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+10
HITS = MAXHITS
EVENTS +e_lurker
ENDIF
IF (<TAG.NPCCLASS> == 6) //Controller
STR = (3 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (-3 + (<TAG.LEVEL> * 8) + {1 3})
INT = (23 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+5
HITS = MAXHITS
EVENTS +e_controller
ENDIF
IF (<TAG.NPCCLASS> == 7) //Support
STR = (3 + (<TAG.LEVEL> * 8) + {1 3})
DEX = (-3 + (<TAG.LEVEL> * 8) + {1 3})
INT = (23 + (<TAG.LEVEL> * 8) + {1 3})
MAXHITS = STR+5
HITS = MAXHITS
EVENTS +e_support
ENDIF
VAR.RAND = <EVAL {1 500}> //Random chance for rare spawn
IF (<VAR.RAND> == 1)
NAME = "Master "+<NAME>
STR += (<STR> * 2,5)
STR += (<DEX> * 2,5)
STR += (<INT> * 2,5)
Allskills = 100.0
MAXHITS += 250
HITS = MAXHITS
COLOR = colors_all
OSKIN = COLOR
ENDIF
IF (<VAR.RAND> >= 2) && (<VAR.RAND> <= 6)
NAME = "Paragon "+<NAME>
STR += (<STR> * 1,5)
STR += (<DEX> * 1,5)
STR += (<INT> * 1,5)
Allskills = (<I.Anatomy> + (<I.Anatomy> * 1,5))
MAXHITS += 150
HITS = MAXHITS
COLOR = colors_all
OSKIN = COLOR
ENDIF
IF (<VAR.RAND> >= 7) && (<VAR.RAND> <= 16)
NAME = "Champion "+<NAME>
STR += (<STR> * 1)
STR += (<DEX> * 1)
STR += (<INT> * 1)
Allskills = (<I.Anatomy> + (<I.Anatomy> * 1))
MAXHITS += 100
HITS = MAXHITS
COLOR = colors_all
OSKIN = COLOR
ENDIF
IF (<VAR.RAND> >= 17) && (<VAR.RAND> <= 36)
NAME = "Greater "+<NAME>
STR += (<STR> * 0,5)
STR += (<DEX> * 0,5)
STR += (<INT> * 0,5)
Allskills = (<I.Anatomy> + (<I.Anatomy> * 0,5))
MAXHITS += 50
HITS = MAXHITS
COLOR = colors_all
OSKIN = COLOR
ENDIF
I put the TAG.LEVEL and TAG.NPCCLASS inside the monster chardef. Should I move them to the monster's @Create, then?
|
|
04-29-2017 12:28 PM |
|
|