Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:32:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by 314piwm
[Today at 10:21:04 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Site Author : Topic: Certain NPC sound and spell anim on death  (Read 235 times)
0 Members and 1 Guest are viewing this topic.
November 30, 2009, 11:04:23 PM
Member
**
User No : 11164
Posts: 95
  • 0 credits
  • View Inventory
  • Send Money To skulper34
    • View Profile
    So it'd be nice if you can choose which NPC when dying gives off a sound and a spell animation. Something like
    NPCnumber (2,3,4)
    PlaySound (Soundfile.wav)
    SpellAnim

    I'm not a scripter but that would make bosses abit easier to identify.

    Logged
    December 01, 2009, 06:49:12 PM
    Global Moderator
    Teh Uberleet
    *
    User No : 13370
    Posts: 3669
  • 432 credits
  • View Inventory
  • Send Money To Soul
    • View Profile
    With your old OnNPCDeath:

    Code: [Select]
    Sub OnNPCDeath(Index, Map, NPCNum, NPCIndex)
    Call BattleMsg(Index, "You killed a " & GetNpcName(NPCNum) & ".", BRIGHTRED, 0)
    MapNpcNum = GetMapNpcNumber(Map, NPCNum)
    Select Case NPCNum
    Case 1
    Call SpellAnim(SpellNum, Map, GetNpcX(Map, MapNpcNum), GetNpcY(Map, MapNpcNum))
    Call PlaySound(index, "filename.wav")
    End Select
    End Sub

    Change SpellNum to the number of the spell to play.

    Case 1 means NPC number one, if you don't make a case then no animation or sound will play.

    If you wanted to add another:

    Code: [Select]
    Case N
    Call SpellAnim(SpellNum, Map, GetNpcX(Map, MapNpcNum), GetNpcY(Map, MapNpcNum))
    Call PlaySound(index, "filename.wav")

    Change SpellNum to the spell number, again.
    Logged
    December 02, 2009, 01:06:14 AM
    Member
    **
    User No : 11164
    Posts: 95
  • 0 credits
  • View Inventory
  • Send Money To skulper34
    • View Profile
    Works like a charm, thanks a lot.
    Logged
    December 02, 2009, 06:00:12 PM
    Global Moderator
    Teh Uberleet
    *
    User No : 13370
    Posts: 3669
  • 432 credits
  • View Inventory
  • Send Money To Soul
    • View Profile
    No problem :D.
    Logged
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.205 seconds with 29 queries.