Dota Hero Tavern System

Laiev

Hey Listen!!
Reaction score
188
because local is the first thing in the function, nothing else
move this

Set Region1 = Region 000 <gen>

after this:

Custom script: local unit OURHERO

so will be:


Trigger:
  • Revive Hero
    • Actions
    • Custom script: local timerdialog WINDOW
    • Custom script: local integer HEROWAIT
    • Custom script: local timer OURTIMER
    • Custom script: local unit OURHERO
    • Set Region1 = Region 000 &lt;gen&gt;
    • Custom script: set OURHERO = GetDyingUnit()
    • Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 5 )
    • Custom script: set OURTIMER = CreateTimer()
    • Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
    • Custom script: call CreateTimerDialogBJ( OURTIMER, GetPlayerName(GetOwningPlayer(OURHERO)) )
    • Custom script: set WINDOW = GetLastCreatedTimerDialogBJ()
    • Custom script: call TimerDialogDisplayForPlayerBJ( true, WINDOW, GetOwningPlayer(OURHERO) )
    • Custom script: call PolledWait( HEROWAIT )
    • Custom script: all ReviveHeroLoc(OURHERO, udg_Region1, true )
    • Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
    • Custom script: call DestroyTimerDialog(WINDOW)
    • Custom script: call RemoveLocation (udg_Region1)
 

jig7c

Stop reading me...-statement
Reaction score
123
because local is the first thing in the function, nothing else
move this

Set Region1 = Region 000 <gen>

after this:

Custom script: local unit OURHERO

so will be:
dang, i'm so stupid, i didn't even realize that...
Laiev just fixed it for you shazada...
please give him rep for that...:shades:

Just make it in Jass? Wouldnt it be easier.
he doesn't know jass....
 

shazada

New Member
Reaction score
0
Trigger:
  • Gold System
    • Events
      • A unit dies
    • Conditions
      • Dying unit equal to Hero
      • Killing unit equal to Hero
    • Actions
      • Set GoldInt = (250 + (Level of Dying unit x 20))
      • Set Dying unit gold to (Dying Unit gold - GoldInt)
      • Set Killing unit gold to (Killing unit gold + GoldInt)

This didn't worked well can you enter this trigger into map then test it ?
btw nice avatar jig7c :p
 

Seprest

New Member
Reaction score
15
Why am i getting this error :S i feeling sick because this code is giving me nightmares :nuts::nuts:
Read is very very slowly, if you don't understand it, read it again. Repeat until understanding is created. Fear not what thou doth not understand.
 

Novi

New Member
Reaction score
0
any one can help me? i have an error heres my screen shot

sorry for my bad english :)

MpOFs8.png
 

Inflicted

Currently inactive
Reaction score
63
Start a fresh post, and give us the code of your triggers please.
I don't think that shows everything.

Remember to use ['wc3][/wc3'] tags etc.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top