wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-14-2006, 08:25 PM   #1
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default Illusion Spells - Difficulty

Having difficulties wit two things>

1 - Wand of Illusion

It has no order string.
Therefore I need to use lame methods of
- Creating a dummy item and making a dummy unit use it.
- Becomes difficult adding levels to it.

How can I make a dummy unit CAST wand of illusion ABILITY.

2 - Moving Illusions

How can I detect when an illusion is made? to do someting with it.

For example.
Like in RisingDusks Illusion spell, moving "last created" illusions into a line


Any help would be greatly appreciated
thx
Fulla



-
__________________
Fulla is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-14-2006, 08:29 PM   #2
blu_da_noob
Nonchalant
 
blu_da_noob's Avatar


Respected User
 
Join Date: Mar 2006
Posts: 1,933

Submissions (2)

blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)blu_da_noob is just really nice (398)

[Quicksilver #2] - 2nd Place[Quicksilver#1] 1st place

Send a message via MSN to blu_da_noob
Default

Quote:
Originally Posted by Fulla
How can I make a dummy unit CAST wand of illusion ABILITY.

Order ids.

Quote:
How can I detect when an illusion is made? to do someting with it.

They trigger the 'unit spawns a summoned unit' event.
__________________
blu_da_noob is offline   Reply With Quote
Old 09-14-2006, 08:41 PM   #3
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default

Quote:
Originally Posted by blu_da_noob
Order ids.

Wand of Illusion ability has no order ID.

Quote:
Originally Posted by blu_da_noob
They trigger the 'unit spawns a summoned unit' event.

Ill look into this one
__________________

Last edited by Fulla : 09-14-2006 at 08:41 PM.
Fulla is offline   Reply With Quote
Old 09-14-2006, 09:11 PM   #4
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Wand of Illusion ability has no order ID.
Yes, it does.

Trigger:
Rune of Illusions
Collapse Events
Unit - A unit Acquires an item
Collapse Conditions
(Item-type of (Item being manipulated)) == Rune of Illusion
Collapse Actions
-------- We need a caster to cast illusions on the unit that acquired the rune --------
-------- So we'll use CasterCastAbility --------
Set UnitVar = (Triggering unit)
-------- Prepare the value of a variable, not a needed step --------
-------- but makes calling JASS functions easier for non-JASS experienced people --------
-------- -------------------------------- Calling the function: --------------------------------- --------
-------- function CasterCastAbility takes player owner, integer abilid, string order, widget target, boolean instant returns unit --------
-------- To call it use: --------
Custom script: call CasterCastAbility( GetOwningPlayer(udg_UnitVar), 'A00M', "852274", udg_UnitVar, true)
-------- Uses The owner of the UnitVar unit --------
-------- The rawcode of the ability in this map is 'A00M' --------
-------- Illusions doesn't have an order string, so use "852254" (its order id betwen quotes) --------
-------- UnitVar is the target --------
-------- Illusions is instant, so put a true there --------
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-14-2006, 11:09 PM   #5
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default

mm I tried that, came up when I saved

"Expected a function name".
__________________
Fulla is offline   Reply With Quote
Old 09-14-2006, 11:16 PM   #6
oNdizZ
User
 
oNdizZ's Avatar
 
Join Date: Jul 2004
Posts: 526

Submissions (2)

oNdizZ will become famous soon enough (33)oNdizZ will become famous soon enough (33)

Default

You do have that function added aswell?
__________________

In need of a Macromedia Flash script tutor.

RIP - L2Extreme
oNdizZ is offline   Reply With Quote
Old 09-14-2006, 11:20 PM   #7
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default

yes

The variable
Then the function.

Function line has the bug
__________________
Fulla is offline   Reply With Quote
Old 09-15-2006, 12:13 AM   #8
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Look at Domino Theory.
If you're capable of reading the code, then you'll find the Order ID of the wand of illusion ability.
It's all there, as well as a little tutorial on how to use them.

Extracted from the code, I felt necessary to note this --
Collapse JASS:
call IssueTargetOrderById(d, 852274, u)
That should be the Order ID of the wand of Illusion, as well as the code used to get it cast.
__________________

Last edited by Rising_Dusk : 09-15-2006 at 12:13 AM.
Rising_Dusk is offline   Reply With Quote
Old 09-15-2006, 12:18 AM   #9
Chuckle_Brother
Oh for the sake of fudge
 
Chuckle_Brother's Avatar


Respected User
 
Join Date: Dec 2005
Posts: 782

Submissions (2)

Chuckle_Brother will become famous soon enough (53)Chuckle_Brother will become famous soon enough (53)

Send a message via ICQ to Chuckle_Brother Send a message via AIM to Chuckle_Brother Send a message via MSN to Chuckle_Brother Send a message via Yahoo to Chuckle_Brother
Default

Not directly related, but Fulla if you are ever in doubt of an orderId, you can always just rig up a display to display the orderid when you cast the spell. Then just cast the ability and see what pops out.
__________________
"...you play a mean banjo"
Chuckle_Brother is offline   Reply With Quote
Old 09-15-2006, 12:45 AM   #10
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default

Quote:
Originally Posted by Rising_Dusk
Look at Domino Theory.
If you're capable of reading the code, then you'll find the Order ID of the wand of illusion ability.
It's all there, as well as a little tutorial on how to use them.

Extracted from the code, I felt necessary to note this --
Collapse JASS:
call IssueTargetOrderById(d, 852274, u)
That should be the Order ID of the wand of Illusion, as well as the code used to get it cast.

K been looking over the code. Unsure wat d + u =?

Collapse JASS:
local unit d = GetTriggeringUnit()
local unit u = GetLastCreatedUnit()
call IssueTargetOrderById(d, 852274, u)

Am I on the right lines? Id make a dummy unit obviously.
__________________
Fulla is offline   Reply With Quote
Old 09-15-2006, 01:36 AM   #11
aquilla
User
 
aquilla's Avatar
 
Join Date: Mar 2003
Posts: 217

Submissions (1)

aquilla will become famous soon enough (71)aquilla will become famous soon enough (71)aquilla will become famous soon enough (71)

Send a message via MSN to aquilla
Default

other way around :)
IssueTargetOrderById(a, b, c)
Issue a to target c using orderid b
__________________
You don't care what I've listened to lately
but I'll tell you anyway,
because that's the only thing I'm good at.
aquilla is offline   Reply With Quote
Old 09-15-2006, 11:42 AM   #12
Fulla
Evil Overlord
 
Fulla's Avatar
 
Join Date: Jan 2006
Posts: 1,416

Submissions (3)

Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)Fulla has a spectacular aura about (79)

Default

Trigger:
Replacement
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Replacement
Collapse Actions
Custom script: local unit b = GetTriggerUnit()
Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing (270.0) degrees
Custom script: local unit a = GetLastCreatedUnit()
Unit - Add Illusion [Dummy] to (Last created unit)
Unit - Set level of Illusion [Dummy] for (Last created unit) to (Level of Replacement for (Casting unit))
Custom script: call IssueTargetOrderById(a, 852274, b)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)

Gah it comes up with errors?
I cant see whats wrong :(
__________________

Last edited by Fulla : 09-15-2006 at 11:43 AM.
Fulla is offline   Reply With Quote
Old 09-15-2006, 12:12 PM   #13
CryptWizard
User
 
Join Date: Jan 2006
Posts: 7

CryptWizard has little to show at this moment (0)

Default

Me neither. Check your Object Editor data?
CryptWizard is offline   Reply With Quote
Old 09-15-2006, 12:41 PM   #14
Rising_Dusk
Obscurity, the Art


Projects Director
Project Leader: OD
 
Join Date: Feb 2006
Posts: 9,729

Submissions (27)

Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)Rising_Dusk has a reputation beyond repute (1192)

Hero Contest #3 - 1st PlaceApproved Map: Desert of ExileApproved Map: Advent of the ZenithHero Contest #2 - 1st PlaceHero Contest - Third place>

Send a message via AIM to Rising_Dusk Send a message via MSN to Rising_Dusk
Default

Collapse JASS:
Custom script: local unit b = GetTriggerUnit() 
 Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing (270.0) degrees 
 Custom script: local unit a = GetLastCreatedUnit()

You're declaring a local after a call.
That's an illegal action -- It would look like --

Collapse JASS:
local unit b
set b = ...
local unit a
Declare all locals first.
__________________
Rising_Dusk is offline   Reply With Quote
Old 09-21-2006, 08:35 PM   #15
aquilla
User
 
aquilla's Avatar
 
Join Date: Mar 2003
Posts: 217

Submissions (1)

aquilla will become famous soon enough (71)aquilla will become famous soon enough (71)aquilla will become famous soon enough (71)

Send a message via MSN to aquilla
Default

Yeah, and don't forget to set them = null in the end :)
__________________
You don't care what I've listened to lately
but I'll tell you anyway,
because that's the only thing I'm good at.
aquilla is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 01:58 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services