Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 09-21-2003, 12:39 PM   #1 (permalink)
Scorpion [CoM]
Guest
 
Posts: n/a
Default Breath Weapons

If I wanted to have creatures with specific breath weapons (a la the DnD Dragon sort) what would be the easiest way to do it? Would it be easier to script each breath weapon seperately and treat them like spells? Or is there a way to do it in the actual NPC's .cs file?
  Reply With Quote
Old 09-21-2003, 01:39 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

You could do it either way.
Phantom is offline   Reply With Quote
Old 09-21-2003, 02:10 PM   #3 (permalink)
 
Join Date: Jun 2003
Posts: 89
Default

if u do it as a spell it means a new ai 4 each monster if u pput it directly into the scripts of the monster it means u dont need to make an ai for each and u can tweak it slitly
S0200356 is offline   Reply With Quote
Old 09-21-2003, 02:12 PM   #4 (permalink)
Scorpion [CoM]
Guest
 
Posts: n/a
Default

is there a way to put an individual spell into an NPC? That way I could script the spell and then just add the code snippet to the NPC?
  Reply With Quote
Old 09-21-2003, 02:23 PM   #5 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

You have to override the OnThink() method. Check if the npc's target is null and if not, call the Target.Invoke( .. ) method, and if it is, cast the firebreathe spell.
TheOutkastDev is offline   Reply With Quote
Old 09-21-2003, 02:46 PM   #6 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Onryou
is there a way to put an individual spell into an NPC? That way I could script the spell and then just add the code snippet to the NPC?
Of course there is.
Phantom is offline   Reply With Quote
Old 09-21-2003, 02:49 PM   #7 (permalink)
Scorpion [CoM]
Guest
 
Posts: n/a
Default

what might the snippet look like? or is there an NPC already made that works like this so i can see and understand what needs to be done.
  Reply With Quote
Old 09-21-2003, 02:50 PM   #8 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

You would declare a new method, send a Mobile argument.

This will allow you to do most everything you want, send an effect, ect.
Phantom is offline   Reply With Quote
Old 09-21-2003, 03:42 PM   #9 (permalink)
Scorpion [CoM]
Guest
 
Posts: n/a
Default

ok, i think i've figured it out, but where can i find the FixedParticles information for the visual effect?
  Reply With Quote
Old 09-21-2003, 05:08 PM   #10 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

Mobile class
TheOutkastDev is offline   Reply With Quote
Old 09-21-2003, 05:18 PM   #11 (permalink)
Scorpion [CoM]
Guest
 
Posts: n/a
Default

on, i mean where do i find the numbers for each particle effect?
  Reply With Quote
Old 09-21-2003, 05:40 PM   #12 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Trial and Error.
Phantom is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5