Jump to content

Need some modding "assistance"


ABVXYzackattack

Recommended Posts

Hey. I'm looking for a way to make my biggest mod sound more appealing.

In my best mod, I have spells you can call in. But the problem is is that the spells fly in to a beacon that you have to place yourself. I don't like that very much. The only reason I used it was because I had no other alternative.

But I want to change that. I still want to call it in to a "beacon", but I want that beacon to be an arrow you can fire to the spot you want. I've already tried, but it can't remember the arrow's reference more than once. What should I do for a proper script for the spell and the arrow?

Link to comment
Share on other sites

I think perhaps we need more information. Maybe a link to your mod would be nice.

 

You "call in" spells? Like you call in for artillery support or something?

 

The spells target the area of a particular arrow? Arrows tend to disappear if they hit a fleshy target or lay on the ground unattended after being shot. I am not sure how that would work in your mod.

 

You might wish to post your script.

Link to comment
Share on other sites

Hmm I would probably use a quest script that does something like this:

 

Check if player has the correct arrows equipped (getequippedobject). Check if player fired an arrow (getprojectile). Track the position of the arrow (getpos).

 

At that point the arrow might disappear, like if it gets stuck in somebody. Check if the arrow is no longer a valid reference with isformvalid. If it's no longer valid, use the last coordinates you gathered earlier.

 

Or, if the arrow becomes stationary, like if it's resting on the floor or gets stuck in a wall, getpos will return the same values and you can call in your spells there.

 

Or, if the arrow constantly moves (floating in water, rolling down a hill, etc), maybe you can call in the spell to the arrow's current position after a certain length of time. I guess you can use a timer for that or maybe use getprojectile's minimum lifetime parameter.

Link to comment
Share on other sites

To answer ur question David, you don't actually "call it in" to say. It just drops specific fireballs for certain spells at certain locations relative to the beacon. Ex. Artillery drops one huge fireball 5 degrees angled from the beacon. Airstrike drops 6 fireballs 45 degrees angled from the beacon. A nuke drops one EPIC fireball directly above the beacon. Does this help at at all? If u still need it, I'll show u the scripts used.

 

To answer u Documn, I've never actually tried GetPos. I tried a constant quest script that nonstop moved a specific marker to wherever the marker was. Obviously, that didn't work. I'll try ur theory.

Would I use...(Ex. Create variables ZArrowPosX, ZArrowPosY, and ZArrowPosZ, and set those to ZArrowRef.GetPos X, Y, and Z, and then constantly move a maker to ZArrowPosX, ZArrowPosY, and ZArrowPosZ?)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...