Beetlebomb
New Member
- Reaction score
- 43
Hey guys, I did a forum search before posting this thread.
I have a problem very similar to this thread, but that thread was never able to solve the problem.
I'm using New Gen WE, and I'm saving my vJASS trigger with Ctrl+S, not TESH because I know it doesn't support it.
So, here's my trigger:
That's all of it. And I can't for the love of god figure out this problem. I've PM'd people, i've checked tutorials. It seems like a simple problem with my World Editor, but I don't know what it could be. Anyone know?
Thank you,
Beetlebomb
I have a problem very similar to this thread, but that thread was never able to solve the problem.
I'm using New Gen WE, and I'm saving my vJASS trigger with Ctrl+S, not TESH because I know it doesn't support it.
So, here's my trigger:
JASS:
scope ScopeName initializer RestoreHero // I get the error on this line saying: Unexpected " initializer RestoreHero ". When I try to save the map(using Ctrl+S).
private function Heal takes nothing returns nothing
call SetUnitState(gg_unit_H000_0000, UNIT_STATE_MAX_LIFE, 9999.)
call SetUnitState(gg_unit_H000_0000, UNIT_STATE_MAX_MANA, 9999.)
call DestroyEffect(AddSpecialEffect("Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl", GetUnitX(gg_unit_H000_0000), GetUnitY(gg_unit_H000_0000))
endfunction
//===========================================================================
private function RestoreHero takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic( t, Player(0) )
call TriggerAddAction( t, function Heal )
endfunction
endscope
That's all of it. And I can't for the love of god figure out this problem. I've PM'd people, i've checked tutorials. It seems like a simple problem with my World Editor, but I don't know what it could be. Anyone know?
Thank you,
Beetlebomb